Linking CXX shared library lib/libimgui_sfml. Users/mtaylor/nta/HTMPath/./HTMHelper.hpp:3:10: fatal error: 'nupic/algorithms/Cells4.hpp' file not PHONY : sfmlproject I apologize for posting all of this information so late I still don't quite understand too much, but I hope this gives some more information for aid. (MAKE) -f CMakeFiles/Makefile2 sfmlproject. In file included from /Users/mtaylor/nta/HTMPath/bench.cpp:8: sfmlproject: cmakecheckbuildsystem //The next line is 118 for the make error. Building CXX object CMakeFiles/imgui_sfml.dir/ Building CXX object CMakeFiles/bench.dir/ Building CXX object CMakeFiles/imgui_sfml.dir/imgui_ See also "/Users/mtaylor/dev/xtensor/build/CMakeFiles/CMakeOutput.log". Configuring incomplete, errors occurred! Separate development package or SDK, be sure it has been installed. To a directory containing one of the above files. Version 0.5.1) with any of the following names:Īdd the installation prefix of "xtl" to CMAKE_PREFIX_PATH or set "xtl_DIR" ĬMake Error at CMakeLists.txt:32 (find_package):īy not providing "Findxtl.cmake" in CMAKE_MODULE_PATH this project hasĪsked CMake to find a package configuration file provided by "xtl", butĬould not find a package configuration file provided by "xtl" (requested I downloaded xtl source code, did a local build (cmake and make), but back in xtensor I’m still getting this error: > cmake. I’m trying to install HTMPath as described in Path anomoly detection using Grid Cells and Temporal Memory, but having trouble, specifically with xtensor and xtl. Linking CXX executable BrickShooter.Dear and other C++ folks. Building CXX object CMakeFiles/BrickShooter.dir/SysObjects/ Building CXX object CMakeFiles/BrickShooter.dir/GameObjects/ Building CXX object CMakeFiles/BrickShooter.dir/ Scanning dependencies of target BrickShooter Build files have been written to: /mnt/shared/school/Ynov/Home_Work/uf_dev_log_13/repo_gitlab Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ - works Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc - works Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc The CXX compiler identification is GNU 9.3.0 The C compiler identification is GNU 9.3.0 Set(SFML_DIR "gitlab_ci/SFML-2.5.1-WIN/lib/cmake/SFML")Īnd this give the following output: cmake gitlab_ci/SFML-2.5.1-WIN/ -DCMAKE_TOOLCHAIN_FILE=gitlab_ci/windows.cmake CMakeLists.txt & make Link_directories(gitlab_ci/SFML-2.5.1-WIN/lib) Set(SFML_LIBRARY_DIR "gitlab_ci/SFML-2.5.1-WIN/lib") Include_directories(gitlab_ci/SFML-2.5.1-WIN/include) Set(SFML_INCLUDE_DIR "gitlab_ci/SFML-2.5.1-WIN/include") Set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) Set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) Set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # modify default behavior of FIND_XXX() commands # cross compilers to use for C, C++ and Fortran # *) cmake -DCMAKE_TOOLCHAIN_FILE=~/windows.cmake. # *) install cross compiler: `sudo apt-get install mingw-w64` Target_link_libraries (BrickShooter sfml-graphics sfml-window sfml-system)Īnd my toolchain for Windows: # Sample toolchain file for building for Windows from an Ubuntu Linux system. Here is my CMakeLists.txt: cmake_minimum_required(VERSION 3.16)Īdd_executable(BrickShooter main.cpp GameObjects/Block.cpp GameObjects/Block.h GameObjects/Player.cpp GameObjects/Player.h GameObjects/Shoot.cpp GameObjects/Shoot.h SysObjects/Game.cpp SysObjects/Game.h SysObjects/Store.cpp SysObjects/Store.h SysObjects/Menu.cpp SysObjects/Menu.h SysObjects/Backup.cpp SysObjects/Backup.h SysObjects/SysGame.cpp SysObjects/SysGame.h) I tried to change the setting in my Cmake without success (add_library, include_directories) but so far nothing worked. usr/bin/x86_64-w64-mingw32-ld: cannot find -lsfml-systemĬollect2: error: ld returned 1 exit status usr/bin/x86_64-w64-mingw32-ld: cannot find -lsfml-window When I compile for Linux the program compile and run perfectly, however when I try to compile the Windows Executable, I get the following error: /usr/bin/x86_64-w64-mingw32-ld: cannot find -lsfml-graphics I'm supposed to build the program on Linux for Linux and Windows. I'm trying to compile a simple program with SFML (basic helloworld but with a big green circle).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |