rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

can't compile on 0.9.3 in raspberry pi 2 ARM #257

Closed moebiussurfing closed 8 years ago

moebiussurfing commented 8 years ago

i am getting this error in red:

/home/pi/of_v0.9.3_linuxarmv7l/addons/ofxUI/src/ofxUISortableList.cpp: In member function 'ofxUIDraggableLabelButton* ofxUISortableList::getActiveWidget(int, int)':
/home/pi/of_v0.9.3_linuxarmv7l/addons/ofxUI/src/ofxUISortableList.cpp:221:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < listItems.size(); i++)
                   ^

g++: internal compiler error: Killed (program cc1plus)

it continues compiling and finally stoped here:

/home/pi/of_v0.9.3_linuxarmv7l/addons/ofxUI/src/ofxUIOFWrapper.h:421:12: warning: 'int ofxUIGetWidth()' defined but not used [-Wunused-function]
 static int ofxUIGetWidth()
            ^
make[1]: Leaving directory '/home/pi/of_v0.9.3_linuxarmv7l/apps/baseCam360/baseCamRPI'
/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed
make: *** [Release] Error 2
rezaali commented 8 years ago

well just off the top of my head, rpi is complaining that the type returned by listItems.size(); isn't an int and finally its complaining that ofxUIGetWidth() isn't used, so the compiler settings are pretty hardcore. You might want to try to easy up the compiler to accept these warnings.

ofxUI was written in 2010 when I knew very little about programming, I'd recommending using something more modern and robust.

jvcleave commented 8 years ago

Your compiler is probably getting killed because you ran out of memory. If you are using make -j4 be aware each job takes up memory.

moebiussurfing commented 8 years ago

thanks for the answers! yes @jvcleave !!, :) .I am getting memory errors. Some of the examples where compiling fine yesterday (like ofxGui's guiExample), now aren't. So how can I limit the memory usage? Must to not use the j4 for multicore use?

jvcleave commented 8 years ago

yeah - just use -j2 or a cross-compiler

moebiussurfing commented 8 years ago

Thanks a lot @jvcleave !! It worked after set -j2 to avoid the memory errors. I only needed to install the font: 'sudo pacman -S ttf-fira-sans'. You rescued me after some hours of losing time. BTW I started to check your ofxImGui. It seems the best way to get faster performance.