Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

[Ogre 3D] Problem z konfiguracją w Code::Blocks

Ostatnio zmodyfikowano 2014-02-05 20:22
Autor Wiadomość
DzieckoBezZycia
Temat założony przez niniejszego użytkownika
[Ogre 3D] Problem z konfiguracją w Code::Blocks
» 2014-02-05 14:27:50
Siema!
Chciałem skonfigurować biblioteke Ogre3D pod C::B, ale niestety wystąpiły liczne błędy.

Robiłem wg tego:
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Setting+Up+An+Application+-+CodeBlocks

Choć przyznam, że pominąłem "Additional libraries when using boost" i "Debugging"

Błędy mam takie:


||=== Build: Release in OGREDWAXD (compiler: GNU GCC Compiler) ===|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.h|108|error: 'OverlaySystem' in namespace 'Ogre' does not name a type|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.h|111|error: 'InputContext' in namespace 'OgreBites' does not name a type|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp||In constructor 'BaseApplication::BaseApplication()':|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|39|error: class 'BaseApplication' does not have any field named 'mOverlaySystem'|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp||In destructor 'virtual BaseApplication::~BaseApplication()':|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|53|error: 'mOverlaySystem' was not declared in this scope|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|53|error: type '<type error>' argument given to 'delete', expected pointer|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp||In member function 'virtual void BaseApplication::chooseSceneManager()':|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|87|error: 'mOverlaySystem' was not declared in this scope|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|87|error: expected type-specifier|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|87|error: expected ';'|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp||In member function 'virtual void BaseApplication::createFrameListener()':|
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp|130|error: 'mInputContext' was not declared in this scope|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp||In instantiation of 'T boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::shared_mutex::state_data]':|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp|124|required from here|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp|52|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp|52|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp|53|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\thread\win32\shared_mutex.hpp|53|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\system\error_code.hpp|214|warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\system\error_code.hpp|215|warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]|
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost\boost\system\error_code.hpp|216|warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]|
||=== Build failed: 9 error(s), 9 warning(s) (0 minute(s), 29 second(s)) ===|


Co mogę zrobić?
P-104035
MrPoxipol
» 2014-02-05 14:33:21
Podaj pełny log kompilacji.
P-104036
DzieckoBezZycia
Temat założony przez niniejszego użytkownika
» 2014-02-05 15:59:45


-------------- Build: Debug in OGREDWAXD (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -mthreads -fmessage-length=0 -fexceptions -fident -DWIN32 -D_WINDOWS -g -D_DEBUG -ID:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include -ID:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE -ID:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OIS -ID:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost -c D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp -o obj\Debug\OGREXDXD\BaseApplication.o
In file included from D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:17:0:
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.h:108:2: error: 'OverlaySystem' in namespace 'Ogre' does not name a type
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.h:111:2: error: 'InputContext' in namespace 'OgreBites' does not name a type
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp: In constructor 'BaseApplication::BaseApplication()':
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:39:2: error: class 'BaseApplication' does not have any field named 'mOverlaySystem'
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp: In destructor 'virtual BaseApplication::~BaseApplication()':
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:53:6: error: 'mOverlaySystem' was not declared in this scope
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:53:29: error: type '<type error>' argument given to 'delete', expected pointer
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp: In member function 'virtual void BaseApplication::chooseSceneManager()':
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:87:2: error: 'mOverlaySystem' was not declared in this scope
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:87:23: error: expected type-specifier
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:87:23: error: expected ';'
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp: In member function 'virtual void BaseApplication::createFrameListener()':
D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:130:2: error: 'mInputContext' was not declared in this scope
In file included from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/system/system_error.hpp:14:0,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/thread/exceptions.hpp:22,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/thread/win32/thread_primitives.hpp:16,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/thread/win32/thread_heap_alloc.hpp:8,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/thread/detail/thread_heap_alloc.hpp:15,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/thread/tss.hpp:10,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE/Threading/OgreThreadHeadersBoost.h:37,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE/Threading/OgreThreadHeaders.h:30,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE/OgreStdHeaders.h:122,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE/OgrePrerequisites.h:334,
                 from D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\include\OGRE/OgreCamera.h:32,
                 from D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.h:20,
                 from D:\Users\CHS\Desktop\OGREXDXD\BaseApplication.cpp:17:
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/system/error_code.hpp: At global scope:
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
D:\Users\CHS\Desktop\OgreSDK_MinGW_v1-8-1\boost/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
Process terminated with status 1 (0 minute(s), 5 second(s))
9 error(s), 3 warning(s) (0 minute(s), 5 second(s))
 

P-104046
DzieckoBezZycia
Temat założony przez niniejszego użytkownika
» 2014-02-05 20:16:47
teraz mam cos takiego:


C:\Users\Sebuś\Desktop\OgreSDK_MinGW_v1-8-1\boost\lib\libboost_system-mgw47-mt-1_51.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
C:\Users\Sebuś\Desktop\OgreSDK_MinGW_v1-8-1\boost\lib\libboost_system-mgw47-mt-1_51.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
C:\Users\Sebuś\Desktop\OgreSDK_MinGW_v1-8-1\boost\lib\libboost_system-mgw47-mt-1_51.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
C:\Users\Sebuś\Desktop\OgreSDK_MinGW_v1-8-1\boost\lib\libboost_system-mgw47-mt-1_51.a(error_code.o):error_code.cpp:(.eh_frame+0xa3)||undefined reference to `__gxx_personality_v0'|
||=== Build finished: 4 errors, 0 warnings (0 minutes, 4 seconds) ===|

P-104068
MrPoxipol
» 2014-02-05 20:22:46
Najlepiej zbuduj Ogra ze źródeł.
P-104069
« 1 »
  Strona 1 z 1