-
Notifications
You must be signed in to change notification settings - Fork 155
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
Trouble with compiling #24
Comments
Which version of gcc do you use? |
Sorry, I forgot it. |
A bit old, but not too old. I made the code a bit more compatible and tested it with a gcc 4.4. It should work now. |
By the way, do you know which Boost.Filesystem version do you have? This could be useful to include the fs::absolute to fs::complete patch. |
If you are asking about libboost-filesystem version, it's 1.40. I had other similar issues after you said "I made the code a bit more compatible", but I could not report them then (I've been busy this time). I will try to compile the most recent code, and see what happens. |
Sorry, but I made some bigger changes on the NBT code (for the Minecraft NBT file format) which require new C++ 11 features. At the moment I am trying to find some workarounds for older gcc versions. mapcrafter already contains some workarounds for older Boost.Filesystem versions. Now I can also add the thing with fs::complete. |
Ok, no problem. |
You could try now the newest version with your gcc 4.4. |
Compiles perfectly :D |
Ok, but if fails when running
This was the cmake output (if relevant)
|
The function should concatenate two paths to an absolute path. Looks like if boost has problems with these two paths. I have a patch for you:
Can you apply this patch by copying it to the root (for example in file patch) path of the project and running |
As requested in #29, I ran the patch. Received: I pulled a fresh clone today, reran cmake/make with no issues, but ran into the same message when applying the patch. |
Sorry, looks like if there are problems with patches copied into the comments. Try the patch directly from here. |
Got that one to apply, and it patched. Still no luck when trying to render:
|
With this patch the renderer should make outputs when calling the problematic function. Are you sure you ran |
I did not re-run make previously. I did it, and received a bit more, but still the same error:
I tried a fresh install, and ran the patch prior to cmake/make, but ran into the same issue. |
I just needed this extra output. Now I can hopefully fix this problem. |
I was able to fix the problem with your boost/gcc version. Just do a |
Trying to compile, I got an error in render/config.cpp, with fs::absolute. Replacing it with fs::complete I solved the problem, based on examples here:
http://en.highscore.de/cpp/boost/filesystem.html
But then I got another error.
And I don't now the way to solve it.
The text was updated successfully, but these errors were encountered: