partyk1d24 Posted May 9, 2013 So I am trying to get PRBOOM to compile for OSX, however, when I run ./configure I get the following... checking for OpenGL support... no configure: error: You must have the relevant OpenGL development libraries & headers installed to compile with OpenGL support What am I missing? How do I get around this? 0 Share this post Link to post
partyk1d24 Posted May 9, 2013 Ok so this seems to work.... ./configure --disable-gl but I WANT OpenGL, anyone know how to avoid this? 0 Share this post Link to post
fraggle Posted May 9, 2013 What it says: you need to install the relevant OpenGL development libraries & headers. Do you have Xcode installed? It comes with the compilers and dev files for most of the system. 0 Share this post Link to post
wesleyjohnson Posted May 9, 2013 You must be talking about a Mac, with OSX. checking for OpenGL support... no -- you are missing the OpenGL libraries Does OSX come with OpenGL libraries as standard ?? Most of us have to download libraries and install them. Even SDL calls the OpenGL libraries. I think Mosaic was one of the implementations of OpenGL. Apple probably has their own special implementation. (oops, fraggle beat me by seconds) 0 Share this post Link to post
partyk1d24 Posted May 9, 2013 Thanks for attempting to help Yes this is OSX (Still can't get my ubuntu partition to boot off the drive works fine on USB). I am new to all of this but I would assume NVidia would support OpenGL right? So they should have drivers somewhere right? Are there instructions for installing the Headers/Drivers? 0 Share this post Link to post
partyk1d24 Posted May 9, 2013 Oh and I have xcode installed. Just test SDL is working fine. 0 Share this post Link to post
partyk1d24 Posted May 9, 2013 Like I see this stuff, http://stackoverflow.com/questions/2197223/where-are-the-opengl-header-files-located-on-macosx But how do I get those to work with the PRBoom+ code? Is there a flag or variable I can set somewhere? 0 Share this post Link to post
printz Posted May 9, 2013 You don't need to compile anything, just download it from here: https://sourceforge.net/projects/prboom-plus/ How to make PrBoom+ work on OSX 10.7 and up. See this post Beware that Apple still clings to its own version of OpenGL, which is still 3.2 (modern one is 4.2), which may explain all the recent OpenGL troubles with Doom ports. Regardless of it, PrBoom+ on OpenGL mode works for me; I'm using a laptop with discrete card and I deliberately forced the discrete card to be always on (disable automatic switching on system preferences, or get the gfxCardStatus utility). 0 Share this post Link to post
Ribbiks Posted May 9, 2013 compiling latest prb+ from source: iirc, opengl framework should be on the system by default, I don't think you need to install anything (check to see if /System/Library/Frameworks/OpenGL.Framework exists) if you have that then you have everything you need for openGL, but the files aren't in the locations they're expected to be in by the prb+ configure scripts, so you need to make some symlinks: ln -s /System/Library/Frameworks/OpenGL.Framework/Versions/A/Headers /usr/include/GL ln -s /System/Library/Frameworks/OpenGL.Framework/Versions/A/Headers /usr/include/OpenGL ln -s /System/Library/Frameworks/OpenGL.Framework/Versions/A/Libraries/libGL.dylib /usr/lib/libGL.dylib ln -s /System/Library/Frameworks/OpenGL.Framework/Versions/A/Libraries/libGLU.dylib /usr/lib/libGLU.dylib I think that's all I had to do, this was awhile ago so I hope I'm not forgetting any other steps. printz said:How to make PrBoom+ work on OSX 10.7 and up[/b]. See this post It's cool that the fix is so simple, but midi playback in 2.5.1.2 is fucked on os x 10.7+. Is there any option for music other than quicktime? 0 Share this post Link to post
Ribbiks Posted May 9, 2013 cheers :) I notice a couple annoying quirks in gl-mode though in 2.5.1.4 (on os x 10.8), for one I can't seem to get hi-res textures to work, also for some reason automap doesn't render lines. If those work fine for you then I must've messed something up myself somewhere. Or maybe it's the aforementioned outdated opengl. 0 Share this post Link to post
printz Posted May 9, 2013 What are you guys using to build PrBoom+ from source? The Rakefile from src/MAC? 0 Share this post Link to post
Ribbiks Posted May 9, 2013 EDIT: 04/26/2015 Just got a new compy. os x 10.10.3. Here's the steps to compile the latest prb+ from scratch: - install xcode and command line tools - install the following (I used macports): --- automake, autoconf, libsdl, libsdl_net, libsdl_image, libsdl_mixer, libpng - make some symlinks so the configure script can find your OpenGL libraries:GLPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current sudo ln -s ${GLPATH}/Headers/ /usr/include/GL sudo ln -s ${GLPATH}/Libraries/libGL.dylib /usr/lib/libGL.dylib sudo ln -s ${GLPATH}/Libraries/libGLU.dylib /usr/lib/libGLU.dylib - change some environment variables so compilers know where macports stuff lives:export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/local/include export LIBRARY_PATH=$LIBRARY_PATH:/opt/local/lib- now you can finally follow the standard install procedure:svn co https://svn.prboom.org/repos/branches/prboom-plus-24/prboom2 cd prboom2 ./bootstrap ./configure make sudo make install- by default executables are created in /usr/local/games/, iwad folder is /usr/local/share/games/doom/ Hopefully this post can be useful if anyone stumbles across this thread. Or maybe I'll eventually come back and look it up if I ever have to do this again :D 2 Share this post Link to post