[hatari-devel] Crosscompiling Hatari for GP2X Wiz

Matthias Arndt marndt at asmsoftware.de
Sun Mar 27 18:39:48 CEST 2011


Am Sonntag, den 27.03.2011, 18:50 +0300 schrieb Eero Tamminen:
> > How can I control which actuall gcc compiler is used?
> > I basically need to tweak a few compile settings:
> > - use a different GNU Toolchain (for the main compile)
> > - disable a lot of PC specific libs (AVI, audio recording, etc.)
> > - inject my own defines into the build to de/activate functionalities
> 
> Just edit the CMake configuration variables with ccmake (ncurses UI).
> 
> Or edit it (CMakeCache.txt I think) directly with text editor.

I edited all tools for the Wiz toolchain now. within CmakeCache.txt


The Make itself fails with the buildcpu things:
[18:38:34] marndt at jll: ~/src/hatari/wiz 
$ make
[  4%] Built target Floppy
[ 11%] Built target Falcon
[ 11%] Built target build68k
Linking C executable gencpu
CMakeFiles/gencpu.dir/readcpu.c.o: In function `read_table68k':
readcpu.c:(.text+0x13dc): undefined reference to `n_defs68k'
readcpu.c:(.text+0x13e0): undefined reference to `defs68k'
collect2: ld returned 1 exit status
make[2]: *** [src/uae-cpu/gencpu] Fehler 1
make[1]: *** [src/uae-cpu/CMakeFiles/gencpu.dir/all] Fehler 2
make: *** [all] Fehler 2


I think the wrong files are compiled with the target gcc here:

[18:36:40] marndt at jll: ~/src/hatari/wiz 
$ file ./src/uae-cpu/CMakeFiles/gencpu.dir/readcpu.c.o
./src/uae-cpu/CMakeFiles/gencpu.dir/readcpu.c.o: ELF 32-bit LSB
relocatable, ARM, version 1, not stripped

Otherwise some other C files seem to get properly build with the target
gcc:

[18:36:57] marndt at jll: ~/src/hatari/wiz 
$ file ./src/CMakeFiles/Floppy.dir/msa.c.o
./src/CMakeFiles/Floppy.dir/msa.c.o: ELF 32-bit LSB relocatable, ARM,
version 1, not stripped

Matthias

-- 
Matthias Arndt <marndt at asmsoftware.de>
PGP-Key: http://www.final-memory.org/files/marndt.asc   ICQ: 40358321
>>> Jabber: simonsunnyboy at jabber.ccc.de <<<




More information about the hatari-devel mailing list