[hatari-devel] CMake build system

Christer Solskogen christer.solskogen at gmail.com
Sun Jan 17 22:23:36 CET 2010


On Sun, Jan 17, 2010 at 10:13 PM, Christer Solskogen
<christer.solskogen at gmail.com> wrote:
>> D'oh! Yet another command that is only defined by an optional cmake module... and I forgot to include the corresponding module in the CMakeList.txt :-(
>>
>> It should be fixed now in the hg repository on the server...
>>
>
> Looks fine on Mac OS X too!

I was a bit too fast on that one.
Using the old build system "hg purge --all && rm Makefile* && hg up -C
&& make" it builds fine. Using the CMake-method I get this:
[ 99%] Building C object src/CMakeFiles/hatari.dir/zip.c.o
Linking C executable hatari
ld: library not found for -lSDLmain
collect2: ld returned 1 exit status
make[2]: *** [src/hatari] Error 1
make[1]: *** [src/CMakeFiles/hatari.dir/all] Error 2
make: *** [all] Error 2

Relevant output from the "old" method:
gcc  audio.o avi_record.o bios.o blitter.o cart.o cfgopts.o
configuration.o options.o createBlankImage.o change.o control.o
cycInt.o cycles.o dialog.o dim.o dmaSnd.o fdc.o file.o floppy.o
gemdos.o hd6301_cpu.o hdc.o ide.o ikbd.o ioMem.o ioMemTabST.o
ioMemTabSTE.o ioMemTabTT.o ioMemTabFalcon.o joy.o keymap.o m68000.o
main.o midi.o memorySnapShot.o mfp.o msa.o paths.o psg.o printer.o
rs232.o reset.o rtc.o scandir.o st.o stMemory.o screen.o
screenSnapShot.o shortcut.o sound.o spec512.o statusbar.o str.o tos.o
unzip.o utils.o vdi.o video.o wavFormat.o xbios.o ymFormat.o zip.o
uae-cpu/cpu68k.a debug/debug.a falcon/falcon.a gui-sdl/gui-sdl.a
-framework CoreAudio -framework AudioToolbox -framework AudioUnit
-framework Carbon -L/opt/local/lib -lportaudio   -L/opt/local/lib
-lpng12 -lz   -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
-L/opt/local/lib -lX11 -lXau -lXdmcp   -lz   -o hatari
make -C tools/hmsa/
gcc -g -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare
-Wbad-function-cast -Wcast-qual  -Wpointer-arith -Wall -Wwrite-strings
 -O2  -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I../..
-I../../src/includes -I../../src/debug -I../../src/uae-cpu  -c -o
hmsa.o hmsa.c
gcc -g -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare
-Wbad-function-cast -Wcast-qual  -Wpointer-arith -Wall -Wwrite-strings
 -O2  -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I../..
-I../../src/includes -I../../src/debug -I../../src/uae-cpu  -c -o
floppy.o floppy.c
gcc  -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I../..
-I../../src/includes -I../../src/debug -I../../src/uae-cpu -g
-Wmissing-prototypes -Wstrict-prototypes -Wsign-compare
-Wbad-function-cast -Wcast-qual  -Wpointer-arith -Wall -Wwrite-strings
 -O2 hmsa.o floppy.o ../../src/msa.o ../../src/dim.o ../../src/st.o
../../src/file.o ../../src/unzip.o ../../src/zip.o -lz   -o hmsa

-- 
chs



More information about the hatari-devel mailing list