uli / basicengine-firmware

BASIC Engine Firmware
78 stars 16 forks source link

Different Makefiles keep object files in same directory #59

Open bitartrate opened 4 years ago

bitartrate commented 4 years ago

Today's repo build for SDL version ends in error: /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: libraries/lua/lapi.o: Relocations in generic ELF (EM: 40) libraries/lua/lapi.o: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status Makefile.sdl:32: recipe for target 'basic.sdl' failed make[1]: [basic.sdl] Error 1 make[1]: Leaving directory '/media/kevin/500gbssdpart2/OpenSourceComputers/BasicEngineComputer/Firmware/basicengine-firmware' Makefile:35: recipe for target 'sdl' failed make: [sdl] Error 2

uli commented 4 years ago

I presume you compiled the H3 build before? The object files for all non-Arduino builds (SDL, DOS, H3) are all stored in the same place, so if you have a previous build for a different platform, linking will fail for obvious reasons.

Basically, the Makefiles need a fix to store object files in different directories.

bitartrate commented 4 years ago

I understand now.