[Bf-committers] please help with BLI_STATIC_ASSERT build failure on linux
Gaia
gaia.clary at machinimatrix.org
Sun Mar 3 01:08:58 CET 2013
Hi;
Today i have added some bmesh code to the collada exporter.
This annoyingly produced compile errors on linux and i
apologize for that.However there was a bit of researching
in the blendercoders IRC to find out why that issue occurs,
but no solution was found. So i commentedout my change for now.
Please can someone tell what causes this problem on linux
when you use gcc-4.6.3 ? Actually you only need to uncomment
the include statement in line 60 of collada_utils.cpp then
the build no longer works. The error on linux is something
like:
In file included from source/blender/bmesh/bmesh.h:248:0,
from source/blender/collada/collada_utils.cpp:59:
source/blender/bmesh/bmesh_class.h:85:1:
error: expected constructor, destructor,
or type conversion before »(« token
On windows this problem does not show up. That's also why i
was not at all aware of it. Below you find the breaking patch.
Many thanks in advance for any help on this.
cheers
Gaia
Index: source/blender/collada/collada_utils.cpp
===================================================================
--- source/blender/collada/collada_utils.cpp (revision 54982)
+++ source/blender/collada/collada_utils.cpp (working copy)
@@ -57,7 +57,7 @@
#include "WM_api.h" // XXX hrm, see if we can do without this
#include "WM_types.h"
-//#include "bmesh.h"
+#include "bmesh.h"
}
@@ -387,12 +387,10 @@
bool use_beauty = false;
bool tag_only = false;
-/*
BMesh *bm = BM_mesh_create(&bm_mesh_allocsize_default);
BM_mesh_bm_from_me(bm, me, FALSE, 0);
BM_mesh_triangulate(bm, use_beauty, tag_only, NULL, NULL);
BM_mesh_bm_to_me(bm, me, FALSE);
BM_mesh_free(bm);
-*/
}
More information about the Bf-committers
mailing list