mazbox / noisebox

audio synth for raspberry pi
24 stars 4 forks source link

Error when compiling on Raspbian “wheezy” 2012-12-16 #1

Open quilime opened 11 years ago

quilime commented 11 years ago

When compiling, I get the following error(s):

pi@raspberrypi ~/src/noisebox $ make
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ src/main.cpp -o src/main.o
src/main.cpp: In function ‘int audioCallback(void*, void*, unsigned int, double, RtAudioStreamStatus, void*)’:
src/main.cpp:101:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ rtaudio-4.0.10/RtAudio.cpp -o rtaudio-4.0.10/RtAudio.o
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ rtmidi-1.0.15/RtMidi.cpp -o rtmidi-1.0.15/RtMidi.o
g++ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ -lpthread -lasound src/main.o rtaudio-4.0.10/RtAudio.o rtmidi-1.0.15/RtMidi.o -o noisebox
/usr/bin/ld: error: noisebox uses VFP register arguments, src/main.o does not
/usr/bin/ld: failed to merge target specific data of file src/main.o
/usr/bin/ld: error: noisebox uses VFP register arguments, rtaudio-4.0.10/RtAudio.o does not
/usr/bin/ld: failed to merge target specific data of file rtaudio-4.0.10/RtAudio.o
/usr/bin/ld: error: noisebox uses VFP register arguments, rtmidi-1.0.15/RtMidi.o does not
/usr/bin/ld: failed to merge target specific data of file rtmidi-1.0.15/RtMidi.o
collect2: ld returned 1 exit status
make: *** [noisebox] Error 1

Do the "VFP register arguments" mean I'm running a distro that's incompatible with noisebox?

Result of uname -a:

Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

Running on a 512 mb rev-b board.

themancalledjakob commented 10 years ago

exact same error with result of uname -a

Linux raspberrypi 3.2.25+ #250 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux

mazbox commented 10 years ago

maybe try removing the "-mfloat-abi=softfp" bit? LEt me know if that works!

themancalledjakob commented 10 years ago

alright, i removed "-mfloat-abi=softfp" in the makefile, and this is the result result

it works! thank you marek!

mazbox commented 10 years ago

Excellent... glad to be of service! Keep noising!

Marek

// mazbox.com http://www.mazbox.com/ // isthis.gd // +44 (0) 7866 141 047 // @mazbox

On Fri, Jan 17, 2014 at 6:38 PM, themancalledjakob <notifications@github.com

wrote:

alright, i removed "-mfloat-abi=softfp" in the makefile, and this is the result [image: result]https://f.cloud.github.com/assets/1830798/1943174/4712668a-7fa6-11e3-8afd-4d54063a3ca2.jpg

it works! thank you marek!

— Reply to this email directly or view it on GitHubhttps://github.com/mazbox/noisebox/issues/1#issuecomment-32633191 .