[hatari-devel] updates to cmake build system

George Nakos ggn at hol.gr
Sat Mar 13 20:02:48 CET 2010


Hello Npomarede,

Saturday, March 13, 2010, 7:17:18 PM, you wrote:


> Hello,

> I updated the cmake files today for better windows support.

> cmake will now handle the .rc file in gui-win, which means the executable
> will contain the correct hatari icon and this icon will be displayed on
> Windows' desktop for example.

> Also, in order to ease the needed work when we release a new version, I
> added a toolchain to build the windows version under linux (or any other
> OS with a working mingw setup). This is quite handy as it avoids to reboot
> with windows, as everything can be done under linux.

> In order to cross compile this version, you should have the mingw version
> of all headers/dll installed in your mingw's sysroot directory.

> Then just go to the source dir and type :

> cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-mingw32.cmake .

> (a few warnings regarding some printf conversions used for --trace may
> appear, but they're harmless)

> I built a windows version using old Makefile system and new cmake system,
> which worked correctly under windows (as well as under wine for linux).

> But I havent tried to compile it directly under windows, nor under OSX.

> Could people using these OS report if things still work with cmake ?


I  ran  the  above  command  with a slight change (I call cmake-gui, I
*hate*  supplying paths by hand). After the usual fiddling around with
the usual "can't find path for sdl" and stuff, this is what I ended up
with:

Could NOT find READLINE  (missing:  READLINE_LIBRARY READLINE_INCLUDE_DIR)
Could NOT find PORTAUDIO  (missing:  PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineRCCompiler.cmake:30 (MESSAGE):
  Could not find compiler set in environment variable RC:

  CMAKE_RC_COMPILER-NOTFOUND.
Call Stack (most recent call first):
  src/CMakeLists.txt:67 (ENABLE_LANGUAGE)


CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_RC_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:C:/msys/1.0/home/Administrator/hatari/cunt/CMakeFiles/CMakeRCCompiler.cmake
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found.   Please set CMAKE_RC_COMPILER to a valid compiler path or name.
Configuring incomplete, errors occurred!



Seems it's not picking up the win32 files???


-- 
Best regards,
 George                            mailto:ggn at hol.gr




More information about the hatari-devel mailing list