[hatari-devel] updates to cmake build system

npomarede at corp.free.fr npomarede at corp.free.fr
Mon Mar 15 22:08:17 CET 2010


On Mon, 15 Mar 2010, Thomas Huth wrote:

>>> If so, could you try to run : cmake -DCMAKE_RC_COMPILER=windres .
>>
>>> It seems cmake under windows is using some env var based on visual
>>> studio and doesn't default to windres.
>
> Nicolas, in this case, could we set this variable by default like this
> in the top-level CMakeLists.txt file:
>
> if (WIN32 and not CMAKE_RC_COMPILER)
> 	set(CMAKE_RC_COMPILER windres)
> endif()

Yes, that's what I planned to do, but I wanted george to confirm it before 
commiting.

>> 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?

In fact, I get the same errors when crosscompiling with 
i586-pc-mingw32-gcc 4.4.2 under linux, but it's quite strange that this 
version doesn't handle 'll' in %d conversion, this seemed rather standard 
to me.


Nicolas



More information about the hatari-devel mailing list