I am getting into CMake and trying to compile the SDL/GTK build on Windoze Vista.
Â
Â
I think I found a bug in the CMakeLists.txt file, can anyone confirm this is a bug for Linux as well?
[code]Index: CMakeLists.txt
--- CMakeLists.txt (revision 770)
+++ CMakeLists.txt (working copy)
@@ -233,6 +233,7 @@
INCLUDE_DIRECTORIES(
${ZLIB_INCLUDE_DIR}
- ${PNG_INCLUDE_DIR}
${SDL_INCLUDE_DIR}
)
[/code]
Without it, I get problems in Util.cpp at #include .
Â
Â
Â
Here's something else:
[code]Index: Patch.cpp
--- Patch.cpp (revision 770)
+++ Patch.cpp (working copy)
@@ -30,11 +30,12 @@
// #include "RTC.h"
// #include "Port.h"
-#ifndef _MSC_VER
-#define _stricmp strcasecmp
-#endif // ! _MSC_VER
+#ifdef __MINGW32_VERSION
+typedef off64_t __off64_t;
+#endif
#ifdef _MSC_VER
+#define _stricmp strcasecmp
#define fseeko64 _fseeki64
#define ftello64 _ftelli64
typedef __int64 __off64_t;
[/code]
Â
MinGW does not know "__off64_t", but I found "off64_t" in the header files. Can anyone test if this issue also aplies to building on Linux? I would have to change the "#ifdef __MINGW32_VERSION" to "#ifdef GNUC" in that case.
Â
Â
After these to fixes, I get a "libvbamcore.a", but nothing else is built. I probably have to modify the "CMakeLists.txt" a little in order to detect GTK or something like that.
Â
Â
EDIT:
OK, I got the SDL build compiling&working without any further modifications. CMake is great.
Â
EDIT2:
Hm, CMake only offers "FindGTK...", but nothing for GTKmm. The "CMakeLists.txt" uses pkg-config, but I read that it is poorly supported on Windows, and it will probably be a pain to set up.