Skip to content
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

Build issue on Linux #34

Closed
szymex73 opened this issue Feb 5, 2018 · 3 comments
Closed

Build issue on Linux #34

szymex73 opened this issue Feb 5, 2018 · 3 comments

Comments

@szymex73
Copy link

szymex73 commented Feb 5, 2018

An error occured to me while trying to compile BXT on my machine

Scanning dependencies of target taslogger
[  2%] Building CXX object taslogger/CMakeFiles/taslogger.dir/src/writer.cpp.o
In file included from /usr/include/c++/5/deque:60:0,
                 from /home/szymex/BunnymodXT/taslogger/./taslogger/writer.hpp:3,
                 from /home/szymex/BunnymodXT/taslogger/src/writer.cpp:1:
/usr/include/c++/5/bits/stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
taslogger/CMakeFiles/taslogger.dir/build.make:62: recipe for target 'taslogger/CMakeFiles/taslogger.dir/src/writer.cpp.o' failed
make[2]: *** [taslogger/CMakeFiles/taslogger.dir/src/writer.cpp.o] Error 1
CMakeFiles/Makefile2:394: recipe for target 'taslogger/CMakeFiles/taslogger.dir/all' failed
make[1]: *** [taslogger/CMakeFiles/taslogger.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

OS: Linux mint 17.3

RapidJSON is downloaded from releases page and the dir passed to cmake is include/rapidjson from the repo
BOOST is installed through apt (libboost1.58-all-dev)
CLang v3.8.0
GCC v5.4.0

@szymex73
Copy link
Author

szymex73 commented Feb 5, 2018

I fixed that error by installing g++-multilib but another error showed up:

[ 32%] Building CXX object CMakeFiles/BunnymodXT.dir/SPTLib/IHookableModule.cpp.o
In file included from /home/szymex/BunnymodXT/SPTLib/MemUtils.hpp:3:0,
                 from /home/szymex/BunnymodXT/SPTLib/IHookableModule.hpp:7,
                 from /home/szymex/BunnymodXT/SPTLib/IHookableModule.cpp:3:
/home/szymex/BunnymodXT/SPTLib/patterns.hpp: In function ‘constexpr std::size_t patterns::count_bytes(const char*)’:
/home/szymex/BunnymodXT/SPTLib/patterns.hpp:49:2: error: expression ‘<throw-expression>’ is not a constant-expression
  }
  ^
CMakeFiles/BunnymodXT.dir/build.make:76: recipe for target 'CMakeFiles/BunnymodXT.dir/SPTLib/IHookableModule.cpp.o' failed
make[2]: *** [CMakeFiles/BunnymodXT.dir/SPTLib/IHookableModule.cpp.o] Error 1
CMakeFiles/Makefile2:133: recipe for target 'CMakeFiles/BunnymodXT.dir/all' failed
make[1]: *** [CMakeFiles/BunnymodXT.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@YaLTeR
Copy link
Owner

YaLTeR commented Feb 5, 2018

Sounds like your GCC is outdated and doesn't support constexprs properly. Try building with clang (CC=clang CXX=clang++ cmake <...>).

@szymex73
Copy link
Author

szymex73 commented Feb 5, 2018

Ok, it worked. I also needed to install libglu1-mesa-dev, freeglut3-dev and mesa-common-dev for it to finish compiling like in #18

@szymex73 szymex73 closed this as completed Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants