Raspbian Building Issue

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
RaspberryPicardBox
Posts: 3
Joined: 2017-08-06, 16:20

Raspbian Building Issue

Postby RaspberryPicardBox » 2017-08-06, 16:31

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
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Raspbian Building Issue

Postby Carsten » 2017-08-07, 22:17

Hello,
welcome to the Cafu forums! :welcome:

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?
Best regards,
Carsten
RaspberryPicardBox
Posts: 3
Joined: 2017-08-06, 16:20

Re: Raspbian Building Issue

Postby RaspberryPicardBox » 2017-08-08, 12:13

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!
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Raspbian Building Issue

Postby Carsten » 2017-08-08, 19:56

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. :up:
Best regards,
Carsten
RaspberryPicardBox
Posts: 3
Joined: 2017-08-06, 16:20

Re: Raspbian Building Issue

Postby RaspberryPicardBox » 2017-08-09, 10:14

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!
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Raspbian Building Issue

Postby Carsten » 2017-08-10, 10:39

Yes, despite all efforts, the RPi can be somewhat unstable at times...
Best regards,
Carsten

Return to “Cafu Engine Support and Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest