Stuck with getting Cuberite to compile on FreeBSD - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Stuck with getting Cuberite to compile on FreeBSD (/thread-2182.html) |
RE: Stuck with getting Cuberite to compile on FreeBSD - DrMasik - 11-04-2015 I get next error: [ 12%] Linking C executable tolua /usr/bin/ld: cannot find -lltdl cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release *** Error code 1 Stop. make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release *** Error code 1 Stop. make: stopped in /store1/minecraft/minecraft-test/cuberite/Release RE: Stuck with getting Cuberite to compile on FreeBSD - bearbin - 11-04-2015 What shell are you using? The buildserver should build the same, just that it's a script not a live shell session. RE: Stuck with getting Cuberite to compile on FreeBSD - DrMasik - 11-04-2015 (11-04-2015, 05:19 PM)bearbin Wrote: What shell are you using? The buildserver should build the same, just that it's a script not a live shell session. I'm using csh. ============= What I did: mkdir Release cd Release cmake -DCMAKE_BUILD_TYPE=RELEASE .. make RE: Stuck with getting Cuberite to compile on FreeBSD - worktycho - 11-07-2015 Have you installed libltdl? RE: Stuck with getting Cuberite to compile on FreeBSD - DrMasik - 11-09-2015 (11-07-2015, 09:27 AM)worktycho Wrote: Have you installed libltdl? Yes. Code: pkg version | grep libltdl RE: Stuck with getting Cuberite to compile on FreeBSD - worktycho - 11-09-2015 Then I'm afraid thats as far as I can help with freebsd, It looks like there might be a problem with the library include path, but I've no idea how freebsd handles that. RE: Stuck with getting Cuberite to compile on FreeBSD - Seadragon91 - 11-09-2015 Strange. I had the same problem installed libltdl, run make and cuberite then fully compiled. RE: Stuck with getting Cuberite to compile on FreeBSD - DrMasik - 11-09-2015 I found solution. I'm add Code: "-L /usr/local/lib" Code: ../Release/lib/tolua++/CMakeFiles/tolua.dir/link.txt But I get next errors Code: Scanning dependencies of target sqlite RE: Stuck with getting Cuberite to compile on FreeBSD - worktycho - 11-09-2015 Looking at the patch linnemannr submitted on github, defining the macro _XOPEN_SOURCE as 600 might help. I can create a patch for Cuberite that handles that and the link error automatically if you're willing to test it. RE: Stuck with getting Cuberite to compile on FreeBSD - sphinxc0re - 11-09-2015 @worktycho can't this be handles by a cmake exception instead of applying a patch every time we compile it? |