Can't find the executable - 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: Can't find the executable (/thread-2010.html) |
Can't find the executable - ctwelsh - 06-11-2015 I just finished compiling for Raspberry Pi 2. Everything seemed to go as planned except I see no executable file. ls of ~/MCServer reveals: Android compile.sh GETTING-STARTED.md SetFlags.cmake app.yml COMPILING.md Install src CIbuild.sh CONTRIBUTING.md lib stats.cmd cloc-exclude.txt CONTRIBUTORS LICENSE tests CMakeCache.txt CoverityModel.cpp Makefile Tools CMakeFiles docs MakeLuaAPI.cmd uploadCoverage.sh cmake_install.cmake Doxyfile MCServer (directory) CMakeLists.txt easyinstall.sh README.md ./MCServer: is a directory, not executable. Do I need to change it to an executable? If so, through which command? Thanks! RE: Can't find the executable - worktycho - 06-11-2015 The executable should be in the directory. RE: Can't find the executable - ctwelsh - 06-11-2015 (06-11-2015, 07:30 AM)worktycho Wrote: The executable should be in the directory. are you referring to the ~/MCServer/MCServer directory? If so, here is what is in that directory: crafting.txt items.ini README.txt delete_windows_service.cmd lang settings_apidump.ini favicon.png monsters.ini vg furnace.txt Plugins vg.supp hg profile_run.cmd webadmin hg.supp profile_run_debug.cmd install_windows_service.cmd profile_run_x64.cmd Did it not install everything? RE: Can't find the executable - bearbin - 06-11-2015 Can you post what commands you used for compiling. It may be that you haven't actually executed the compile step yet. RE: Can't find the executable - ctwelsh - 06-11-2015 Step 1: sudo apt-get install clang git cmake build-essential 2: Git repo git clone https://github.com/mc-server/MCServer.git cd MCServer git submodule update --init 3: Process and compile cmake . -DCMAKE_BUILD_TYPE=RELEASE make . -j 2 RE: Can't find the executable - bearbin - 06-11-2015 What is the output from the make command? RE: Can't find the executable - ctwelsh - 06-11-2015 Errors: pi@raspberrypi:~/MCServer/Release$ make Scanning dependencies of target jsoncpp [ 1%] Building CXX object lib/jsoncpp/CMakeFiles/jsoncpp.dir/src/lib_json/json_writer.cpp.o cc1plus: error: unrecognized command line option ‘-std=c++11’ cc1plus: error: unrecognized command line option ‘-std=c++11’ lib/jsoncpp/CMakeFiles/jsoncpp.dir/build.make:54: recipe for target 'lib/jsoncpp/CMakeFiles/jsoncpp.dir/src/lib_json/json_writer.cpp.o' failed make[2]: *** [lib/jsoncpp/CMakeFiles/jsoncpp.dir/src/lib_json/json_writer.cpp.o] Error 1 CMakeFiles/Makefile2:75: recipe for target 'lib/jsoncpp/CMakeFiles/jsoncpp.dir/all' failed make[1]: *** [lib/jsoncpp/CMakeFiles/jsoncpp.dir/all] Error 2 Makefile:113: recipe for target 'all' failed make: *** [all] Error 2 RE: Can't find the executable - bearbin - 06-12-2015 The version of clang you have on your pi is extremely outdated. Can you try an upgrade: Code: sudo apt-get update and then try compiling again. Otherwise, try installing gcc and g++ instead of clang. RE: Can't find the executable - ctwelsh - 06-13-2015 I don't get it. I tried a clean reinstall of Raspbian and tried going with make cmake gcc g++ and still the same. Gave up and tried going the pre-compiled route and that worked. However, I want to compile it myself. Grrrr. RE: Can't find the executable - bearbin - 06-13-2015 can you try Code: clang --version |