First post, by emendelson
Hello,
Back in December, I was able to create a portable build of SVN under OS X, by using the methods described in this message in another thread:
Dominus's instructions made it possible for me to build a portable copy of SVN under OS X. In case anyone wants to do the same t […]
Dominus's instructions made it possible for me to build a portable copy of SVN under OS X. In case anyone wants to do the same thing, here is a summary of the instructions, all in one place. Remember that all of this is Dominus's work; I've just put it all together in one message.
1. Install MacPorts from http://www.macports.org
2. To make this version of DOSBox portable, and if (like me) you don't need sdl_net or sdl_sound, then install these items only:
Code:
sudo port install libsdl +universal +no_x11
sudo port install libpng +universal
sudo port install pkgconfig +universal3. Then use a script to automate the whole process of setting environment variables and editing the Makefiles to create a static-linked sdl:
Code:
#!/bin/shexport CFLAGS='-I/opt/local/include -O2 -arch i386'
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CXXFLAGS
export LDFLAGS='-L/opt/local/lib -O2 -arch i386'
export CC='/usr/bin/gcc-4.2 -arch i386'
export CXX='/usr/bin/g++-4.2 -arch i386'
export GCOV='/usr/bin/gcov-4.2 -arch i386'make clean
./autogen.sh
./configuresed -i.old -e "s@-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa@-L/opt/local/lib /opt/local/lib/libSDLmain.a /opt/local/lib/libSDL.a -Wl,-framework,OpenGL -Wl,-framework,Cocoa -Wl,-framework,ApplicationServices -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,IOKit@g" -e "s@-lX11@ @g" Makefile
cd src
sed -i.old -e "s@-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa@-L/opt/local/lib /opt/local/lib/libSDLmain.a /opt/local/lib/libSDL.a -Wl,-framework,OpenGL -Wl,-framework,Cocoa -Wl,-framework,ApplicationServices -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,IOKit@g" -e "s@-lX11@ @g" Makefile
cd ..
makeThe two sed commands perform the replacement in the Makefile that Dominus spelled out in another message.
Put this script in the "trunk" folder (or whatever you call the folder that contains the folders "src", "include", "docs", etc.) Make the script executable with the command chmod +x filename. In the terminal, navigate to the folder that contains the script, src, include, docs, etc, and run the script from the terminal to build DOSBox, which will be created in the src folder.
Today, when I tried the same method under OS X 10.6.7, using exactly the same source code that I used in December (I have a backup), nothing got built. I had exactly the same problem on another 10.6.7 system.
Has anything changed in OS X in the past five months that causes this failure? Is there anything else that needs to be changed in the EXPORT lines or anything else in these instructions?
Many thanks for any help,