LinkerError OgreBinding on Macos
Posted: 16 Feb 2015, 16:49
I'm having troubles to compile NoesisGui with the OgreBinding on MacOS. It all comes down to a linker error when deriving from BaseFileSystem or BaseComponent:
To isolate the problem I used the OpenGl Integration sample from github without Ogre. (I also tried it with the NsGuiOgreBinding from github). I'm using NoesisGUI v1.1.14 (r4315). I attached the project.
I have read the post "Crash 0.9.9 - iOS 6.0 - iPad4 - Xcode 4.5" about changing the "NsTypeName" in TypeInfo.h but this didn't help.
Has anybody similar problems deriving from Base classes on MacOs?
Has anybody a Noesis with Ogre running on MacOs?
Thanks!
Wolfgang
Code: Select all
Undefined symbols for architecture i386:
"typeinfo for Noesis::File::BaseFileSystem", referenced from:
typeinfo for Noesis::Gui::OgreNsGuiFileSystem in OgreNsGuiFileSystem.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Code: Select all
namespace Noesis
{
namespace Gui
{
////////////////////////////////////////////////////////////////////////////////////////////////////
/// OgreFileSystem
////////////////////////////////////////////////////////////////////////////////////////////////////
class OgreNsGuiFileSystem: public File::BaseFileSystem
{
public:
/// Constructor
OgreNsGuiFileSystem(const NsChar* root);
/// Destructor
virtual ~OgreNsGuiFileSystem();
/// From IFileSystem
//@{
NsBool FileExists(const File::FileId& filename) const;
Ptr<Core::IStream> OpenRead(const File::FileId& filename) const;
//@}
private:
const NsChar* mRoot;
private:
NS_DECLARE_REFLECTION(OgreNsGuiFileSystem, File::BaseFileSystem)
};
}
}
I have read the post "Crash 0.9.9 - iOS 6.0 - iPad4 - Xcode 4.5" about changing the "NsTypeName" in TypeInfo.h but this didn't help.
Has anybody similar problems deriving from Base classes on MacOs?
Has anybody a Noesis with Ogre running on MacOs?
Thanks!
Wolfgang