XCode Complile Error


08-03-2009 00:00:04

Hi there folks,

I've been trying to compile MyGUI (looks like am amazing library!) in XCode. I've managed to get the Project set up with all the external frameworks/lib requirements and have added in the source/headers. Only one slight problem:
I'm getting a repeated error (2-3 times) on compile. I've tried both release and debug. Same result.

The errors are the following:

In file included from /OgreSDK/Dependencies/myGUI/include/MyGUI_Delegate.h

error: 'MyGUI::Logstream& MyGUI::LogStream::operator<<(size_t)' and 'MyGUI::LogStream& MyGUI::LogStream::operator<<(long unsigned int)' cannot be overloaded

Other than that, it's just about 24 random warnings, which seem to be throwing no errors (thankfully). If anyone can assist with this, it'd be greatly appreciated!

Machine Specs:
Mac Book Pro 2.16GHz Intel Core Duo Processor
256MB Video RAM, ATI x1600

Mac OSX 10.5.6

Thanks in advance!


08-03-2009 00:05:41

Just take MyGUI form svn. This error was fixed long time ago.


08-03-2009 09:01:32

Got it from SVN. Thanks for the help on that I appreciate it. Only problem is now it seems to not recognize the libois.a library.

It can't seem to find <OIS/OIS.h>:

In file included from /OgreSDK/dependencies/myGUI/MyGUIEngine/include/MyGUI_Gui.h

error: OIS/OIS.h: no such file or directory

Any help would be greatly appreciated. Thanks!


13-03-2009 07:18:14

Alright I got XCode to call in the files (it doesn't want to link in the static libraries for some reason so I had to go find frameworks for OIS and FreeType and compile them, blech!)

I'm down to one error (hopefully this won't lead to more).

In MyGUI_ResourcePath.cpp around line 50 (just after the Apple Platform If Statement Declaration)
the following error pops up:

error: 'macBundlePath' was not declared in this scope

Any assistance would be greatly appreciated. The sooner I can get this library compiled, the sooner I get to toy around with it, the suspense is aggravating! It looks like a simply awesome GUI library!

Much thanks in advance!


13-03-2009 15:02:05

Sorry, we can't check apple dependent code. I fixed error that you got, I hope it will work :)


13-03-2009 20:11:10

Thanks for the assistance so far Altren!

I'm down to one error now, same area:

MyGUI_ResourcePath.cpp:81: error: no matching function for call to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'

Any help is again, greatly appreciated. Thanks! I almost got this framework compiled. Woohoo!


13-03-2009 21:06:37

Fixed, update from svn.


13-03-2009 21:29:10

Bloody heck you're fast!

Much thanks for the fix! The library compiles now. I'll see if I can make it into a framework for people to use.