jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembler errors when compiling example-basic

mysticcircuits opened this issue · comments

commented

Hello, hope all is well.

Been trying to suss out this library for a minute. Apologies if this a noobish question, I am new to open frameworks and especially to OF addons so I am in over my head a bit when the compiler starts spitting out assembler errors.

Running Raspian Jessie on an RPI B+ v2, open frameworks 0.9.8 with the stable release of ofomxplayer for the same version installed as well.

When I try to compile I get the following messages after the normal compiler messages:

{standard input}: Assembler messages:
{standard input}: 15703: Warning: partial line at end of file ignored
{standard input}: 15677: Error: undefined local label '.L4173'
{standard input}: 15678: Error: undefined local label '.L4173'
g++: internal compiler error: Killed (program cclplus)
Please submit a full bug report
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:3
36: recipe for target '../../../addons/obj/linuxarmv6l/Release/ofxOMXPlayer/src/BaseVideoDecoder.o' failed
make[1]: *** [../../../addons/obj/linuxarmb6l/Release/ofxOMXPlayer/src/BaseVideoDecoder.o] Error 4
make[1]: Leaving directory '/home/pi/openFrameworks/addons/ofxOMXPlayer/example-basic'
../../../libs/openFrameworksCompiled/project/makefilecommon/compile.project.mk:1
25: recipe for target 'Release' failed
make: *** [Release] Error 2

Not entirely sure what is causing this or what to do next. If you need more info from me like the crash report or anything let me know. Again I am a beginner with OF (although I have been programming in C for some time) so I am sure that I am just doing something dumb.

Thank you for your time.

Eli

It sounds like the compiler is running out of memory. Try reducing the GPU memory (allocating more to the CPU)

commented

Hi Jason, thanks for the reply that is something that I wouldn't have thought of. I tried reallocating some memory and the compiler process definitely made more progress. However I had to leave it on overnight and when I checked this morning I saw some more errors, specifically after the linking step. Errors are below:

obj/linuxarm6l/Release/src/main.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:3
82: recipe for target 'bin/example-basic' failed
make[1]: *** [bin/example-basic] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/addons/ofxOMXPlater/example-basic'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:1
25: recipe for target 'Release' failed
make: *** [Release] Error 2

I am going to try compiling again with the minimum amount of memory allocated for the GPU. If you have any other suggestions let me know.

Thanks again for your time.

it's strange that it says ofxOMXPlater but otherwise I would try make clean first

commented

Yes sorry I am copying the error messages by hand to my other computer because the pi takes forever to load things on the internet. That is why there might be typos

Make clean did the trick thank you. Getting some other errors when running the example but I feel much better equipped to fix them now.