Compiling SVN under mac osx 10.4
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
Compiling SVN under mac osx 10.4
i downloaded the newest svn and was trying to run configure, but it couldnt find gl libraries. What options do i need to specify? running OSX 10.4.8 on iMac G5. Downloaded all the dependencies and have been trying random stuff for liek 4 hours now.
btw this is my first post on forums here!
btw this is my first post on forums here!
You do not have the required permissions to view the files attached to this post.
-
- Bounty Hunter
- Posts: 165
- Joined: Sun Feb 11, 2007 3:40 am
- Location: Halifax, NS, Canada
Re: Compiling SVN under mac osx 10.4
Looks like configure isn't finding libGL.so, or libopengl32.so. (gcc -lGL tries to link with libGL.so, BTW.) If you have those libraries, but they're in some directory configure doesn't think of looking in, you may have to set some environment variables (-L/usr/local/lib ...). ./configure --help for how to do it.bgaskey wrote:i downloaded the newest svn and was trying to run configure, but it couldnt find gl libraries. What options do i need to specify? running OSX 10.4.8 on iMac G5. Downloaded all the dependencies and have been trying random stuff for liek 4 hours now.
btw this is my first post on forums here!
Try googling around for how to compile openGL progs on MacOS X. That'll probably tell you where to find a libGL.
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
-
- ISO Party Member
- Posts: 433
- Joined: Wed Feb 07, 2007 9:27 pm
See also:
http://vegastrike.sourceforge.net/forum ... php?t=8132
I have had continuing troubles with SVN on a Mac mostly because Apple puts all the files in unexpected places.
http://vegastrike.sourceforge.net/forum ... php?t=8132
I have had continuing troubles with SVN on a Mac mostly because Apple puts all the files in unexpected places.
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
-
- Bounty Hunter
- Posts: 165
- Joined: Sun Feb 11, 2007 3:40 am
- Location: Halifax, NS, Canada
Ok, those are probably equivalent to .so. .so is a "shared object" (shared library, equivalent to Windows DLL, in case that helps.) Probably the linker can read the .dylib file, and that will tell is where to find the actual shared object. (which might be called .so.versionnumber).bgaskey wrote:Peter: I found libGL files but there is no .so the only extensions are .dylib and .a and i dont know if i can/should point the configure to them. They are locate in /Usr/X11R6/lib. I searched the whole hard drive from the terminal and there is only 3 .so files (not including GL or opengl32 ).
.a is a static library, so even if the compiler can't find a dynamic lib, it'll still link.
/usr/X11R6/lib (err, /Usr...) is a very likely place to find graphics libraries, so that's promising. Make sure it's included in the search path (i.e. there's a -L/Usr/X11R6/lib in there somewhere.)
Does OSX really use capital-U /Usr? At least with Fink it's actually fairly serviceable as a Unix.
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
-
- ISO Party Member
- Posts: 433
- Joined: Wed Feb 07, 2007 9:27 pm
That is where Apple puts them in 10.3 & 10.4 (but not in 10.2 & 10.5).bgaskey wrote:They are locate in /Usr/X11R6/lib.
See the other thread for ace123's advice to deal with this.
".so" & ".a" appear to be interchangeable from the viewpoint of the config script.peter wrote: Ok, those are probably equivalent to .so. .so is a "shared object"
Not really -- they have absolutely nothing to do with X11. However, that *IS* where Apple put them./usr/X11R6/lib (err, /Usr...) is a very likely place to find graphics libraries, so that's promising.
This will not resolve the problem. The configure script does not read PATH.Make sure it's included in the search path (i.e. there's a -L/Usr/X11R6/lib in there somewhere.)
No. OS X inherited the usual file tree from the BSD kernel; except where Apple moves things to strange places to make it hard to use the unix layer.Does OSX really use capital-U /Usr?
-
- Bounty Hunter
- Posts: 165
- Joined: Sun Feb 11, 2007 3:40 am
- Location: Halifax, NS, Canada
Right, I should clarify that I don't mean $PATH, I mean the paths that configure will tell the compiler to search for libraries. i.e. adding stuff to LDFLAGS and CFLAGS. But the configure script can do that more easily:Shissui wrote:True, but vendors like Apple and Sun like to put other libraries in with the X11 stuff. libGL can't do any openGL except GLX, right? So it does need X11. I know xorg/xfree86 is a separate project from mesa or any other libGL. Anyway, I won't argue that libGL belongs in /usr/X11R6, but there are semi-coherent arguments for it.Not really -- they have absolutely nothing to do with X11. However, that *IS* where Apple put them./usr/X11R6/lib (err, /Usr...) is a very likely place to find graphics libraries, so that's promising.
This will not resolve the problem. The configure script does not read PATH.Make sure it's included in the search path (i.e. there's a -L/Usr/X11R6/lib in there somewhere.)
./configure --with-gl-libs=/usr/X11R6/lib --with-gl-inc=/usr/X11R6/include
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
-
- ISO Party Member
- Posts: 433
- Joined: Wed Feb 07, 2007 9:27 pm
However, in 10.2, they were in /usr/include & they will be returning to /usr/include in 10.5. So, for any form of open source software, this means there must be support for both locations for backward compatibility.peter wrote:Anyway, I won't argue that libGL belongs in /usr/X11R6, but there are semi-coherent arguments for it. :P
*THAT* however, is a whine for another day.
I have also discovered that it needs "--with-python-libs=/sw/lib/python2.3/config" & "--with-expat-libs=/usr/X11R6/lib" & "--with-expat-inc=/usr/X11R6/include"Right, I should clarify that I don't mean $PATH, I mean the paths that configure will tell the compiler to search for libraries. i.e. adding stuff to LDFLAGS and CFLAGS. But the configure script can do that more easily:
./configure --with-gl-libs=/usr/X11R6/lib --with-gl-inc=/usr/X11R6/include
With those additional includes, it should bring bgaskey up to the same line where configure currently crashes on my machine -- (not) looking for the png libraries in either /sw/include/ or /sw/lib/.
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
-
- ISO Party Member
- Posts: 433
- Joined: Wed Feb 07, 2007 9:27 pm
From a Terminal window, as an admin privilege user, try the command:
You should get something of the form:
Code: Select all
sudo find / | grep libGL
If this is not the case, then you need to re-install XCode -- be sure to include the 10.3 & 10.4 SDK modules. If your "find" looks like mine (without the snipping), then run the configure script again & paste the last 20 lines of the Terminal output back here.stdout wrote: !3=/usr/lib[admin]> sudo find / | grep libGL
Password:
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
<< snip: related entries >>
/Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/lib/libGL.1.2.dylib
<< snip: related entries >>
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
<< snip: related entries >>
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/libGL.1.2.dylib
<< snip related entries >>
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
<< snip: related entries >>
/usr/X11R6/lib/libGL.1.2.dylib
/usr/X11R6/lib/libGL.1.dylib
/usr/X11R6/lib/libGL.a
/usr/X11R6/lib/libGL.dylib
/usr/X11R6/lib/libGLU.a
/usr/X11R6/lib/libGLw.a
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
It ran all the way through. For Shissui this should get it to find png and jpeg libs:
the script still ends with a page or so of errors tho.
This is the end of the terminal output.
Code: Select all
./configure --with-gl-libs=/usr/X11R6/lib --with-gl-inc=/usr/X11R6/include/GL --with-python-libs=/sw/lib/python2.3/config --with-expat-libs=/usr/X11R6/lib --with-expat-inc=/usr/X11R6/include --with-png-libs=/sw/lib --with-png-inc=/sw/include/libpng12 --enable-macosx-bundle --with-jpeg-libs=/sw/lib --with-jpeg-inc=/sw/include
This is the end of the terminal output.
Is any of that bad?? How can i add GTK and the other stuff to the search path?checking for OGRE... Package OGRE was not found in the pkg-config search path.
Perhaps you should add the directory containing `OGRE.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OGRE' found
no
checking for CEGUI... Package CEGUI was not found in the pkg-config search path.
Perhaps you should add the directory containing `CEGUI.pc'
to the PKG_CONFIG_PATH environment variable
No package 'CEGUI' found
no
checking for CEGUI_OPENGL... Package CEGUI-OPENGL was not found in the pkg-config search path.
Perhaps you should add the directory containing `CEGUI-OPENGL.pc'
to the PKG_CONFIG_PATH environment variable
No package 'CEGUI-OPENGL' found
no
checking for CEGUI_OGRE... Package CEGUI-OGRE was not found in the pkg-config search path.
Perhaps you should add the directory containing `CEGUI-OGRE.pc'
to the PKG_CONFIG_PATH environment variable
No package 'CEGUI-OGRE' found
no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: WARNING: GTK Was not found. VSSETUP will not be built.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
-
- ISO Party Member
- Posts: 433
- Joined: Wed Feb 07, 2007 9:27 pm
Those are all warnings -- not critical. You should now be ready for the compile proper:
Code: Select all
make vegastrike
make soundserver
make install
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
-
- Elite Venturer
- Posts: 718
- Joined: Wed Mar 07, 2007 9:05 pm
- Location: Rimward of Eden
I found and OGG on fink and got it. makefile ran, as did make soundserver and make install.
when i ran the binary, the game started and ran, but there were like a million errors . I couldnt seem to find a lot of the image files. also, it started in 800x600 resolution and i cant find a setup program to fix that.
when i ran the binary, the game started and ran, but there were like a million errors . I couldnt seem to find a lot of the image files. also, it started in 800x600 resolution and i cant find a setup program to fix that.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
@bgaskey congratulations you got it those errors about missing images is normal ATM as for no setup program no GTK no setup you will have to edit vegastrike.config manually the file is XML and the active one is in your home folder.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Insys Pilot
- Posts: 2
- Joined: Sat Jul 07, 2007 2:47 am
Another svn MacOS newbie
I know this thread has been inactive for a while, but I appear to be having the same problem as bgaskey was...I can't seem to convince ./configure that I really do have libGL.a. When I follow Shissui's advice:
and here's the last several lines of what I'm getting:
I do indeed get the same output mentioned, leading me to believe that Xcode has been properly installed. Here's what I'm trying:Shissui wrote:From a Terminal window, as an admin privilege user, try the command:
You should get something of the form....Code: Select all
sudo find / | grep libGL
Code: Select all
./configure --with-gl-libs=/usr/X11R6/lib --with-gl-inc=/usr/X11R6/include/GL --with-python-libs=/sw/lib/python2.3/config --with-expat-libs=/usr/X11R6/lib --with-expat-inc=/usr/X11R6/include --with-png-libs=/sw/lib --with-png-inc=/sw/include/libpng12 --enable-macosx-bundle --with-jpeg-libs=/sw/lib --with-jpeg-inc=/sw/include --with-sdl-config=/sw/bin
Any suggestions?/sw/lib/python2.4/config/libpython2.4.a yes
checking for sdl-config... /sw//bin/sdl-config
checking for SDL - version >= 1.0.1... yes
checking for SDL_JoystickOpen... no
*** This version of SDL doesn't have joystick support.
*** Configuring without joystick support.
Using SDL Windowing System
checking for Mix_OpenAudio in -lSDL_mixer... no
*** SDL_mixer not found. Configuring without audio support.
checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... no
checking for opengl32 library (with pthreads)... no
configure: error: Cannot find GL library
-
- Elite
- Posts: 1832
- Joined: Sat Jan 15, 2005 10:21 pm
- Location: State of Denial
- Contact:
-
- Insys Pilot
- Posts: 2
- Joined: Sat Jul 07, 2007 2:47 am
I also wonder if there's something screwy going on with my configure.ac...Do I need to edit/comment something out/in?
Note that I've edited out all references to SDKs other than MacOSX10.4u.sdk (I should mention this is on an Intel Mac running OSX 10.4.10)...although, my config.log includes lines like
Code: Select all
if test "x$is_macosx" = "xyes" ; then
CXXFLAGS="$CXXFLAGS -I/Developer/SDKs/MacOSX10.4usdk/System/Library/Frameworks/Carbon.framework/Libraries/CIncludes -DHAVE_PYTHON=1 -I$PYTHON_INCPATH "
CPPFLAGS="$CPPFLAGS -Wno-long-double"
dnl GL_CPPFLAGS="$GL_CPPFLAGS -framework OpenGL"
dnl GLUT_CPPFLAGS="$GLUT_CPPFLAGS -framework GLUT"
VS_LIBS="$VS_LIBS -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -framework OpenGL -framework GLUT -framework CoreAudio"
with_gl_inc=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Libraries/CIncludes
with_gl_libs=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Libraries
with_al_inc="/System/Library/Frameworks/OpenAL.framework/Headers -I/sw/include"
with_al_libs="/System/Library/Frameworks/OpenAL.framework/ -L/sw/lib"
# PYTHON_LDOPTS="-L/System/Library/Frameworks/Python.framework"
# with_python_inc="/System/Library/Frameworks/Python.framework/Headers"
VS_LIBS="$VS_LIBS -lobjc -L$PYTHON_LIBPATH "
else
VS_LIBS="$VS_LIBS -lutil"
fi
Where did that reference to MacOSX10.2.8sdk come from? Or is this an unrelated issue (I'm not much of a programmer myself, so it might just be that I'm out of my element here)?configure checking for GL library
configure g++ -o conftest -I/Developer/SDKs/MacOSX10.2.8sdk/System/Library/Frameworks/Carbon.framework/Libraries/CIncludes -DHAVE_PYTHON=1 -I -Wno-long-double -L/sw/lib conftest.cc -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -framework OpenGL -framework GLUT -framework CoreAudio -lobjc -L -L/sw/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Libraries -lGL >&5
/usr/bin/ld: -L: directory name missing
collect2: ld returned 1 exit status
configure $? = 1
configure: failed program was:
-
- Elite
- Posts: 1832
- Joined: Sat Jan 15, 2005 10:21 pm
- Location: State of Denial
- Contact:
Intel mac... that may be the problem. I think I read something about Apple or Xcode not providing the proper GL libraries or something...
Try a forums search, also see: http://vegastrike.sourceforge.net/forum ... php?t=8132
Try a forums search, also see: http://vegastrike.sourceforge.net/forum ... php?t=8132
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact: