New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while compiling on Linux, "nice make" #258
Comments
try run if it not helps - delete CMakeCache.txt and run cmake and make again |
[ra@ra freeminer-master]$ git submodule update --init --recursive [ra@ra freeminer-master]$ git --help The most commonly used git commands are: Deleting CMakeCache.txt not helped. |
try follow instruction from readme:
|
Now I've done all steps from readme: All steps finish fine except last step. Log here http://pastebin.com/jn2G33HA |
please show cmake output |
[ra@ra _build]$ cmake .. CMake Warning at src/CMakeLists.txt:264 (message): -- Found GetText: /usr/include -- Found SQLite3: /usr/lib/libsqlite3.so All outputs are here - http://pastebin.com/jn2G33HA |
looks like old compiler (gcc 4.7) |
I have clang 3.3 but i don't know hot to use it. |
cmake . -DCMAKE_CXX_COMPILER= |
amadin, try this command
|
github eats quotes around which clang++
|
you use old release freeminer-0.4.13.7 ? |
and here is another way to autobuild anything from latests git: |
can you join to irc #freeminer-ru @freenode ? |
@HybridDog thank you for compgen magic, now auto.pl tool detect good clang version a98f00a also manual:
|
[ra@ra _build]$ nice make -j $(nproc || sysctl -n hw.ncpu || echo 2)
Scanning dependencies of target cguittfont
Scanning dependencies of target lua
[ 1%] Building C object src/lua/build/CMakeFiles/lua.dir/lapi.o
[ 1%] Building CXX object src/cguittfont/CMakeFiles/cguittfont.dir/xCGUITTFont.cpp.o
[ 1%] Building C object src/lua/build/CMakeFiles/lua.dir/lauxlib.o
[ 1%] Building C object src/lua/build/CMakeFiles/lua.dir/lbaselib.o
[ 1%] Building C object src/lua/build/CMakeFiles/lua.dir/lcode.o
[ 2%] Building C object src/lua/build/CMakeFiles/lua.dir/ldblib.o
[ 2%] Building C object src/lua/build/CMakeFiles/lua.dir/ldebug.o
[ 2%] Building C object src/lua/build/CMakeFiles/lua.dir/ldo.o
[ 2%] Building C object src/lua/build/CMakeFiles/lua.dir/ldump.o
[ 2%] Building C object src/lua/build/CMakeFiles/lua.dir/lfunc.o
[ 3%] Building C object src/lua/build/CMakeFiles/lua.dir/lgc.o
[ 3%] Building C object src/lua/build/CMakeFiles/lua.dir/linit.o
[ 3%] Building C object src/lua/build/CMakeFiles/lua.dir/liolib.o
[ 3%] Building C object src/lua/build/CMakeFiles/lua.dir/llex.o
[ 3%] Building C object src/lua/build/CMakeFiles/lua.dir/lmathlib.o
[ 4%] Building C object src/lua/build/CMakeFiles/lua.dir/lmem.o
[ 4%] Building C object src/lua/build/CMakeFiles/lua.dir/loadlib.o
/mnt/sda3/freeminer-master/src/lua/src/loadlib.c: In function ‘ll_sym’:
/mnt/sda3/freeminer-master/src/lua/src/loadlib.c:76:21: warning: ISO C forbids conversion of object pointer to function pointer type [-pedantic]
[ 4%] Building C object src/lua/build/CMakeFiles/lua.dir/lobject.o
[ 4%] Building C object src/lua/build/CMakeFiles/lua.dir/lopcodes.o
[ 5%] Building C object src/lua/build/CMakeFiles/lua.dir/loslib.o
[ 5%] Building C object src/lua/build/CMakeFiles/lua.dir/lparser.o
[ 5%] Building C object src/lua/build/CMakeFiles/lua.dir/lstate.o
[ 5%] Building C object src/lua/build/CMakeFiles/lua.dir/lstring.o
[ 5%] Building C object src/lua/build/CMakeFiles/lua.dir/lstrlib.o
[ 6%] Building C object src/lua/build/CMakeFiles/lua.dir/ltable.o
[ 6%] Building C object src/lua/build/CMakeFiles/lua.dir/ltablib.o
[ 6%] Building C object src/lua/build/CMakeFiles/lua.dir/ltm.o
[ 6%] Building C object src/lua/build/CMakeFiles/lua.dir/lundump.o
[ 6%] Building C object src/lua/build/CMakeFiles/lua.dir/lvm.o
[ 7%] Building C object src/lua/build/CMakeFiles/lua.dir/lzio.o
Linking C static library liblua.a
[ 7%] Built target lua
Scanning dependencies of target GenerateVersion
[ 7%] Built target GenerateVersion
Scanning dependencies of target translations
[ 8%] mo-update [zh_TW]: Creating locale directory.
[ 8%] mo-update [be]: Creating locale directory.
[ 8%] mo-update [cs]: Creating locale directory.
[ 8%] mo-update [da]: Creating locale directory.
[ 9%] mo-update [de]: Creating locale directory.
Linking CXX static library libcguittfont.a
[ 9%] mo-update [eo]: Creating locale directory.
[ 9%] Built target cguittfont
[ 9%] mo-update [es]: Creating locale directory.
Scanning dependencies of target freeminer
[ 9%] mo-update [et]: Creating locale directory.
[ 9%] mo-update [fr]: Creating locale directory.
[ 10%] mo-update [hu]: Creating locale directory.
[ 10%] mo-update [id]: Creating locale directory.
[ 10%] mo-update [it]: Creating locale directory.
[ 10%] mo-update [ja]: Creating locale directory.
[ 10%] mo-update [jbo]: Creating locale directory.
[ 11%] mo-update [ko]: Creating locale directory.
[ 11%] mo-update [ky]: Creating locale directory.
[ 11%] mo-update [lt]: Creating locale directory.
[ 11%] mo-update [nb]: Creating locale directory.
[ 12%] mo-update [nl]: Creating locale directory.
[ 12%] mo-update [pl]: Creating locale directory.
[ 12%] mo-update [pt]: Creating locale directory.
[ 12%] mo-update [pt_BR]: Creating locale directory.
[ 12%] mo-update [ro]: Creating locale directory.
[ 13%] mo-update [ru]: Creating locale directory.
[ 13%] mo-update [tr]: Creating locale directory.
[ 13%] mo-update [uk]: Creating locale directory.
[ 13%] mo-update [zh_CN]: Creating locale directory.
[ 14%] mo-update [zh_TW]: Creating mo file.
[ 14%] mo-update [be]: Creating mo file.
[ 14%] mo-update [cs]: Creating mo file.
[ 15%] mo-update [da]: Creating mo file.
[ 15%] mo-update [de]: Creating mo file.
[ 15%] mo-update [eo]: Creating mo file.
[ 15%] mo-update [es]: Creating mo file.
[ 15%] mo-update [et]: Creating mo file.
[ 16%] mo-update [fr]: Creating mo file.
[ 16%] mo-update [hu]: Creating mo file.
[ 16%] mo-update [id]: Creating mo file.
[ 16%] mo-update [it]: Creating mo file.
[ 16%] mo-update [ja]: Creating mo file.
[ 17%] mo-update [jbo]: Creating mo file.
[ 17%] mo-update [ko]: Creating mo file.
[ 17%] mo-update [ky]: Creating mo file.
[ 17%] mo-update [lt]: Creating mo file.
[ 18%] mo-update [nb]: Creating mo file.
[ 18%] mo-update [nl]: Creating mo file.
[ 18%] mo-update [pl]: Creating mo file.
[ 18%] mo-update [pt]: Creating mo file.
[ 18%] mo-update [pt_BR]: Creating mo file.
[ 19%] mo-update [ro]: Creating mo file.
[ 19%] mo-update [ru]: Creating mo file.
[ 19%] mo-update [tr]: Creating mo file.
[ 19%] mo-update [uk]: Creating mo file.
[ 19%] mo-update [zh_CN]: Creating mo file.
[ 19%] mo update
[ 19%] Built target translations
Scanning dependencies of target freeminerserver
[ 19%] Building CXX object src/CMakeFiles/freeminer.dir/client/clientlauncher.cpp.o
In file included from /mnt/sda3/freeminer-master/src/network/networkprotocol.h:31:0,
from /mnt/sda3/freeminer-master/src/network/networkpacket.h:25,
from /mnt/sda3/freeminer-master/src/network/fm_connection.h:30,
from /mnt/sda3/freeminer-master/src/network/connection.h:26,
from /mnt/sda3/freeminer-master/src/server.h:26,
from /mnt/sda3/freeminer-master/src/client/clientlauncher.cpp:23:
/mnt/sda3/freeminer-master/src/network/../msgpack_fix.h:14:23: fatal error: msgpack.hpp: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/freeminer.dir/client/clientlauncher.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/freeminer.dir/all] Error 2
make[1]: *** The expectation of completing tasks...
[ 19%] [ 19%] Building CXX object src/CMakeFiles/freeminerserver.dir/contrib/environment.cpp.o
Building CXX object src/CMakeFiles/freeminerserver.dir/contrib/fallingsao.cpp.o
In file included from /mnt/sda3/freeminer-master/src/sound.h:29:0,
from /mnt/sda3/freeminer-master/src/itemdef.h:32,
from /mnt/sda3/freeminer-master/src/inventory.h:27,
from /mnt/sda3/freeminer-master/src/inventorymanager.h:26,
from /mnt/sda3/freeminer-master/src/serverobject.h:28,
from /mnt/sda3/freeminer-master/src/content_sao.h:26,
from /mnt/sda3/freeminer-master/src/contrib/fallingsao.h:22,
from /mnt/sda3/freeminer-master/src/contrib/fallingsao.cpp:19:
/mnt/sda3/freeminer-master/src/msgpack_fix.h:14:23: fatal error: msgpack.hpp: No such file or directory
compilation terminated.
In file included from /mnt/sda3/freeminer-master/src/mapnode.h:33:0,
from /mnt/sda3/freeminer-master/src/environment.h:43,
from /mnt/sda3/freeminer-master/src/contrib/environment.cpp:19:
/mnt/sda3/freeminer-master/src/msgpack_fix.h:14:23: fatal error: msgpack.hpp: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/freeminerserver.dir/contrib/fallingsao.cpp.o] Error 1
make[2]: *** The expectation of completing tasks...
make[2]: *** [src/CMakeFiles/freeminerserver.dir/contrib/environment.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/freeminerserver.dir/all] Error 2
make: *** [all] Error 2
ALTlinux 7.0.5, 32-bit, kernel 3.14.33-std-def-alt1, sources from github.
The text was updated successfully, but these errors were encountered: