Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-12 09:25:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-12 09:25:04 +0300
commit0a4eb24ca0e0cf7e4e1b615e0929ec50bf030d74 (patch)
treebd41666006dd9669078044a8ab1b7437a2b9c6cf
parent92672d0c1c2797d0068f5f71b13b5e521253b618 (diff)
fix for building with opencollada 833 on linux.
-rw-r--r--extern/bullet2/CMakeLists.txt2
-rw-r--r--source/blender/collada/AnimationImporter.cpp3
-rw-r--r--source/blender/collada/ArmatureImporter.cpp3
-rw-r--r--source/blender/collada/CMakeLists.txt5
-rw-r--r--source/blender/collada/MeshImporter.cpp3
-rw-r--r--source/blender/collada/SkinInfo.cpp3
-rw-r--r--source/blender/collada/TransformReader.cpp2
-rw-r--r--source/blender/collada/collada.cpp3
-rw-r--r--source/blender/collada/collada_internal.cpp1
-rw-r--r--source/blender/collada/collada_utils.cpp3
10 files changed, 27 insertions, 1 deletions
diff --git a/extern/bullet2/CMakeLists.txt b/extern/bullet2/CMakeLists.txt
index a8f8801af70..74f0fc2ab56 100644
--- a/extern/bullet2/CMakeLists.txt
+++ b/extern/bullet2/CMakeLists.txt
@@ -319,7 +319,7 @@ set(SRC
src/btBulletDynamicsCommon.h
)
-if(CMAKE_COMPILER_IS_GNUCC)
+if(CMAKE_COMPILER_IS_GNUCXX)
# needed for gcc 4.6+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
endif()
diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp
index d462042b3f6..836c1fae5df 100644
--- a/source/blender/collada/AnimationImporter.cpp
+++ b/source/blender/collada/AnimationImporter.cpp
@@ -22,6 +22,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include "DNA_armature_types.h"
#include "ED_keyframing.h"
diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp
index 0dae0b6b9cb..e78c1950d33 100644
--- a/source/blender/collada/ArmatureImporter.cpp
+++ b/source/blender/collada/ArmatureImporter.cpp
@@ -22,6 +22,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include <algorithm>
#include "COLLADAFWUniqueId.h"
diff --git a/source/blender/collada/CMakeLists.txt b/source/blender/collada/CMakeLists.txt
index 3a2c085335b..ce204013f3d 100644
--- a/source/blender/collada/CMakeLists.txt
+++ b/source/blender/collada/CMakeLists.txt
@@ -99,4 +99,9 @@ if(WITH_BUILDINFO)
add_definitions(-DNAN_BUILDINFO)
endif()
+if(CMAKE_COMPILER_IS_GNUCXX)
+ # COLLADAFWArray.h gives error with gcc 4.5
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
+endif()
+
blender_add_lib(bf_collada "${SRC}" "${INC}")
diff --git a/source/blender/collada/MeshImporter.cpp b/source/blender/collada/MeshImporter.cpp
index 5faaf123bc7..b42adc03785 100644
--- a/source/blender/collada/MeshImporter.cpp
+++ b/source/blender/collada/MeshImporter.cpp
@@ -28,6 +28,9 @@
#include <iostream>
#endif
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include "COLLADAFWMeshPrimitive.h"
#include "COLLADAFWMeshVertexData.h"
#include "COLLADAFWPolygons.h"
diff --git a/source/blender/collada/SkinInfo.cpp b/source/blender/collada/SkinInfo.cpp
index 8d342daf486..4c6713736fb 100644
--- a/source/blender/collada/SkinInfo.cpp
+++ b/source/blender/collada/SkinInfo.cpp
@@ -28,6 +28,9 @@
#include <stdint.h>
#endif
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include "BKE_object.h"
#include "DNA_armature_types.h"
#include "DNA_modifier_types.h"
diff --git a/source/blender/collada/TransformReader.cpp b/source/blender/collada/TransformReader.cpp
index 814fda58e3c..10481fcafbe 100644
--- a/source/blender/collada/TransformReader.cpp
+++ b/source/blender/collada/TransformReader.cpp
@@ -21,6 +21,8 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
#include "TransformReader.h"
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp
index d040e99c4b9..241b63eeade 100644
--- a/source/blender/collada/collada.cpp
+++ b/source/blender/collada/collada.cpp
@@ -22,6 +22,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include "DocumentExporter.h"
#include "DocumentImporter.h"
diff --git a/source/blender/collada/collada_internal.cpp b/source/blender/collada/collada_internal.cpp
index 4943aa96546..80c8a470888 100644
--- a/source/blender/collada/collada_internal.cpp
+++ b/source/blender/collada/collada_internal.cpp
@@ -22,6 +22,7 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
#include "collada_internal.h"
UnitConverter::UnitConverter() : unit(), up_axis(COLLADAFW::FileInfo::Z_UP) {}
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp
index b6451c58a01..c61f8cda349 100644
--- a/source/blender/collada/collada_utils.cpp
+++ b/source/blender/collada/collada_utils.cpp
@@ -22,6 +22,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/* COLLADABU_ASSERT, may be able to remove later */
+#include "COLLADABUPlatform.h"
+
#include "COLLADAFWGeometry.h"
#include "COLLADAFWMeshPrimitive.h"
#include "COLLADAFWMeshVertexData.h"