[CrystalSpace] #996: assimpldr.cpp compile error on Fedora 18
"CrystalSpace" <[email protected]> Fri, 02 Aug 2013 04:28:56 -0000
| Newsgroups | gmane.comp.graphics.crystalspace.tracker |
|---|---|
| Message-ID | <[email protected]> |
#996: assimpldr.cpp compile error on Fedora 18
---------------------------+------------------------------------------------
Reporter: ralphcampbell | Owner: admin
Type: defect | Status: new
Priority: minor | Milestone:
Component: other plugins | Version: V2.1
Keywords: |
---------------------------+------------------------------------------------
On Fedora 18 with
{{{
$ gcc --version
gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)
}}}
I get:
{{{
C++ ./out/linux/debug/plugins/mesh/persist/assimpldr/assimpldr.o
/home/ralphc/src/CS_LATEST/plugins/mesh/persist/assimpldr/assimpldr.cpp:
In member function ‘void
CS::Plugin::AssimpLoader::AssimpLoader::SetupLogger()’:
/home/ralphc/src/CS_LATEST/plugins/mesh/persist/assimpldr/assimpldr.cpp:273:65:
error: ‘ERR’ is not a member of ‘Assimp::Logger’
/home/ralphc/src/CS_LATEST/plugins/mesh/persist/assimpldr/assimpldr.cpp:275:67:
error: ‘WARN’ is not a member of ‘Assimp::Logger’
/home/ralphc/src/CS_LATEST/plugins/mesh/persist/assimpldr/assimpldr.cpp:279:61:
error: ‘INFO’ is not a member of ‘Assimp::Logger’
/home/ralphc/src/CS_LATEST/plugins/mesh/persist/assimpldr/assimpldr.cpp:282:60:
error: ‘DEBUGGING’ is not a member of ‘Assimp::Logger’
}}}
In assimp/Logger.h, enum ErrorSeverity defines Err, Warn, Info, and
Debugging
so the following lets me compile:
{{{
Index: plugins/mesh/persist/assimpldr/assimpldr.cpp
===================================================================
--- plugins/mesh/persist/assimpldr/assimpldr.cpp (revision 39545)
+++ plugins/mesh/persist/assimpldr/assimpldr.cpp (working copy)
@@ -49,7 +49,7 @@
#include "assimpldr.h"
// The name of those values is different from Assimp 2.0 and above
versions
-#if (CS_ASSIMP_VERSION == 2)
+#if (CS_ASSIMP_VERSION < 2)
#define LOGGER_ERROR Assimp::Logger::ERR
#define LOGGER_WARNING Assimp::Logger::WARN
#define LOGGER_NOTIFY Assimp::Logger::INFO
}}}
--
Ticket URL: <http://www.crystalspace3d.org/trac/CS/ticket/996>
CrystalSpace <http://www.crystalspace3d.org/>
Free open-source 3D SDK.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
crystal-tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-tracker