Cmake include cmakelists.txt oncw9/20/2023 ![]() Make: *** Error 1ĬMakeFiles/Makefile2:262: recipe for target 'core/net/CMakeFiles/distro_core_net_objects. home/nmcurtis/distro/core/net/Address.cpp:4:10: fatal error: core/error/ExceptionBuilder.hpp: No such file or directoryĬore/net/CMakeFiles/distro_core_net_objects.dir/build.make:120: recipe for target 'core/net/CMakeFiles/distro_core_net_objects.dir/' failed Building CXX object core/net/CMakeFiles/distro_core_net_objects.dir/ Built target distro_core_error_staticĬonsolidate compiler generated dependencies of target distro_core_net_objects usr/bin/ranlib libdistro_core_error_static.a ![]() usr/bin/ar qc libdistro_core_error_static.a CMakeFiles/distro_core_error_objects.dir/ CMakeFiles/distro_core_error_objects.dir/ Linking CXX static library libdistro_core_error_static.a usr/bin/ranlib libdistro_core_utility_static.a usr/bin/ar qc libdistro_core_utility_static.a CMakeFiles/distro_core_utility_objects.dir/ Linking CXX static library libdistro_core_utility_static.a usr/local/gcc-11.3.0/bin/g++-11.3 -fPIC -fPIC -Wno-terminate -shared -Wl,-soname,libdistro_core_error.so -o libdistro_core_error.so CMakeFiles/distro_core_error_objects.dir/ CMakeFiles/distro_core_error_objects.dir/ -Wl,-rpath,/home/nmcurtis/distro/build/core/utility. Linking CXX shared library libdistro_core_error.so usr/local/gcc-11.3.0/bin/g++-11.3 -fPIC -fPIC -Wno-terminate -shared -Wl,-soname,libdistro_core_utility.so -o libdistro_core_utility.so CMakeFiles/distro_core_utility_objects.dir/ Linking CXX shared library libdistro_core_utility.so Built target distro_core_utility_objects Built target distro_core_error_objectsĬonsolidate compiler generated dependencies of target distro_core_utility_objects In my case, I had already installed OpenCV for Python in Anaconda package, and the CMake always wanted to refer me to that package. Build files have been written to: /home/nmcurtis/distro/buildĬonsolidate compiler generated dependencies of target distro_core_error_objects One of the reason could be the another OpenCV package in another path, that you had installed before. I am quite new to cmake, so probably just setting something up incorrectly here, but any ideas? Here is the project structure: I get this error: fatal error: core/error/ExceptionBuilder.hpp: No such file or directory When I try to do the following from libnet: #include So, liberror provides a header called ExceptionBuilder.hpp. Now, I have the following added to the CMakeLists.txt for libnet: target_link_libraries(libnet I have the following added to the CMakeLists.txt for liberror: target_include_directories(liberror SYSTEM PUBLIC core/error) I am linking libnet with liberror when I build the libnet target, and want to be able to #include header files that exist within liberror. I have two libraries that get built as targets in my project libnet and liberror. I'm working on a new project, and trying to set up cmake from the ground up for the first time.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |