-
Notifications
You must be signed in to change notification settings - Fork 74
compilation error ubuntu #56
Comments
me too, they abandoned and gave no support anymore =( |
Go into src folder, open up CMakeLists.txt and remove this line: ${CMAKE_CURRENT_LIST_DIR}/weapons.cpp Then in order to be able to compile it successfully (although with some errors), you gotta do this:
taken from here: #34 (comment) |
antoniojun@ubuntu:~/Nostalrius-master/cmake$ cmake ..
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
-- Found PugiXML: /usr/include
-- Could NOT find LuaJIT (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "")
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- filesystem
-- CXX target tfs cotired without unity build.
-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: tfs
CMake Error: Cannot determine link language for target "tfs".
-- Generating done
-- Build files have been written to: /home/antoniojun/Nostalrius-master/cmake
antoniojun@ubuntu:
/Nostalrius-master/cmake$ make/Nostalrius-master/cmake$Scanning dependencies of target tfs
make[2]: *** No rule to make target 'CMakeFiles/tfs.dir/build'. Stop.
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
antoniojun@ubuntu:
The text was updated successfully, but these errors were encountered: