Page 1 of 1
Raspbian Building Issue
Posted: 2017-08-06, 16:31
by RaspberryPicardBox
Hi there,
I'm new to the Cafu Engine (which looks very appealing for my uses), and I was attempting to build it on the latest version of Raspbian on a Raspberry Pi 3, however, I seem to have hit a wall;
Some time after running scons -j 4, I get an error stating
Code: Select all
Makefile:16113: recipe for target '.pch/wxprec_gllib/wx/wxprec.h.gch' failed
make: *** [.pch/wxprec_gllib/wx/wxprec.h.gch] Error 127
preceded by some warnings stating
Code: Select all
os.chdir('/home/pi/Documents/Cafu Engine/cafu')
os.chdir('ExtLibs/wxWidgets/build-gtk')
make && touch make-ok-flag
Makefile:15443: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15407: warning: ignoring old recipe for target '/home/pi/Documents/C
There is more to the errors, however I didn't want to over-fill this post.
Has anyone encountered any similar issues or know a fix? I haven't found a problem identical to this one really anywhere I've looked, so it could be something specific to me like the file path I'm using for Cafu.
Thank you in advance,
Picard
Re: Raspbian Building Issue
Posted: 2017-08-07, 22:17
by Carsten
Hello,
welcome to the Cafu forums!
Can you please post the entire output of one run of
scons
? (Omit the
-j 4
until the problem is fixed.)
What version of Raspbian are you using? July 2017?
Re: Raspbian Building Issue
Posted: 2017-08-08, 12:13
by RaspberryPicardBox
Dankeschon! And thank you for the quick reply.
I'm currently running the latest version of Raspbian Jessie (I hope!), being version 4.9.35-v7+ according to "uname -a"!
Sorry for the length of this error code, but here it is without the 4 core processing or "sudo" privileges: (Note: the error is the same when ran with sudo.)
Code: Select all
Configured wxWidgets 3.0.1 for `armv7l-unknown-linux-gnueabi'
Which GUI toolkit should wxWidgets use? GTK+ 2 with support for GTK+ printing libnotify
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? no
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 no
wxWidgets 2.8 no
Which libraries should wxWidgets use?
STL no
jpeg builtin
png sys
regex builtin
tiff no
zlib sys
expat sys
libmspack no
sdl no
os.chdir('/home/pi/Documents/Cafu Engine/cafu')
os.chdir('ExtLibs/wxWidgets/build-gtk')
make && touch make-ok-flag
Makefile:15443: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15407: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15479: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15443: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15546: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15479: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15583: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15546: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15620: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15583: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15657: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15620: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15731: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15657: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15805: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15731: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15842: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15805: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15879: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15842: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15916: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15879: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15953: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15916: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:15990: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15953: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:16027: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:15990: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:16064: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:16027: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
Makefile:16101: warning: overriding recipe for target '/home/pi/Documents/Cafu'
Makefile:16064: warning: ignoring old recipe for target '/home/pi/Documents/Cafu'
/home/pi/Documents/Cafu Engine/cafu/ExtLibs/wxWidgets/build-gtk/bk-make-pch ./.pch/wxprec_gllib/wx/wxprec.h.gch wx/wxprec.h g++ -I./.pch/wxprec_gllib -D__WXGTK__ -DWXBUILDING -I../src/jpeg -I../src/regex -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/home/pi/Documents/Cafu Engine/cafu/ExtLibs/wxWidgets/build-gtk/lib/wx/include/gtk2-unicode-static-3.0 -I../include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -DWX_PRECOMP -pthread -O2 -fno-strict-aliasing -pthread -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/freetype2
make: /home/pi/Documents/Cafu: Command not found
Makefile:16113: recipe for target '.pch/wxprec_gllib/wx/wxprec.h.gch' failed
make: *** [.pch/wxprec_gllib/wx/wxprec.h.gch] Error 127
os.chdir('/home/pi/Documents/Cafu Engine/cafu')
scons: *** Error 2
I thank you for all your help!
Re: Raspbian Building Issue
Posted: 2017-08-08, 19:56
by Carsten
It seems that you've installed Cafu into directory
/home/pi/Documents/Cafu Engine/cafu/
.
Could you please rename this (or restart with a new clone) so that the path has no space characters?
If you're renaming the path, that alone may not be sufficient to fully recover after a problem like this. Especially, you may need to remove subdirectory
ExtLibs/wxWidgets/build-gtk
, then try again.
Re: Raspbian Building Issue
Posted: 2017-08-09, 10:14
by RaspberryPicardBox
Ahh, makes sense... Danke!
I shall give it a try and see how it goes.
Edit: I'm afraid my RPI crashed half way through the process! I'm going to try re-doing the complete download etc. and see how things go from thre. P.S: Not a good idea to multi-task on the xdesktop when installing!
Re: Raspbian Building Issue
Posted: 2017-08-10, 10:39
by Carsten
Yes, despite all efforts, the RPi can be somewhat unstable at times...
Re: Raspbian Building Issue
Posted: 2018-12-31, 23:58
by popcorn
Hi,
I had the same issue while trying to compile on the raspberry pi 3, after deleting the subdirectory build-gtk and re-compiling it finally works!
It runs quite slow on the RPi but I am sure with some optimizations it could run well!
[EDIT] - Testing further using the OpenGL driver with full KMS
sudo raspi-config
7. Advanced Options
A7 GL Driver
G1 GL (Full KMS) OpenGL desktop driver with full KMS
testing a couple of small maps I get VERY good frame rates, it feels quite smooth moving through the map, I am very impressed with the results. All good so far
Re: Raspbian Building Issue
Posted: 2019-01-01, 12:46
by Carsten
Hi popcorn,
welcome to the Cafu forums!
Thanks for your feedback, it's good to hear that it works!