Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: diegoquarantine on November 21, 2014, 08:51:11 PM

Title: Building my game on OS X 10.9 with WME Lite
Post by: diegoquarantine on November 21, 2014, 08:51:11 PM
Hi guys! I need some help with this, I've been developing an adventure in wme for more than a year and I have this first episode almost done. I started some test in order to see if I can make it work on MAC.
So I followed all the steps, download the repo for xcode, installed the dependencies on the dep folder, copied te DCP file and then run the xcode project on the mac. It starts building but it pops an error that I don't have a clue what it is. This is the line marked in red, maybe someone knows what the program is not finding or something.

Code: [Select]
clang: error: no such file or directory: '/Users/macbookapple/Desktop/src/AdActor.cpp'
clang: error: no input files
Code: [Select]
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
maybe it has something to do with the path were I'm executing or a path that must be updated. Or maybe it has something to do with my Xcode version which is 5.1.1?
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: diegoquarantine on November 22, 2014, 07:39:02 AM
I think I know what this is, I copied only the Xcode folder to the Mac and the xcode project needs the Src folder with all the game classes. Will try again and see what happens.
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: diegoquarantine on November 22, 2014, 05:41:32 PM
Well, this folder issue was solved. I thought each folder for each platform was an independent compartment, so that's why I moved only the XCode folder to the Mac, Now I downloaded on the mac the entire repo and set up the xcode folder according to the documentation, and it started to compile.
It reaches 20% and then this issue appeared. 
Code: [Select]
#include "SDL.h" not found.

It can't find sdl.h, but lookin at the struture, this is part of the framework on the dependencies folder. So I took a guess and copy all the SDL's to the SRC folder on the root and recompile.

This time it reached 50% and stopped with another error.

a semantic issue on "platformSDL.cpp"

a use of undeclared identifier "LC_CTYPE" looking at the script, sounds like an undeclared variable. Any ideas?.
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: diegoquarantine on November 22, 2014, 06:01:59 PM
 If I comment the line
Code: [Select]
setlocale(LC_CTYPE, "");on "platformSDL.cpp" the code compiles up to 90% and then this happens:

Code: [Select]
Undefined symbols for architecture i386:
  "_SDL_AllocFormat", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_ConvertSurface", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_CreateRGBSurface", referenced from:
      CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
      CBRenderSDL::TakeScreenshot() in BRenderSDL.o
      GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
  "_SDL_CreateRGBSurfaceFrom", referenced from:
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
  "_SDL_CreateRenderer", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_CreateTexture", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBSurfaceSDL::Create(int, int) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_CreateTextureFromSurface", referenced from:
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
      CBSurfaceSDL::CreateFromSDLSurface(SDL_Surface*) in BSurfaceSDL.o
  "_SDL_CreateWindow", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_Delay", referenced from:
      CBPlatform::SleepMs(unsigned int) in PlatformSDL.o
  "_SDL_DestroyRenderer", referenced from:
      CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
  "_SDL_DestroyTexture", referenced from:
      CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
      CBSurfaceSDL::~CBSurfaceSDL() in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_DestroyWindow", referenced from:
      CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
  "_SDL_FreeFormat", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_FreeSurface", referenced from:
      CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
      GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
      GlyphInfo::~GlyphInfo() in FontGlyphCache.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GL_SetAttribute", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_GetColorKey", referenced from:
      CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GetCurrentDisplayMode", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_GetDisplayMode", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_GetKeyboardState", referenced from:
      CBKeyboardState::ScCallMethod(CScScript*, CScStack*, CScStack*, char*) in BKeyboardState.o
  "_SDL_GetModState", referenced from:
      CBKeyboardState::IsControlDown() in BKeyboardState.o
      CBKeyboardState::IsAltDown() in BKeyboardState.o
      CBKeyboardState::IsShiftDown() in BKeyboardState.o
  "_SDL_GetMouseState", referenced from:
      CBPlatform::GetCursorPos(tagPOINT*) in PlatformSDL.o
  "_SDL_GetNumDisplayModes", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_GetPlatform", referenced from:
      CBPlatform::GetPlatformName() in PlatformSDL.o
  "_SDL_GetRGB", referenced from:
      CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
  "_SDL_GetRGBA", referenced from:
      CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
  "_SDL_GetRendererInfo", referenced from:
      CBRenderSDL::GetName() in BRenderSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GetScancodeFromKey", referenced from:
      CBKeyboardState::ScCallMethod(CScScript*, CScStack*, CScStack*, char*) in BKeyboardState.o
  "_SDL_GetSurfaceAlphaMod", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GetSurfaceBlendMode", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GetSurfaceColorMod", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_GetTicks", referenced from:
      CBPlatform::GetTime() in PlatformSDL.o
  "_SDL_Init", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_LockSurface", referenced from:
      CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
      CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
      GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_LockTexture", referenced from:
      CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
  "_SDL_MapRGB", referenced from:
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
  "_SDL_MapRGBA", referenced from:
      CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
      GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
  "_SDL_PollEvent", referenced from:
      CBPlatform::MessageLoop() in PlatformSDL.o
  "_SDL_QueryTexture", referenced from:
      CBSurfaceSDL::IsTransparentAt(int, int) in BSurfaceSDL.o
      CBSurfaceSDL::IsTransparentAtLite(int, int) in BSurfaceSDL.o
      CBSurfaceSDL::GetAlphaAt(int, int) in BSurfaceSDL.o
  "_SDL_Quit", referenced from:
      CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
  "_SDL_RenderClear", referenced from:
      CBRenderSDL::Fill(unsigned char, unsigned char, unsigned char, tagRECT*) in BRenderSDL.o
  "_SDL_RenderCopy", referenced from:
      CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
      CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
  "_SDL_RenderCopyEx", referenced from:
      CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
  "_SDL_RenderDrawLine", referenced from:
      CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
  "_SDL_RenderFillRect", referenced from:
      CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
  "_SDL_RenderGetViewport", referenced from:
      CBRenderSDL::ModTargetRect(SDL_Rect*) in BRenderSDL.o
      CBRenderSDL::TakeScreenshot() in BRenderSDL.o
  "_SDL_RenderPresent", referenced from:
      CBRenderSDL::Flip() in BRenderSDL.o
  "_SDL_RenderReadPixels", referenced from:
      CBRenderSDL::TakeScreenshot() in BRenderSDL.o
  "_SDL_RenderSetViewport", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
      CBRenderSDL::EraseBackground() in BRenderSDL.o
      CBRenderSDL::SetViewport(int, int, int, int) in BRenderSDL.o
  "_SDL_SetColorKey", referenced from:
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
  "_SDL_SetError", referenced from:
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_SetHint", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
  "_SDL_SetRenderDrawBlendMode", referenced from:
      CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
      CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
  "_SDL_SetRenderDrawColor", referenced from:
      CBRenderSDL::Fill(unsigned char, unsigned char, unsigned char, tagRECT*) in BRenderSDL.o
      CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
      CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
  "_SDL_SetRenderTarget", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
      CBRenderSDL::EraseBackground() in BRenderSDL.o
  "_SDL_SetTextureAlphaMod", referenced from:
      CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_SetTextureBlendMode", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_SetTextureColorMod", referenced from:
      CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_SetWindowDisplayMode", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
  "_SDL_SetWindowFullscreen", referenced from:
      CBRenderSDL::SwitchFullscreen() in BRenderSDL.o
  "_SDL_SetWindowTitle", referenced from:
      CBGame::SetWindowTitle() in BGame.o
  "_SDL_ShowCursor", referenced from:
      CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
      CBPlatform::HandleEvent(SDL_Event*) in PlatformSDL.o
      CBPlatform::SDLEventWatcher(void*, SDL_Event*) in PlatformSDL.o
  "_SDL_UnlockSurface", referenced from:
      CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
      CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
      GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_UnlockTexture", referenced from:
      CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
  "_SDL_UpdateTexture", referenced from:
      CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
      SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
  "_SDL_WarpMouseInWindow", referenced from:
      CBPlatform::SetCursorPos(int, int) in PlatformSDL.o
  "std::string::find(char const*, unsigned long) const", referenced from:
      Iex::throwErrnoExc(std::string const&, int) in libfreeimage.a(IexThrowErrnoExc.o-i386)
  "std::string::find(std::string const&, unsigned long) const", referenced from:
      _write_iptc_profile in libfreeimage.a(IPTC.o-i386)
  "std::string::rfind(char, unsigned long) const", referenced from:
      Imf::ChannelList::layers(std::set<std::string, std::less<std::string>, std::allocator<std::string> >&) const in libfreeimage.a(ImfChannelList.o-i386)
  "std::string::substr(unsigned long, unsigned long) const", referenced from:
      _write_iptc_profile in libfreeimage.a(IPTC.o-i386)
  "std::string::compare(std::string const&) const", referenced from:
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::find(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::lower_bound(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::upper_bound(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::insert_unique(std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::insert_unique(std::_Rb_tree_iterator<std::pair<std::string const, FITAG*> >, std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
      std::map<std::string, FITAG*, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::operator[](std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
     
      ...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 notices only
It's longer but I pasted just a fraction of it.
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: metamorphium on December 10, 2014, 09:00:21 PM
Hmm. Do you get the same behavior with julia branch?
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: Extro on December 18, 2014, 04:47:46 PM
Hmm. Do you get the same behavior with julia branch?

Hi!

Trying to compile your branch in xCode 6.1 and have errors such as:

Code: WME Script
  1. /src/BSoundBuffer.h:32:10: 'bass_fx.h' file not found

Perhaps, some additional dependences are necessary, which aren't present?
Title: Re: Building my game on OS X 10.9 with WME Lite
Post by: Sothoth on December 18, 2014, 06:05:50 PM
You need to include the BASS FX add-on. Could be downloaded from here:

http://www.un4seen.com/download.php?z/0/bass_fx24-osx

Cheers!