[hatari-devel] updates to cmake build system
npomarede at corp.free.fr
npomarede at corp.free.fr
Mon Mar 15 22:11:19 CET 2010
On Mon, 15 Mar 2010, George Nakos wrote:
> Hello Thomas,
>
> Monday, March 15, 2010, 10:29:10 PM, you wrote:
>
>>> c:/msys/1.0/home/Administrator/hatari/src/cycInt.c: In function
>>> 'CycInt_AddAbsoluteInterrupt':
>>> c:/msys/1.0/home/Administrator/hatari/src/cycInt.c:325: warning:
>>> unknown conversion type character 'l' in format
>>> c:/msys/1.0/home/Administrator/hatari/src/cycInt.c:325: warning:
>>> format '%d' expects type 'int', but argument 5 has type 'Sint64'
>>> c:/msys/1.0/home/Administrator/hatari/src/cycInt.c:325: warning: too
>>> many arguments for format
>
>> That sounds either like your cycInt.c file is not up-to-date or like
>> you're using a very old or broken GCC compiler. Which compiler version
>> are you using?
>
> $ gcc --version
> gcc.exe (TDM-2 mingw32) 4.4.1
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Don't think it's broken too - hatari built perfectly with the old
> makefiles
Could you compare the gcc flags when compiling cycInt.c with old makefiles
and the ones generated by cmake ?
>> This sounds like the typical problem that you get on Windows when the
>> SDLMain library is not linked right. Please make sure that you point
>> SDLMAIN_LIBRARY to SDLmain.lib and these problems should be gone!
>
> Ah, it was sdlmain.a in the end. Supplying that fixed the build
> process - it goes up to 100% again.
>
Do you mean this needs to be fixed in the cmake files, or did you fix
something in your windows setup ?
Nicolas
More information about the hatari-devel
mailing list