From 2abf8218be37183a109db81e40de4d9890f8e44e Mon Sep 17 00:00:00 2001 From: "sha..RD" Date: Fri, 18 Oct 2013 02:17:31 +0000 Subject: [PATCH] * Fix 64 bit native bullet compile on windows. 64 bit build requires using mingw-w64 instead of mingw32. Also if mingw-w64 is used, both 32 bit and 64 bit are supported. * Add note regarding requirement to use GCC 4.7.3 when compiling native bullet on windows, since 4.8.1 crashes with segmentation fault git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10835 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/bullet-native-build.txt | 10 ++++-- engine/nbproject/build-bullet-natives.xml | 41 +++++++++++++++++++---- 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/engine/bullet-native-build.txt b/engine/bullet-native-build.txt index dfc953e73..2112ec36f 100644 --- a/engine/bullet-native-build.txt +++ b/engine/bullet-native-build.txt @@ -19,7 +19,7 @@ ALL PLATFORMS - Android NDK (optional): http://developer.android.com/sdk/ndk/index.html WINDOWS -- Install mingw GNU C++ Compiler: http://www.mingw.org/ +- Install mingw-w64 GNU C++ Compiler: http://mingw-w64.sourceforge.net/ - Install CMake: http://www.cmake.org/ Mac OSX @@ -136,10 +136,14 @@ Commands: Building on WINDOWS (MinGW/GCC, Recommended) ----------------------------------- Requirements: -- GNU C++ Compiler: http://www.mingw.org/ - http://mingw-w64.sourceforge.net/ +- GNU C++ Compiler: http://mingw-w64.sourceforge.net/ + http://sourceforge.net/projects/mingwbuilds/ - CMake: http://www.cmake.org/ +NOTE: At this time compiling with GCC 4.8.1 fails with a segmentation fault. +You must use an older GCC version like 4.7.3. +The second link above (mingwbuilds) offers snapshots of MinGW for GCC 4.7.3. + Commands: > cd bullet-trunk > cmake . -DBUILD_SHARED_LIBS=OFF -DBUILD_DEMOS:BOOL=OFF -DBUILD_EXTRAS:BOOL=OFF -DCMAKE_BUILD_TYPE=Release . -G "MinGW Makefiles" diff --git a/engine/nbproject/build-bullet-natives.xml b/engine/nbproject/build-bullet-natives.xml index 8bb5144be..b6ee5d5a9 100644 --- a/engine/nbproject/build-bullet-natives.xml +++ b/engine/nbproject/build-bullet-natives.xml @@ -441,11 +441,12 @@ - + + @@ -455,7 +456,7 @@ - + @@ -464,12 +465,13 @@ - + - + + @@ -520,7 +522,7 @@ - + Downloading bullet source.. @@ -541,8 +543,33 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + +