OpenXcom Forum
Contributions => Builds & Ports => Topic started by: antigluten on March 19, 2013, 02:45:05 am
-
Full verbose log errors here: https://pastebin.com/7YDg6KpH
As discussed with a few IRCers, it seems like glext.h is not being referenced properly.
I have installed XCode 4.3.1 and installed its Command Line Tools, and installed 'yaml-cpp', 'sdl', 'sdl_gfx', and 'sdl_mixer' via Homebrew.
I've found glext.h in a few places on OS X...
/System/Library/Frameworks/OpenGL.framework/Headers/glext.h
as well as
/usr/X11/include/glext.h
I've tried referencing these locations explicitly in the makefile but have not had any success.
Thanks in advance for your guidance here - compiling is definitely not my strong suit
-
I'm wondering if using GLEW is gonna help me out here... gonna try updating this linking with GLEW libraries and see if this solves the issue....
-
apparently GLEW and SDL_OpenGL.h don't mix well. Just fyi
-
apply this: https://bumba.net/~hmaon/oxc/OSX_kludge.patch
compile with make -f Makefile.gcc-pch -j 4 (or however many cores you have)
I'm having it include glext.h before SDL's headers. I don't like it. I'll try to find a better solution later.
Oh, I only tested on OS X 10.8.something so YMMV. Let me know how it goes.
-
ah great - this definitely solves that problem: i was able to remove the #include "glext.h" by adding in #define NO_SDL_GLEXT instead. This also got rid of a warning where the glext version was being redefined.
Now I just need to drop my yaml version down to 0.3 (or less -thanks warboy ;)
-
Alright! Now have successfully built on 10.7.4.
Issues were as follows:
yaml-cpp 0.3.0 (or less)
- Had installed through homebrew which is version 0.5.0
- Built source from here: https://code.google.com/p/yaml-cpp/downloads/detail?name=yaml-cpp-0.3.0.tar.gz&can=2&q=
Used hmaon's patch to accommodate for OSX weirdness. I made a minor edit (as described in my previous post).
Built just fine after these corrections with a few warnings which havent caused any problems yet to the build.
Final methodology for successful compile:
- Install XCode 4.3.1 and the install the Command Line Tools (under XCode > Preferences > Downloads > Components)
- Install brew for easy dependency grabs (visit: https://mxcl.github.com/homebrew/)
- brew install sdl
- brew install sdl_gfx
- brew install sdl_mixer
- brew install sdl_image
- Build and install yaml-cpp 0.3.0 (source: https://code.google.com/p/yaml-cpp/downloads/detail?name=yaml-cpp-0.3.0.tar.gz&can=2&q=)
- git clone https://github.com/SupSuper/OpenXcom.git
- download and apply https://bumba.net/~hmaon/oxc/OSX_kludge.patch using 'git apply OSX_kludge.patch'
- make -f Makefile.gcc-pch -j 4 (number of cores..)
Tada! Thanks to hmaon, warboy, and Grrussel. Hopefully we can exclude the patching in the near future..
-
My (slightly different patch) is linked to from https://github.com/SupSuper/OpenXcom/issues/465