[Solved] Problem with compiling - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: [Solved] Problem with compiling (/thread-1556.html) |
[Solved] Problem with compiling - tomi35 - 08-25-2014 Hello! I am trying to compile the MCServer from github source, but I get an error every time when I try to run the 'cmake -DCMAKE_BUILD_TYPE=RELEASE ..' command. The error: including polarssl CMake Error at lib/polarssl.cmake:9 (add_subdirectory): add_subdirectory given source "/polarssl/" which is not an existing directory. Call Stack (most recent call first): CMakeLists.txt:88 (include) I have tried to do the 'git submodule init' and 'git submodule update' commands, but they are not working. The operating system is a Debain 6 system, but I could successfully compile MCServer on my computer which runs Xubuntu 14.04. How can I solve this problem? Thanks for the help. RE: Problem with compiling - tomi35 - 08-25-2014 Okay I solved it. For some reason cmake cannot properly replace the '${CMAKE_CURRENT_LIST_DIR}/polarssl/' string with the actual correct path. I modified the 9th line of the MCServer/lib/polarssl.cmake file, and replaced the string with the actual path. Here is the modified file if someone needs: Code: if(NOT TARGET polarssl) RE: [Solved] Problem with compiling - tigerw - 08-25-2014 Hm. Update cmake? RE: [Solved] Problem with compiling - bearbin - 08-26-2014 How odd. This should really be a GitHub issue though. |