Horde3D

Next-Generation Graphics Engine
It is currently 18.04.2024, 05:58

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 17.08.2008, 17:30 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
These changes make Horde3D compile properly with MinGW on Windows (using the MinGW which comes with Code::Blocks):
Code:
Index: Extensions/Terrain/Sample/CMakeLists.txt
===================================================================
--- Extensions/Terrain/Sample/CMakeLists.txt   (revision 46)
+++ Extensions/Terrain/Sample/CMakeLists.txt   (working copy)
@@ -1,9 +1,9 @@
 
 include_directories(../Bindings/C++ ../../../Horde3D/Bindings/C++ ../../../Horde3D/Dependencies/Include)
 
-IF(WIN32)
+IF(MSVC)
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
-ENDIF(WIN32)
+ENDIF(MSVC)
 
 add_executable(Terrain WIN32 MACOSX_BUNDLE
    app.h
Index: Horde3D/Samples/Chicago/CMakeLists.txt
===================================================================
--- Horde3D/Samples/Chicago/CMakeLists.txt   (revision 46)
+++ Horde3D/Samples/Chicago/CMakeLists.txt   (working copy)
@@ -2,9 +2,9 @@
 include_directories(../../Bindings/C++)
 include_directories(../../Dependencies/Include)
 
-IF(WIN32)
+IF(MSVC)
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
-ENDIF(WIN32)
+ENDIF(MSVC)
 
 add_executable(Chicago WIN32 MACOSX_BUNDLE
    app.h
Index: Horde3D/Samples/Knight/CMakeLists.txt
===================================================================
--- Horde3D/Samples/Knight/CMakeLists.txt   (revision 46)
+++ Horde3D/Samples/Knight/CMakeLists.txt   (working copy)
@@ -2,9 +2,9 @@
 include_directories(../../Bindings/C++)
 include_directories(../../Dependencies/Include)
 
-IF(WIN32)
+IF(MSVC)
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
-ENDIF(WIN32)
+ENDIF(MSVC)
 
 add_executable(Knight WIN32 MACOSX_BUNDLE
    app.h
Index: Horde3D/Source/Horde3DEngine/egCom.h
===================================================================
--- Horde3D/Source/Horde3DEngine/egCom.h   (revision 46)
+++ Horde3D/Source/Horde3DEngine/egCom.h   (working copy)
@@ -27,6 +27,7 @@
 
 #include "egPrerequisites.h"
 #include <time.h>
+#include <stdarg.h>
 #include <cstdlib>
 #include <cstring>
 #include <string>


I don't know whether the cmake changes might break other compilers, but it should work that way with both MinGW and MSVC.


Last edited by phoenix64 on 02.09.2008, 16:50, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: 18.08.2008, 13:57 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
phoenix64 wrote:
I don't know whether the cmake changes might break other compilers, but it should work that way with both MinGW and MSVC.
That shouldn't break other compilers, and MSVC and MinGW are the most common, so we can always patch if another comes along that this breaks.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
PostPosted: 31.08.2008, 23:05 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
I just commited it to the SVN,... thanks for testing it with MinGW,... doesn't have this configuration on one of my machines.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group