hogsy / chronon

This is an open-source reimplementation of Anachronox, built on top of the Quake 2 engine (which funnily enough is the same engine Anachronox was developed upon).
https://hogsy.me
GNU General Public License v2.0
49 stars 3 forks source link

2024-10 Build attempt on aarch64 ubuntu. #27

Open clort81 opened 1 month ago

clort81 commented 1 month ago

Got a build a couple years ago, this time I get link time errors. Perhaps this info is useful? I don't know.

[ 98%] Building C object engine/CMakeFiles/chronon-engine.dir/__/3rdparty/glew/src/glew.c.o
cc1: warning: command-line option ‘-Wno-class-memaccess’ is valid for C++/ObjC++ but not for C
[100%] Linking CXX executable ../../release/Chronon
/usr/bin/ld: CMakeFiles/chronon-engine.dir/hunk.cpp.o: in function `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)':
/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: multiple definition of `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)'; CMakeFiles/chronon-engine.dir/app.cpp.o:/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: first defined here
/usr/bin/ld: CMakeFiles/chronon-engine.dir/input.cpp.o: in function `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)':
/pr/Games/hosae/engine/./../qcommon/../game/q_shared.h:163: multiple definition of `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)'; CMakeFiles/chronon-engine.dir/app.cpp.o:/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: first defined here
/usr/bin/ld: CMakeFiles/chronon-engine.dir/system.cpp.o: in function `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)':
/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: multiple definition of `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)'; CMakeFiles/chronon-engine.dir/app.cpp.o:/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: first defined here
/usr/bin/ld: CMakeFiles/chronon-engine.dir/client/cl_cin.cpp.o: in function `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)':
... etc
...
/pr/Games/hosae/game/q_shared.h:163: multiple definition of `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)'; CMakeFiles/chronon-engine.dir/app.cpp.o:/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: first defined here
/usr/bin/ld: ../game/libchronon-game.a(g_misc.cpp.o): in function `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)':
/pr/Games/hosae/game/q_shared.h:163: multiple definition of `chr::ConvertColourU8ToColourF32(chr::ColourU8 const&)'; CMakeFiles/chronon-engine.dir/app.cpp.o:/pr/Games/hosae/engine/../qcommon/../game/q_shared.h:163: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [engine/CMakeFiles/chronon-engine.dir/build.make:1125: ../release/Chronon] Error 1
make[1]: *** [CMakeFiles/Makefile2:116: engine/CMakeFiles/chronon-engine.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

cheers! o/