include could not find requested file:

Requests regarding how to set up experiments in ARGoS.
miservilla
Posts: 1
Joined: Tue Apr 11, 2023 1:48 am

include could not find requested file:

Postby miservilla » Tue Apr 11, 2023 3:30 am

A small group and I are trying to compile code with ./build.sh from https://github.com/BCLab-UNM/CPFA-ARGoS but have been running into errors. We have overcome the "A required package was not found" error looking for the argos3_simulator, but now we are having the following error:

CMake Error at CMakeLists.txt:51 (include):
include could not find requested file:

ARGoSCheckQTOpenGL

We have successfully installed Argos3 beta59 and can run the examples with no difficulty. When trying to compile the build, the output is:

Deleting and recreating the build directory
Configuring Makefiles with CMAKE...
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
CMake Error at CMakeLists.txt:51 (include):
include could not find requested file:

ARGoSCheckQTOpenGL


-- Found ARGoS: /usr/lib/argos3/libargos3core_simulator.so
-- Found DLFCN: /usr/lib/x86_64-linux-gnu/libdl.a
-- Found Pthreads: /usr/lib/x86_64-linux-gnu/libpthread.a
-- Found FreeImage:
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindOpenGL.cmake:315 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
/usr/share/argos3/cmake/FindARGoSQTOpenGL.cmake:21 (find_package)
/usr/share/argos3/cmake/ARGoSConfig.cmake:131 (find_package)
CMakeLists.txt:67 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Checking for module 'glut'
-- No package 'glut' found
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found Qt6: version 6.2.4
-- Found Qt6Widgets: version 6.2.4
-- Found Qt6Gui: version 6.2.4
-- Found Qt6OpenGLWidgets: version 6.2.4
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.3.6")
-- Configuring incomplete, errors occurred!
See also "/home/miservilla/CPFA-ARGoS/build/CMakeFiles/CMakeOutput.log".
Making...
make: *** No targets specified and no makefile found. Stop.
Finished.

Argos3 and the following files are in the following directory:
usr/share/argos3/cmake/
ARGoSConfig.cmake FindARGoSQTOpenGL.cmake FindFreeImage.cmake FindPthreads.cmake
ARGoSSettings.cmake FindDLFCN.cmake FindGooglePerfTools.cmake

Any help would be appreciated.

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: include could not find requested file:

Postby pincy » Thu Apr 13, 2023 12:25 am

The problem is with the repository you're trying to use. They still use the old way to detect ARGoS. The new way is here: https://github.com/ilpincy/argos3-examp ... ts.txt#L21. Leave an issue in their Github repository, they might fix it quickly.
I made ARGoS.


Return to “How to... ?”