Page 1 of 1
Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 11:25 am
by fvultier
Hi there
I'm trying to build Orxonox on my own computer for the first time. At ETH Tardis this was usually no problem. I did the following:
- checked out the trunk and the data_extern branches using SVN
- installed all dependencies (
http://www.orxonox.net/wiki/LinuxDebian)
- I used cmake (cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE ../trunk)
Now I try to build the game but I get the following error:
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code# ls
build_trunk data_extern trunk
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code# cd build_trunk/
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk# make
[ 0%] Built target overlaysPrecompiledHeader
[ 0%] Built target orxonoxPrecompiledHeader
[ 0%] Built target bullet_orxonox
[ 1%] Built target toluaapp_orxonox
[ 1%] Built target tinyxml_orxonox
[ 3%] Built target util
[ 3%] Built target corePrecompiledHeader
[ 3%] Built target cpptcl_orxonox
[ 3%] Built target ois_orxonox
[ 3%] Generating tolua bind files for package Core
/bin/sh: 1: /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin/toluaapp_orxonox: Permission denied
make[2]: *** [src/libraries/core/./ToluaBindCore.cc] Fehler 126
make[1]: *** [src/libraries/core/CMakeFiles/core.dir/all] Fehler 2
make: *** [all] Fehler 2
What am I doing wrong?
Re: Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 3:24 pm
by x3n
Does build_trunk/bin/toluaapp_orxonox exist? Is it executable? Can you execute it manually from the console?
Did you try to delete build_trunk and create it again?
Also you can use "make VERBOSE=1" to see what exactly cmake does before the error happens.
Re: Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 4:15 pm
by fvultier
Thank you for the answer!
Yes, the file (it's a link) exists, but it isn't executable:
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk# bin/toluaapp_orxonox
bash: bin/toluaapp_orxonox: Keine Berechtigung
I tried deleting all files in build_trunk several times, but i got always the same error.
Here the output with VERBOSE=1:
Linking CXX shared library ../../../lib/libois_orxonox.so
cd /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/src/external/ois && /usr/bin/cmake -E cmake_link_script CMakeFiles/ois_orxonox.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -DBOOST_ALL_NO_LIB -DORXONOX_GCC_VISIBILITY -DPOCO_NO_AUTOMATIC_LIBS -DTIXML_USE_TICPP -Wall -Winvalid-pch -Wno-deprecated -Wno-unused-local-typedefs -ffast-math -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=default -w -DCMAKE_Debug_BUILD -D_DEBUG -g -ggdb -Wl,--no-undefined -shared -Wl,-soname,libois_orxonox.so.1.3 -o ../../../lib/libois_orxonox.so.1.3 CMakeFiles/ois_orxonox.dir/ois_orxonoxBuildUnit.cc.o -lX11 -Wl,-rpath,::::::::::::::::::::::::::::
cd /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/src/external/ois && /usr/bin/cmake -E cmake_symlink_library ../../../lib/libois_orxonox.so.1.3 ../../../lib/libois_orxonox.so.1.3 ../../../lib/libois_orxonox.so
make[2]: Leaving directory `/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk'
/usr/bin/cmake -E cmake_progress_report /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/CMakeFiles
[ 3%] Built target ois_orxonox
make -f src/libraries/core/CMakeFiles/core.dir/build.make src/libraries/core/CMakeFiles/core.dir/depend
make[2]: Entering directory `/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk'
/usr/bin/cmake -E cmake_progress_report /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/CMakeFiles
[ 3%] Generating tolua bind files for package Core
cd /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin && /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin/toluaapp_orxonox -n Core -w /home/fabien/Daten/Studium/PPS/Orxonox/Code/trunk/src/libraries/core -o /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/src/libraries/core/./ToluaBindCore.cc -s /home/fabien/Daten/Studium/PPS/Orxonox/Code/trunk/src/external/tolua/all-5.1.lua -L /home/fabien/Daten/Studium/PPS/Orxonox/Code/trunk/src/libraries/core/ToluaInterfaceHook.lua /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/src/libraries/core/tolua.pkg
/bin/sh: 1: /home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin/toluaapp_orxonox: Permission denied
make[2]: *** [src/libraries/core/./ToluaBindCore.cc] Fehler 126
make[2]: Leaving directory `/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk'
make[1]: *** [src/libraries/core/CMakeFiles/core.dir/all] Fehler 2
make[1]: Leaving directory `/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk'
make: *** [all] Fehler 2
Re: Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 4:24 pm
by x3n
Hmm, why is the file a link? Where does it point to? The file should be an executable, it is built in a previous step by cmake...
Re: Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 4:46 pm
by fvultier
The link points to toluaapp_orxonox-1.0.92 which is an executable in the same directory. If I try to run this file I get the error "Keine Berechtigung". That's no surprise: For the link I have the rights lrwxrwxrwx but for the executable only -rw-r-----.
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin# ls -l
insgesamt 37
-rw-r----- 1 fabien fabien 175 Apr 25 18:05 client1
-rw-r----- 1 fabien fabien 175 Apr 25 18:05 client2
drwxr-x--- 1 fabien fabien 0 Apr 25 18:05 CMakeFiles
-rw-r----- 1 fabien fabien 1182 Apr 25 18:05 cmake_install.cmake
-rw-r----- 1 fabien fabien 180 Apr 25 18:05 dedicated
-rw-r----- 1 fabien fabien 192 Apr 25 18:05 dedicatedClient
-rw-r----- 1 fabien fabien 5826 Apr 25 18:05 Makefile
-rw-r----- 1 fabien fabien 186 Apr 25 18:05 masterserver
-rw-r----- 1 fabien fabien 0 Apr 25 18:05 orxonox_dev_build.keep_me
-rw-r----- 1 fabien fabien 138 Apr 25 18:05 run
-rw-r----- 1 fabien fabien 174 Apr 25 18:05 server
-rw-r----- 1 fabien fabien 182 Apr 25 18:05 standalone
lrwxrwxrwx 1 fabien fabien 54 Apr 25 18:10 toluaapp_orxonox -> toluaapp_orxonox-1.0.92
-rw-r----- 1 fabien fabien 17796 Apr 25 18:10 toluaapp_orxonox-1.0.92
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin# ./toluaapp_orxonox-1.0.92
bash: ./toluaapp_orxonox-1.0.92: Keine Berechtigung
root@FVdebian:/home/fabien/Daten/Studium/PPS/Orxonox/Code/build_trunk/bin#
Re: Building Orxonox: Permission denied
Posted: Sat Apr 25, 2015 5:27 pm
by fvultier
I fixed the problem:
I tried to give me all rights for the file using chmod but this didn't work because the orxonox files are stored on a NTFS-formated hard drive. After copying the files to a ext formated harddrive I was able to build Orxonox.
Thanks for your advise!