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 with BunnymodXT #18

Closed
mert574 opened this issue Dec 8, 2016 · 4 comments
Closed

Build issue with BunnymodXT #18

mert574 opened this issue Dec 8, 2016 · 4 comments
Assignees

Comments

@mert574
Copy link

mert574 commented Dec 8, 2016

Can you release linux builds too? I'm having trouble when trying to build

@Matherunner
Copy link
Collaborator

What was the error you saw?

Most projects don't distribute linux binaries because different linux distros come with wildly different versions of the common shared libraries, making it impossible build something that works everywhere.

@mert574
Copy link
Author

mert574 commented Dec 8, 2016

I think the problem is between taslogger and rapidjson.

`~/BunnymodXT$ make
[  3%] Building CXX object taslogger/CMakeFiles/taslogger.dir/src/reader.cpp.o

In file included from /home/irl/BunnymodXT/taslogger/./taslogger/reader.hpp:6:0,
                 from /home/irl/BunnymodXT/taslogger/src/reader.cpp:4:
                 
/usr/local/include/rapidjson/reader.h: In instantiation of ‘void rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::ParseNumber(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = rapidjson::FileReadStream; Handler = InternalHandler; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]’:
/usr/local/include/rapidjson/reader.h:1384:46:   required from ‘void rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::ParseValue(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = rapidjson::FileReadStream; Handler = InternalHandler; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]’
/usr/local/include/rapidjson/reader.h:487:35:   required from ‘rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = rapidjson::FileReadStream; Handler = InternalHandler; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]’
/usr/local/include/rapidjson/reader.h:513:41:   required from ‘rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with InputStream = rapidjson::FileReadStream; Handler = InternalHandler; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]’
/home/irl/BunnymodXT/taslogger/src/reader.cpp:728:63:   required from here

/usr/local/include/rapidjson/reader.h:1323:22: error: ‘class InternalHandler’ has no member named ‘RawNumber’
                 cont = handler.RawNumber(str, SizeType(length), false);
                      ^
/usr/local/include/rapidjson/reader.h:1335:22: error: ‘class InternalHandler’ has no member named ‘RawNumber’
                 cont = handler.RawNumber(str, SizeType(length), true);
                      ^
taslogger/CMakeFiles/taslogger.dir/build.make:86: recipe for target 'taslogger/CMakeFiles/taslogger.dir/src/reader.cpp.o' failed

make[2]: *** [taslogger/CMakeFiles/taslogger.dir/src/reader.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

Hope it will not be hard to read.

Edit: added empty lines between

@Matherunner
Copy link
Collaborator

A change in API in the latest version of rapidjson broke the build. Please use rapidjson v1.0.2 for now until I update the code.

@Matherunner Matherunner changed the title BunnymodXT Build issue with BunnymodXT Dec 8, 2016
@Matherunner Matherunner self-assigned this Dec 8, 2016
@mert574
Copy link
Author

mert574 commented Dec 8, 2016

Thanks, worked ! Successfully built.

But i also had to install GL:
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

Edit:
had to change in BunnymodXT/hlstrafe/src/hlstrafe.hpp line 4 from this:
#include "hltas.hpp"

to this:
#include "../../hltas/src/hltas.hpp"

Edit2:
had to install 32bit openal:
sudo apt-get install libxxf86vm1:i386 libglu1-mesa:i386 libopenal1:i386 libssl1.0.0:i386

Edit3:
had to install these too:

32bit libcurl: sudo apt-get install libcurl3:i386
32bit gtk: sudo apt-get install libgtk2.0-0:i386
32bit nss: sudo apt-get install libnss3-dev:i386
32bit gcrypt11:

wget https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_i386.deb
sudo dpkg -i libgcrypt11_1.5.3-2ubuntu4.2_i386.deb

and now I'm in main menu!

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