Can't find the executable
#1
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!
Reply
Thanks given by:
#2
The executable should be in the directory.
Reply
Thanks given by:
#3
(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?
Reply
Thanks given by:
#4
Can you post what commands you used for compiling. It may be that you haven't actually executed the compile step yet.
Reply
Thanks given by:
#5
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
Reply
Thanks given by:
#6
What is the output from the make command?
Reply
Thanks given by:
#7
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
Reply
Thanks given by:
#8
The version of clang you have on your pi is extremely outdated.

Can you try an upgrade:

Code:
sudo apt-get update
sudo apt-get dist-upgrade

and then try compiling again.

Otherwise, try installing gcc and g++ instead of clang.
Reply
Thanks given by:
#9
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.
Reply
Thanks given by:
#10
can you try
Code:
clang --version
Reply
Thanks given by:




Users browsing this thread: 4 Guest(s)