-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Minetest fails to link JSONCPP on Debian 9.x if -DENABLE_SYSTEM_JSONCPP=1 #4306
Comments
Well, it's certainly not caused by 4c530de because that commit only changes comments. |
GCC 4.9.2 cross-compilation was successful on that build. |
@Zeno- Stable 0.4 doesnt link either, maybe a problem with Debian itself? |
From superficial examination, I guess that minetest may be using the wrong header files, or linking against the incorrect jsoncpp library. See also this information and this issue. Most people probably don't use If that is the problem, maybe that removing |
@Rogier-5 Indeed it links with -DENABLE_SYSTEM_JSONCPP=0 |
Then, from the information, it seems that minetest either still uses the included version of the json include file (instead of the system version) when compiling with |
The primary problem turns out to be that minetest uses |
@sfan5 Why you closed this if it wasnt fixed? |
The PR that was supposed to fix this was merged. |
Similar problem reported by rdococ and others have recently mentioned problems with JSON. |
For me, using Debian 8.6, neither -DENABLE_SYSTEM_JSONCPP=1 nor -DENABLE_SYSTEM_JSONCPP=0 seems to work. |
Solution for me here: https://forum.minetest.net/viewtopic.php?f=6&t=18147 Not sure if this is debian or MT related so did not open an issue. |
Fixed. |
EDIT by SmallJoker: Added code block around to display it correctly |
Not sure if that is related to this issue. |
I just built Minetest Server 0.4 stable on Debian Buster/Testing/10. With systemjson, no problem at all. @ne-vlezay80 @SmallJoker |
Might be some problem on Debian itself, I tried with Minetest Stable 0.4 branch too and got the same result.
cmake /home/user/Documents/games/minetest -DWARN_ALL=0 -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=0 -DENABLE_CURL=0 -DCMAKE_BUILD_TYPE=MinSizeRel -DENABLE_LEVELDB=0 -DENABLE_POSTGRESQL=0 -DENABLE_REDIS=0 -DENABLE_SPATIAL=0 -DENABLE_SYSTEM_GMP=1 -DENABLE_SYSTEM_JSONCPP=1 -DENABLE_CURSES=0 -DENABLE_GLES=1 -DRUN_IN_PLACE=1
Debian Stretch x86_64.
The text was updated successfully, but these errors were encountered: