Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Martin
@acidhunter
buddhi1980/mandelbulber2#124
Martin
@acidhunter
rpi1 and cubie too, same error
Krzysztof Marczak
@buddhi1980

This error comes from lack of system (RAM) memory. To compile render_window.cpp there is needed about 1GB of RAM.

g++: internal compiler error: Getötet (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
Makefile:3268: recipe for target 'render_window.o' failed

As you see it's internal compiler error, which is probably caused by not enough memory.
@zebastian had the same problem with rpi.

There are two possible solutions:

  1. Modify install sctipt and remove -j4 parameter form make command (gcc will use less memory - parallel building won't be enabled)
  2. Increase swap file size in the system
Martin
@acidhunter
Hello there, sry my late answer
will try it now update you if it works
Krzysztof Marczak
@buddhi1980
Good idea. I this way you can do compilation step on stronger machine.
Martin
@acidhunter
it would be compiling until now if i had tried to compile this on a pi^^
Martin
@acidhunter
i seems to be working, building atm, was very easy to setup
Krzysztof Marczak
@buddhi1980
Great!
Martin
@acidhunter
wow that was too fast 0o
i check the result, one moment
it works inside the crosscompiler enviroment
was able to connect to a server in headless mode^^
Krzysztof Marczak
@buddhi1980
So if you have 100 pi then will be nice computing power :smile:
Martin
@acidhunter
not only pie's
every arm device
i did a succesfully rendering on a oneplus one, android phone
my router is a arm7hf too^^
i try to package this build and share it
thank you for this awesome work!!!
Martin
@acidhunter
something was wrong with the compiler ;-(
wrong binary format
i will look into this ;-)
Krzysztof Marczak
@buddhi1980
probably you dodn't do cross-compilation but just regular
Martin
@acidhunter
thats my first try to crosscompile, so this can be my fault
Krzysztof Marczak
@buddhi1980
if you go to mandelbulber2/deploy folder there are scrips to cross-build mandelbulber for win32 and win64
based on that you can create scrips for arm architecture
Martin
@acidhunter
i think this was missing:
CFLAGS=--sysroot=$SYSROOT ./configure --host=$HOST
i take a look to your scripts
Krzysztof Marczak
@buddhi1980
probably you need to compile qt libs, zlib, libpng, libgsl
Martin
@acidhunter
no, these packages are in the default raspian repos
Krzysztof Marczak
@buddhi1980
But not under linux. They are needed for linker
On the machine where you are doing cross-compilation you need to have all arm7 libraries. Maybe you can copy them from rasp
Martin
@acidhunter
that is was this docker image does
it builds a full raspian setup if u want
i installed the arm packages from their repo
ahh
QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
^^
rpxc-user@8a9822a057ce:/build/mandelbulber2-2.08-3$ qmake --version
QMake version 3.0
Using Qt version 5.3.2 in /usr/lib/x86_64-linux-gnu
okay i think iam wrong
Martin
@acidhunter
i did a mistake while starting the container
i started from ground, now it uses qemu and downloads arm packages
will it work with mandelbulber2-2.08-3.tar.gz or should i build it directly from source?
Krzysztof Marczak
@buddhi1980
better would be to use mandelbulber2-2.08-3.tar.gz instead of actual source which could be not stable
Martin
@acidhunter
should i change something in the makefiles?
i am installing the deps atm, arm on qemu is not threaded
faster then on a pi but...
Krzysztof Marczak
@buddhi1980
makefiles are dinamically generated (by qmake) so you shouldn't change them
Martin
@acidhunter
thank u!