configure --prefix=/tmp/ && make && make install && make clean
cross-configure.sh --prefix=/pinball --disable-stltest && \
cross-make.sh
cross-make.sh -C src wpinball.exe && cross-make.sh clean
CVS_RSH=ssh && export CVS_RSH
cvs -d:pserver:${USER}@cvs.sourceforge.net:/cvsroot/pinball login \
&& \
cvs -z3 -d:ext:${USER}@cvs.sourceforge.net:/cvsroot/pinball co pinball
cvs -z3 -d:ext:${USER}@cvs.sourceforge.net:/cvsroot/pinball co pinball/src
cvs -z3 -d:ext:${USER}@cvs.sourceforge.net:/cvsroot/pinball co pinball/addon
cvs -z3 -d:ext:${USER}@cvs.sourceforge.net:/cvsroot/pinball co pinball/base
cvs -z3 -d:ext:${USER}@cvs.sourceforge.net:/cvsroot/pinball co pinball/data
# 2003-05-10
CVSROOT=:ext:rzr@cvs.sourceforge.net:/cvsroot/pinball && export CVSROOT
cvs login && cvs -z3 co pinball
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pinball login && cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pinball co pinball
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pinball
:ext:rzr@cvs.sourceforge.net:/cvsroot/pinball
find . -name Root -exec cat {} \;
find . -name Root -exec sed -e"s/:pserver:anonymous/:ext:${USER}/g" {} \;
find . -name Root -exec execself.sh {} sed -e"s/:pserver:anonymous/:ext:${USER}/g" \;
# 2003-04-10
# rzr@usf-cf-sparc-linux-1:~/pinball
#ssh rzr@usf-cf-alpha-linux-1
echo "$USER@$HOSTNAME.$DOMAINNAME"
cd pinball
./bootstrap
#cat /usr/share/aclocal/libtool.m4 >> acloal.m4
./configure --prefix=$HOME/tmp/$OSTYPE-$MACHTYPE
make
# 2003-04-09
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/pinball.dsw ./pinball.dsw
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/src/Pinball.dsp ./src/pinball.sdp
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/addon/addon.dsp ./addon/addon.dsp
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/base/base.dsp ./base/base.dsp
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/base/config-rzr.h ./base/config-rzr.h
cp ../pinball-0_2_0cvs-rzr-msvc-mingw32/src/LoaderModule.* src/
# 2003-04-08
#MOD
### Msvc/linux port / sharing files
cp -rf ~/homedir/usr/local/src/pinball ~/usr/local/src/
###
cd ~/usr/local/src/pinball
find . -name cvs -exec rename.sh --caseup {} \;
find . -type f \( -name readme -o -name news \) -exec rename.sh --caseup {} \;
rename.sh --caseup news authors copying install readme
### filesystem conversions
mv ./visitor/cvs ./visitor/CVS
mv ./test/cvs ./test/CVS
mv ./src/cvs ./src/CVS
mv ./pinball/src/cvs ./pinball/src/CVS
mv ./pinball/data/cvs ./pinball/data/CVS
mv ./pinball/cvs ./pinball/CVS
mv ./emilia/visitor/cvs ./emilia/visitor/CVS
mv ./emilia/test/cvs ./emilia/test/CVS
mv ./emilia/core/cvs ./emilia/core/CVS
mv ./emilia/addon/cvs ./emilia/addon/CVS
mv ./emilia/cvs ./emilia/CVS
mv ./data/tux/cvs ./data/tux/CVS
mv ./data/professor/cvs ./data/professor/CVS
mv ./data/cvs ./data/CVS
mv ./base/cvs ./base/CVS
mv ./addon/cvs ./addon/CVS
mv ./cvs ./CVS
#
mv ./news ./NEWS
mv authors ./AUTHORS
mv readme ./README
mv ./libltdl/readme ./libltdl/README
### cleanup
make clean distclean
./bootstrap
### unix build
configure --prefix=/tmp/ && make && make install && make clean
### win32 build
find /pinball/ -name *.dll -exec ln -fs {} . \;
make clean ; rm src/wpinball.exe
cross-configure.sh --prefix=/pinball --disable-sdltest && \
cross-make.sh
# ignore error : libjpg not prefixed ? /usr/lib/libjpeg.so
cross-make.sh -C src wpinball.exe
### Tests
./src/wpinball.exe
/tmp/bin/pinball
### clean
cross-make.sh clean distclean
make clean distclean
find . \( -name "*.cpp" -o -name "*.h" \) \
-exec txtconv.sh --in=dos --out=unix {} \;
##############################################################################
# 2003-04-05
##
Modules can be loaded form a dll OR using static linked ones
( #define RZR_LIBSTATIC)
#Replace Module
#Added the static module
##
ls /home/rzr/usr/local/src/orig/pinball
AUTHORS NEWS addon configure.in pinball-config.in test
CVS README base data pinball.spec visitor
ChangeLog acconfig.h bootstrap emilia src
Makefile.am acinclude.m4 clean pinball stamp-h.in
### Clean
\rm *.cache config.* configure Makefile
\rm install* missing mkinstalldirs pinball-config stamp-h ltmain.sh
\rm -r autom4te.cache
###
mv news NEWS
mv readme README
mv authors AUTHORS
cross-configure.sh --prefix=/pinball --disable-sdltest
*
----------------------------------------
Subject: CVS Port mwin32
./configure.in
: fix opengl 4 win32
base/config-rzr.h
: temp compatibility hacks etc (temp until...)
src/LoaderModule.cpp etc
: disable dyn libs on demand
base/Private.h
src/Makefile.in
: new rules for win32 : mingw32@linux compilation :
cross-configure.sh --prefix=/pinball --disable-sdltest && \
cross-make.sh
cross-make.sh -C src wpinball.exe && \
\cp -f src/wpinball.exe /pinball/
src/Pinball.cpp
: I dont think i've something special
... mistake (I should restore the prv one)
PS : This is my 1st log ...hope I didnt screw everything :)
msvc files'll come later
----------
Notes:
That worked for me
the dll are built
cvs add base/config-rzr.h src/LoaderModule.cpp src/LoaderModule.h
----------------------------------------
###
# 2003-04-01 @ Debian
Stange bugs : if the plunger is not at the end of the file pinball.pbl,
collision is not valid
su && export HOME=/home/rzr
#
apt-get install g++ make autoconf automake
apt-get install xlibmesa-dev libsdl1.2debian-all
apt-get install libsdl-image1.2-dev libsdl-image1.2
apt-get install libsdl-mixer1.2-dev libsdl-mixer1.2
#
wget -c http://aleron.dl.sourceforge.net/sourceforge/pinball/pinedit-0.0.4.tar.gz
# deb-make && dpkg-buildpackage
mkdir -p $HOME/usr/local/local/emilia
cd $HOME/usr/local/src/pinball-0.2.0
./configure --prefix=$HOME/usr/local/local/emilia
make && make install
PATH=$HOME/usr/local/local/pinball/bin:$PATH
export PINBALL_CONFIG=$HOME/usr/local/local/emilia/bin/pinball-config
$PINBALL_CONFIG --version
cd $HOME/usr/local/src/pinedit-0.0.4
./configure --prefix=$HOME/usr/local/local/emilia
# --with-pinball-prefix=$HOME/usr/local/local/emilia
#
apt-cache search libqt
apt-get install libqt3-headers libqt3-compat-headers libqt3-mt-dev qt3-tools
make && make install
# Errors :
rm pinedit/moc_*
grep "MOC =" pinedit/Makefile
mkdir -p /usr/lib/qt3/bin
/usr/bin/moc -v
ln -fs /usr/bin/moc /usr/lib/qt3/bin/moc
# or: # $EDITOR pinedit/Makefile # moc = /usr/bin/moc
make && make install
apt-get install libsdl-image1.2-dev libsdl-image1.2
apt-get install libqt3
make && make install
# Err / ugly
ls /usr/lib/libqt*
ln -fs /usr/lib/libqt.so.3 pinedit/libqt.so
make && make install
######################################################################
## Make some debian rules : deb
# Use dpkg -b|--build|-c|--contents|-e|--control|-I|--info|-f|--field|
# -x|--extract|-X|--vextract|--fsys-tarfile on archives (type dpkg-deb
# --help.)
### apt-get source libpng
######################################################################
#### ramlaid log : This is a simple log file for MSVC Pinball version
27/03/03 SDL_image.dll version 1.2.3 (with libpng1.dll) seems to didn't work... (i found an SDL_image.dll (150ko) in pinball directory)
27/03/03 dirent.h unsupported under VC++, use of io.h & _findfirst-_findnext-_findclose functions
27/03/03 need some variable renaming because of variable scope (mainly for (int x...))
27/03/03 in TextureUtil.cpp change SDL/SDL.h to SDL.h
27/03/03 multiples warning of conversion from double to float
27/03/03 in config.cpp, add {} for REMOVEARG def for visual (multiple int aa definition)
27/03/03 Mkdir undefined -> add #include and in pinconfig.h + mkdir redefinition
27/03/03 Add 'using namespace' when needed (prefered solution, maybe add std:: in front of each vector, etc..)
27/03/03 It seems that already defined a Polygon function, and windows.h is needed by OpenGL.
Simple solution : use class Polygon instead of only Polygon
27/03/03 Add in pinconfig.h
# cp include lib $HOME/usr/local/
"/mnt/d/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin/msdev.exe" \
"$PROJECT_HOME/usr/local/src/pinball-win32-msvc6/pinball-0.1.3/config/msvc/Pinball.dsw"
#
# find /mnt/D/Program\ Files/Microsoft\ Visual\ Studio/ -name "*.exe"
PINBALL_CONFIG
# msvc++6
#####################################################################
#2003-03-31
wget -c http://switch.dl.sourceforge.net/sourceforge/pinball/pinedit-0.0.4-1rh73.i386.rpm
alien pinedit-0.0.4-1rh73.i386.rpm
dpkg -i pinedit_0.0.4-2_i386.deb
rzr@teuz:tux$ pinedit
# load one .pbl file and crash ;
disabling TCL support
pinedit: relocation error: pinedit: undefined symbol: __dynamic_cast_2
rzr@teuz:tux$ ldd /usr/bin/pinedit
libGL.so.1 => /usr/lib/libGL.so.1 (0x40014000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x4007a000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400f8000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40105000)
libdl.so.2 => /lib/libdl.so.2 (0x401f1000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x401f4000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40277000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4028b000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40293000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0x402a9000)
libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0x402c1000)
libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0x402fc000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40894000)
libm.so.6 => /lib/libm.so.6 (0x408dd000)
libc.so.6 => /lib/libc.so.6 (0x408fe000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x40a1b000)
libartsc.so.0 => /usr/lib/libartsc.so.0 (0x40aa0000)
libesd.so.0 => /usr/lib/libesd.so.0 (0x40aa7000)
libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40aae000)
libvga.so.1 => /usr/lib/libvga.so.1 (0x40acc000)
libaa.so.1 => /usr/lib/libaa.so.1 (0x40b2b000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40b44000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40b63000)
libz.so.1 => /usr/lib/libz.so.1 (0x40b8e000)
libsmpeg-0.4.so.0 => /usr/lib/libsmpeg-0.4.so.0 (0x40b9d000)
libvorbisfile.so.0 => /usr/lib/libvorbisfile.so.0 (0x40bf5000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40bfb000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x40c1a000)
libaudio.so.2 => /usr/lib/libaudio.so.2 (0x40c1e000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40c32000)
libpng.so.3 => /usr/lib/libpng.so.3 (0x40c7c000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40ca8000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40cbc000)
libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x40cc2000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40ceb000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libslang.so.1 => /lib/libslang.so.1 (0x40d39000)
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40d9a000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40da0000)
cd $HOME/usr/local/src
# 2003-03-28
If you run pinball on a low config
please report FPS with differents graphics modes (config)
the lowest :
320x240 Fullscreen Textures_none Nosound
320x240 Fullscreen Textures_fast sound
RZR patch:
in what dir shall i use ?
the one under or in the base of the new stuff...
the original or the mofified one .. or one before?
ok
more likely in.
ok let see
diff -ru ../oldstuff .
diff -ru ../pinball-0.2.0 .
taht what i did
-w is also good sometimes...
-N can add new files for a patch...
then how to patch ?
diff -ru ../pinball-0.2.0 . > /tmp/patch
cd ../pinball-0.2.0
cd oldsrc ; patch < patchfile
patch < /tmp/patch
and it ask me what file to patch
try: patch -p0 < patchfile
maybe i shouldne enter the dir
yes...
ok that is the -p0 optoin !!!
thanx
Hi
here are the summary of the minors changes :
- mingw32 port
- macosx port
- disable dynlibs option
- User keys may be redifined (as suggested)
- File access can work relativly to argv[0] , no hardcoder full path anymore
The problem how to merge ? I have my own branch from cvs version
(my sources tree is online at)
But I wont ask you to pick the interessing parts in this tarball
Shall I make some patches for 1.0.3 ? or latest CVS version
or ... the simplest a CVS write access (on main or for a "rzr" branch)
What do you prefer ?
Some of my changes may not make the code clearer ?
What do you suggest ? making separates files when possible
or use #ifdef Marcros ?
Also I and some of my friends are trying to set up a dev team for
new features ... actually I think our priorities are in making something :
- simple and efficient for end users
- nice with lot of impressive 3D effects
Well we have a mailing list up and lot of infos on the webpage
http://rzr.online.fr/game
Do you have ideas of thinks we can work on ?
I will contact you again soon for setting up a proper way to work toguether
# 2003-03-27
Keyborad fix for macs
src/ArmBehavior.cpp
base/Config.cpp
man SDLKey
/usr/local/cross-tools/i386-mingw32msvc/include/SDL/SDL_keysym.h
man SDLKey | cut -b8-28
grep SHIFT */*.cpp
src/ArmBehavior.cpp: DO_ARM(SDLK_RSHIFT);
grep SDLK */*.cpp
that might be easy with awk :
I am try to merge those 2 outputs in one file
man SDLKey | cut -b8-28 | sed -e "s/\(.*\)/keyname [ \1 ] /g"
man SDLKey | cut -b44-60 | sed -e "s/\(.*\)/=\" ] \1\";/g"
printf( ", Name: %s", SDL_GetKeyName( key->keysym.sym ) );
http://sdldoc.csn.ul.ie/sdlgetkeyname.php
###
teuz% ldd /pinball/pinball-Linux
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40026000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4002e000)
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x40045000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x400ab000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0x40128000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4013f000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x4015e000)
libz.so.1 => /usr/lib/libz.so.1 (0x40189000)
libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0x40198000)
libsmpeg-0.4.so.0 => /usr/lib/libsmpeg-0.4.so.0 (0x401d3000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4022b000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x40274000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402e0000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x403ba000)
libdl.so.2 => /lib/libdl.so.2 (0x403c7000)
libpthread.so.0 => /lib/libpthread.so.0 (0x403ca000)
libvorbisfile.so.0 => /usr/lib/libvorbisfile.so.0 (0x403de000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x403e5000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x40404000)
libm.so.6 => /lib/libm.so.6 (0x40408000)
libc.so.6 => /lib/libc.so.6 (0x40429000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Latest "devel/test" version :
(is in provided in several files that can stay on a set of floopy disks)
pintest.zip
(DLL are not packaged)
DLL / Libraries (SDL, smpeg etc)
libsdl-WIN32.zip
(Copy the .dll to the pinball folder)
Register at
http://groups.yahoo.com/group/houseofthe1000corpses
or
mailto:houseofthe1000corpses-subscribe@yahoogroups.com
# 2003-03-15
bash-2.05b$ ls /usr/local/cross-tools/i386-mingw32msvc/lib/libSDLmain.a
/usr/local/cross-tools/i386-mingw32msvc/lib/libSDLmain.a
*** Warning: This library needs some functionality provided by -lSDLmain.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libModuleTux. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
# 2003-03-14
code:
- support for relative path
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pinball login && cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pinball co pinball
#
# apply rzr patch
mkdir /mnt/C/pinball
ln -fs /mnt/C/pinball /pinball
make clean distclean
\cp -f patches/configure.in ./
autoconf
\cp -f patches/pinconfig.h.in ./
cross-configure.sh --prefix=/pinball
cd ~/usr/local/src/pinball
cross-make.sh
# ignore errors
# bad generated rule (under Linux mingw32)
# src/ litool returns error : -L/usr/local//lib /usr/lib/libjpeg.so
# make -f src/Makefine wpinball.exe (build the final programm)
make -k install
# ignore errors
mv -f src/wpinball.exe /pinball/
/pinball/wpinball.exe
rm src/wpinball.exe ; \
make -f config/mk-win32.mk WIN32=1 wpinball.exe 2>&1 | less
/pinball/wpinball.exe
#
##############################################################################
src/Pinball.cpp:179: filename = datadir + string("/nudge.wav");
gfx:
http://www.mayang.com/textures/html/Metal/
2003-03-13:
wget -c http://icculus.org/physfs/downloads/physfs-0.1.8.tar.gz
grep "\.wav" ~/usr/local/src/pinball/*/*.cpp
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: filename = datadir + string("/nudge.wav");
grep "\.png" ~/usr/local/src/pinball/*/*.cpp
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: filename = datadir + string("/floor2.png");
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: string filename = Config::getInstance()->getDataDir() + string("/font_34.png");
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: string filename = Config::getInstance()->getDataDir() + string("/font_34.png");
grep "\.pcx" ~/usr/local/src/pinball/*/*.cpp
/home/rzr/usr/local/src/pinball/src/Loader.cpp: str += ".pcx";
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: filename = datadir + string("/floor2.pcx");
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: string filename = Config::getInstance()->getDataDir() + string("/font_35.pcx");
/home/rzr/usr/local/src/pinball/src/Pinball.cpp: string filename = Config::getInstance()->getDataDir() + string("/font_35.pcx");
# 2003-03-11
echo $OSTYPE $MACHTYPE $HOSTNAME $HOSTTYPE - $HOME $SHELL
# darwin powerpc Aerith.local. macintosh - /Users/guest /bin/tcsh
cc --version
cc (GCC) 3.1 20020420 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-2.05a$ uname -a
Darwin Aerith.local. 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003; root:xnu/xnu-344.26.obj~1/RELEASE_PPC Power Macintosh powerpc
ssh -X guest@ca-rennes-5-174.abo.wanadoo.fr
/
export DISPLAY=rzr.kicks-ass.org:2
/usr/X11R6/bin/xterm
./bootstrap
./configure --prefix=$HOME/usr/local/local
http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/release/SDL-devel-1.2.5.pkg.tar.gz
scp *.tar.gz guest@ca-rennes-5-174.abo.wanadoo.fr :
#macos-help
#macosx
apt-get install tramp
##-----------------------------------------------------------------------------
bash-2.05a$ file ~/usr/local/bin/pinball
/Users/guest/usr/local/bin/pinball: Mach-O executable ppc
bash-2.05a$ otool -L ~/usr/local/bin/pinball
/Users/guest/usr/local/bin/pinball:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 8.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/Users/guest/usr/local/lib/libSDL_image-1.2.0.dylib (compatibility version 2.0.0, current version 2.2.0)
/usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3)
/Users/guest/usr/local/lib/libSDL_mixer-1.2.0.dylib (compatibility version 3.0.0, current version 3.3.0)
/Users/guest/usr/local/lib/libSDL-1.2.0.dylib (compatibility version 1.0.0, current version 1.5.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)
bash-2.05a$ file ~/usr/local/bin/pinball
/Users/guest/usr/local/bin/pinball: Mach-O executable ppc
bash-2.05a$ otool -L ~/usr/local/bin/pinball
/Users/guest/usr/local/bin/pinball:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 8.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/Users/guest/usr/local/lib/libSDL_image-1.2.0.dylib (compatibility version 2.0.0, current version 2.2.0)
/usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3)
/Users/guest/usr/local/lib/libSDL_mixer-1.2.0.dylib (compatibility version 3.0.0, current version 3.3.0)
/Users/guest/usr/local/lib/libSDL-1.2.0.dylib (compatibility version 1.0.0, current version 1.5.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)
##-----------------------------------------------------------------------------
[Aerith:~] guest% /usr/X11R6/bin/glxinfo
name of display: rzr.kicks-ass.org:2.0
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
unknown error code : invalid display
unknown error code : invalid display
gl: couldn't allocate CGLContextObj
display: rzr.kicks-ass.org:2 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: (null)
OpenGL renderer string: (null)
OpenGL version string: (null)
OpenGL extensions:
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x25 24 tc 0 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x26 24 tc 0 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x29 24 dc 0 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x2a 24 dc 0 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
[Aerith:~] guest% /usr/X11R6/bin/glxgears
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
unknown error code : invalid display
unknown error code : invalid display
gl: couldn't allocate CGLContextObj
3961 frames in 7.0 seconds = 565.857 FPS
##---------------
curl -O http://jcatki.no-ip.org/cgi-bin/cvsweb.cgi/~checkout~/jai/opengl.m4?rev=1.3
aclocal -I
# Making all in addon
# Makefile:232: BigSphere.Po: No such file or directory
/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
ln -fs /System/Library/Frameworks/AGL.framework/Versions/A/Headers ~/usr/local/include/GL
-framework OpenGL
http://jcatki.no-ip.org/cgi-bin/cvsweb.cgi/jai/
http://jcatki.no-ip.org/cgi-bin/cvsweb.cgi/jai/configure.in?rev=1.12&c
ontent-type=text/x-cvsweb-markup
###
mkdir -p ~/usr/local/src
cd ~/usr/local/src && \
curl -O http://rzr.online.fr/docs/game/pinball-src.tgz
tar xfz pinball-src.tgz && \
cd pinball && \
./bootstrap
./configure --prefix=$HOME/usr/local --disable-sdltest \
&& make && make install
# Making all in addon
# Makefile:232: BigSphere.Po: No such file or directory
####
./configure --prefix=$HOME/usr/local --with-sdl-prefix=$HOME/usr/local
--disable-sdltest
#export LD_LIBRARY_PATH=$HOME/usr/local/lib:$LD_LIBRARY_PATH
#setenv LD_LIBRARY_PATH $HOME/usr/local/lib:$LD_LIBRARY_PATH
bash-2.05b$ grep \"/\" */*.cpp
base/Config.cpp: m_sDataSubDir = m_sDataDir + "/" + m_sSubDir;
base/Config.cpp: m_sDataSubDir = m_sDataDir + "/" + m_sSubDir;
base/Config.cpp: m_sDataDir = path + "/" + EM_DATADIR;
base/Config.cpp: path = string(cwd) + "/" + path + "/" + EM_DATADIR;
config/Loader-static.cpp: //string filename = string(Config::getInstance()->getDataSubDir()) + "/" + str;
config/Loader-static.cpp: string filename = string(EM_LIBDIR) +"/" + str; //!+-rzr: File sepataror
config/Loader-static.cpp: //while ( filename.find("/", 1);
src/Loader.cpp: string filename = string(Config::getInstance()->getDataSubDir()) + "/" + soundname;
src/Loader.cpp: string filename = string(Config::getInstance()->getDataSubDir()) + "/" + soundname;
src/Loader.cpp: string filename = string(Config::getInstance()->getDataSubDir()) + "/" + soundname;
src/Loader.cpp: string filename = string(Config::getInstance()->getDataSubDir()) + "/" + musicname;
src/Loader.cpp: //string filename = string(Config::getInstance()->getDataSubDir()) + "/" + str;
src/Loader.cpp: string filename = string(EM_LIBDIR) + "/" + str;
src/Loader.cpp: string filename = string(Config::getInstance()->getDataSubDir()) + "/" + str;
# 2003-03-10
TODO:
new: sounds on evt
###############################################################################
#20030303
TODO:
2D Intro and FX
Le tremplin luncher
2D anims
Zlib
fonts
cam fx
###############################################################################
#20030302
Some Suggestions:
What are the reason to reinventing the weel in building a 3d editor ?
can't it be a plugin to another one ?
It seems that the GPL'ed http://www.blender3d.org
Supports VRML1 & DXF Export etc
What do you think about using vrml syntax
augmented with the pinball's special notes ?
Actually my favorite format woud be xml, like the X3D project
Or at least some converters beetween pbl to xml to vrml1 to vrml2 etc
If you made some tools (scripts) to convert objects
this would be nice to have in the distribution.
I will tell you more on the vrml stuff soon
### ps: game-testers needed for http://rzr.online.fr/game ###
###############################################################################
# PINEDIT compiled on Linux Debian Woody
# This can save some time
# 1) *** add your woody source list @ http://www.apt-get.org
./configure --disable-sdltest --prefix=$HOME/usr/local/local/pinedit
apt-get remove libqt3-dev qt3-dev-tools
apt-get install libqt3-headers libqt3-compat-headers libqt3-mt-dev qt3-tools
# - How to fix the libpng conflict ?
# I think libsdl_image w/ libpng3 should be backported to woody
# reinstall
apt-get install libsdl-image-1.2-dev libsdl-image1.2
libsdl-image1.2-dev
$EDITOR pinedit/Makefile # moc = /usr/bin/moc
rm pinedit/moc*.cpp
# I can make a .deb if needed
# Testers needed at http://RzR.online.FR/game
# Thanks again henrik your job is impressive
./configure --prefix=$HOME/usr/local/local/pinedit --includedir=/usr/include/qt
ln -fs /usr/include/qt3 /usr/lib/qt3/include
New QT 3 includes shall use QT conventions or not ?
#include
/usr/i586-mingw32msvc/bin/strip /pinball/pinball.exe
upx /pinball/*.dll /pinball/*.exe
----------------------------------------------------------------------
Some Suggestions:
What are the reason to reinventing the weel in building a 3d editor ?
can't it be a plugin to another one ?
It seems that the GPL'ed http://www.blender3d.org
Supports VRML1 & DXF Export etc
What do you think about using vrml syntax
augmented with the pinball's special notes ?
Actually my favorite format woud be xml, like the X3D project
Or at least some converters beetween pbl to xml to vrml1 to vrml2 etc
If you made some tools (scripts) to convert objects
this would be nice to have in the distribution.
I will tell you more on the vrml stuff soon
### ps: game-testers needed for http://rzr.online.fr/game ###
### DEBIAN woody
### If you are on debian Install those packages
### [ to be compleated ]
~/usr/local/src/pinball-0.2.0-rzr/
# use
apt-get install libsdl-mixer1.2
apt-get install libsdl-image1.2
apt-get install
## compile
apt-get install libsdl-image1.2-dev
libsdl-dev
libsdl-image-dev
libsdl-mixer-dev
apt-get source libpng
### Cross compil W32@Linux ---------------------------------------------------
export PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cross-tools/i386-mingw32msvc/lib:$LD_LIBRARY_PATH
/usr/local/cross-tools/lib
/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.3-6/
/usr/local/cross-tools/cross-configure.sh --disable-sdltest
cd /
sh
/usr/local/cross-tools/cross-make.sh
export PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
HOST_CC=/usr/bin/gcc
export CC_FOR_BUILD=/usr/bin/gcc
./configure
--cache-file=config.cross.cache --host=i386-mingw32msvc
--target=i386-mingw32msvc --build=i386-linux
--program-suffix=.exe
--prefix=/usr/local/cross-tools/i386-mingw32msvc
Under Wine, What is the corresponding env var of Unix's $LD_LIBRARY_PATH
? if there is any ?
... I workaround with :
ln -fs /usr/local/cross-tools/lib/SDL.dll ./
cp -rf lib /usr/local/cross-tools/i386-mingw32msvc/lib
To create the dll and an executable that uses it, try the following:
/usr/local/cross-tools/
gcc -c hello.c
gcc -c -DBUILD_DLL dllfct.c
dllwrap --output-lib=libtstdll.a --dllname=tst.dll --driver-name=gcc dllfct.o
gcc -o hello.exe hello.o -L./ -ltstdll
/bin/sh ../../libtool --mode=link c++ -g -W -Wall -O2 -o libmodule_tux.la -rpath /usr/local/cross-tools/i386-mingw32msvc/share/pinball/tux -module ModuleTux.lo -lopengl32 -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lSDL_mixer
---
/usr/local/cross-tools/bin/i386-mingw32msvc-dllwrap --output-lib=libtstdll.a --dllname=tst.dll --driver-name=gcc --output-exp=tmp.def ModuleTux.o ../../libltdl/*.o ../../base/*.o ../../src/*.o ../../addon/*.o -lopengl32 -lstdc++ -lSDL -lSDL_mixer -lSDL_image -lSDLmain -lmingw32 -L/usr/local/cross-tools/i386-mingw32msvc/lib -mwindows : OK !!!
---
/usr/local/cross-tools/bin/i386-mingw32msvc-dllwrap --output-lib=libtstdll.a --dllname=tst.dll --driver-name=gcc --output-exp=tmp.def ModuleTux.o \
../../libltdl/*.o ../../base/*.o ../../src/*.o ../../addon/*.o \
-lopengl32 -lstdc++ -lSDL -lSDL_mixer -lSDL_image -lSDLmain -lmingw32 -L/usr/local/cross-tools/i386-mingw32msvc/lib -mwindows
---
/usr/local/cross-tools/i386-mingw32msvc/bin/dlltool \
--output-lib=libtstdll.a --dllname=tst.dll --driver-name=gcc \
*.o
i386-mingw32msvc-objdump -t --demangle ModuleTux.o
/usr/local/cross-tools/i386-mingw32msvc/bin/g++ -o t.dll *.o \
-lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL
gcc -Wl,--base-file,.libs/SDL_mixer.dll-base -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o .libs/SDL_mixer.dll .libs/SDL_mixer.dll-ltdll.o load_aiff.o load_voc.o mixer.o music.o music_cmd.o music_ogg.o wavestream.o effect_position.o effect_stereoreverse.o effects_internal.o .libs/libSDL_mixer.lax/libmikmod.al/drv_nos.lo .libs/libSDL_mixer.lax/libmikmod.al/drv_sdl.lo .libs/libSDL_mixer.lax/libmikmod.al/load_it.lo .libs/libSDL_mixer.lax/libmikmod.al/load_mod.lo .libs/libSDL_mixer.lax/libmikmod.al/load_s3m.lo .libs/libSDL_mixer.lax/libmikmod.al/load_xm.lo .libs/libSDL_mixer.lax/libmikmod.al/mdreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mdriver.lo .libs/libSDL_mixer.lax/libmikmod.al/mloader.lo .libs/libSDL_mixer.lax/libmikmod.al/mlreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mlutil.lo .libs/libSDL_mixer.lax/libmikmod.al/mmalloc.lo .libs/libSDL_mixer.lax/libmikmod.al/mmerror.lo .libs/libSDL_mixer.lax/libmikmod.al/mmio.lo .libs/libSDL_mixer.lax/libmikmod.al/mplayer.lo .libs/libSDL_mixer.lax/libmikmod.al/munitrk.lo .libs/libSDL_mixer.lax/libmikmod.al/mwav.lo .libs/libSDL_mixer.lax/libmikmod.al/npertab.lo .libs/libSDL_mixer.lax/libmikmod.al/sloader.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch2.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch_common.lo .libs/libSDL_mixer.lax/libtimidity.al/common.lo .libs/libSDL_mixer.lax/libtimidity.al/controls.lo .libs/libSDL_mixer.lax/libtimidity.al/filter.lo .libs/libSDL_mixer.lax/libtimidity.al/instrum.lo .libs/libSDL_mixer.lax/libtimidity.al/mix.lo .libs/libSDL_mixer.lax/libtimidity.al/output.lo .libs/libSDL_mixer.lax/libtimidity.al/playmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/readmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/resample.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_a.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_c.lo .libs/libSDL_mixer.lax/libtimidity.al/tables.lo .libs/libSDL_mixer.lax/libtimidity.al/timidity.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_common.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_mac.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_win32.lo -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL
-lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL
i386-mingw32msvc-dlltool --as=i386-mingw32msvc-as --dllname SDL_mixer.dll --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def .libs/SDL_mixer.dll-def --base-file .libs/SDL_mixer.dll-base --output-exp .libs/SDL_mixer.dll-exp
gcc -Wl,--base-file,.libs/SDL_mixer.dll-base .libs/SDL_mixer.dll-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o .libs/SDL_mixer.dll .libs/SDL_mixer.dll-ltdll.o load_aiff.o load_voc.o mixer.o music.o music_cmd.o music_ogg.o wavestream.o effect_position.o effect_stereoreverse.o effects_internal.o .libs/libSDL_mixer.lax/libmikmod.al/drv_nos.lo .libs/libSDL_mixer.lax/libmikmod.al/drv_sdl.lo .libs/libSDL_mixer.lax/libmikmod.al/load_it.lo .libs/libSDL_mixer.lax/libmikmod.al/load_mod.lo .libs/libSDL_mixer.lax/libmikmod.al/load_s3m.lo .libs/libSDL_mixer.lax/libmikmod.al/load_xm.lo .libs/libSDL_mixer.lax/libmikmod.al/mdreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mdriver.lo .libs/libSDL_mixer.lax/libmikmod.al/mloader.lo .libs/libSDL_mixer.lax/libmikmod.al/mlreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mlutil.lo .libs/libSDL_mixer.lax/libmikmod.al/mmalloc.lo .libs/libSDL_mixer.lax/libmikmod.al/mmerror.lo .libs/libSDL_mixer.lax/libmikmod.al/mmio.lo .libs/libSDL_mixer.lax/libmikmod.al/mplayer.lo .libs/libSDL_mixer.lax/libmikmod.al/munitrk.lo .libs/libSDL_mixer.lax/libmikmod.al/mwav.lo .libs/libSDL_mixer.lax/libmikmod.al/npertab.lo .libs/libSDL_mixer.lax/libmikmod.al/sloader.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch2.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch_common.lo .libs/libSDL_mixer.lax/libtimidity.al/common.lo .libs/libSDL_mixer.lax/libtimidity.al/controls.lo .libs/libSDL_mixer.lax/libtimidity.al/filter.lo .libs/libSDL_mixer.lax/libtimidity.al/instrum.lo .libs/libSDL_mixer.lax/libtimidity.al/mix.lo .libs/libSDL_mixer.lax/libtimidity.al/output.lo .libs/libSDL_mixer.lax/libtimidity.al/playmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/readmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/resample.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_a.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_c.lo .libs/libSDL_mixer.lax/libtimidity.al/tables.lo .libs/libSDL_mixer.lax/libtimidity.al/timidity.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_common.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_mac.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_win32.lo -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL
i386-mingw32msvc-dlltool --as=i386-mingw32msvc-as --dllname SDL_mixer.dll --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def .libs/SDL_mixer.dll-def --base-file .libs/SDL_mixer.dll-base --output-exp .libs/SDL_mixer.dll-exp
gcc .libs/SDL_mixer.dll-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o .libs/SDL_mixer.dll .libs/SDL_mixer.dll-ltdll.o load_aiff.o load_voc.o mixer.o music.o music_cmd.o music_ogg.o wavestream.o effect_position.o effect_stereoreverse.o effects_internal.o .libs/libSDL_mixer.lax/libmikmod.al/drv_nos.lo .libs/libSDL_mixer.lax/libmikmod.al/drv_sdl.lo .libs/libSDL_mixer.lax/libmikmod.al/load_it.lo .libs/libSDL_mixer.lax/libmikmod.al/load_mod.lo .libs/libSDL_mixer.lax/libmikmod.al/load_s3m.lo .libs/libSDL_mixer.lax/libmikmod.al/load_xm.lo .libs/libSDL_mixer.lax/libmikmod.al/mdreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mdriver.lo .libs/libSDL_mixer.lax/libmikmod.al/mloader.lo .libs/libSDL_mixer.lax/libmikmod.al/mlreg.lo .libs/libSDL_mixer.lax/libmikmod.al/mlutil.lo .libs/libSDL_mixer.lax/libmikmod.al/mmalloc.lo .libs/libSDL_mixer.lax/libmikmod.al/mmerror.lo .libs/libSDL_mixer.lax/libmikmod.al/mmio.lo .libs/libSDL_mixer.lax/libmikmod.al/mplayer.lo .libs/libSDL_mixer.lax/libmikmod.al/munitrk.lo .libs/libSDL_mixer.lax/libmikmod.al/mwav.lo .libs/libSDL_mixer.lax/libmikmod.al/npertab.lo .libs/libSDL_mixer.lax/libmikmod.al/sloader.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch2.lo .libs/libSDL_mixer.lax/libmikmod.al/virtch_common.lo .libs/libSDL_mixer.lax/libtimidity.al/common.lo .libs/libSDL_mixer.lax/libtimidity.al/controls.lo .libs/libSDL_mixer.lax/libtimidity.al/filter.lo .libs/libSDL_mixer.lax/libtimidity.al/instrum.lo .libs/libSDL_mixer.lax/libtimidity.al/mix.lo .libs/libSDL_mixer.lax/libtimidity.al/output.lo .libs/libSDL_mixer.lax/libtimidity.al/playmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/readmidi.lo .libs/libSDL_mixer.lax/libtimidity.al/resample.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_a.lo .libs/libSDL_mixer.lax/libtimidity.al/sdl_c.lo .libs/libSDL_mixer.lax/libtimidity.al/tables.lo .libs/libSDL_mixer.lax/libtimidity.al/timidity.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_common.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_mac.lo .libs/libSDL_mixer.lax/libnativemidi.al/native_midi_win32.lo -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lsmpeg -lmingw32 -lSDLmain -lSDL
: strip_is_broken_with_dlls_on_win95B - strip .libs/SDL_mixer.dll
(cd .libs && rm -f libSDL_mixer.a && ln -s SDL_mixer.dll libSDL_mixer.a)
# libSDL_image ---------------------------------------------------------------
wget -c http://www.slothmud.org/~hayward/Xmingw32/SDL_image-1.0.4-i386-mingw32.tar.gz
http://www.slothmud.org/~hayward/Xmingw32/zlib-1.1.3-i386-mingw32.tar.gz
http://www.slothmud.org/~hayward/Xmingw32/libpng-1.0.3-i386-mingw32.tar.gz
http://www.slothmud.org/~hayward/Xmingw32/libjpeg-i386-mingw32.tar.gz
sh /usr/local/cross-tools/cross-configure.sh --disable-sdltest || less config.log
/usr/bin/sdlconfig
/bin/sh ./libtool --mode=link /usr/local/cross-tools/i386-mingw32msvc/bin/gcc -g -O2 \
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL \
-Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM \
-o libSDL_image.la \
-rpath /usr/local/cross-tools/i386-mingw32msvc/lib \
-release 1.2 -version-info 1:1:1 \
IMG.lo IMG_bmp.lo IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo \
-lmingw32 -lSDLmain -lSDL -mwindows \
-L/usr/local/cross-tools/i386-mingw32msvc/lib
---
/bin/sh ./libtool --mode=link /usr/local/cross-tools/i386-mingw32msvc/bin/gcc -g -O2 \
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL \
-Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM \
-o libSDL_image.la \
-rpath /usr/local/cross-tools/i386-mingw32msvc/lib \
-release 1.2 -version-info 1:1:1 \
IMG.lo IMG_bmp.lo IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo \
-lmingw32 -lSDLmain -lSDL -mwindows \
-L/usr/local/cross-tools/i386-mingw32msvc/lib
vs :
/usr/local/cross-tools/i386-mingw32msvc/bin/gcc \
-Dmain=SDL_main \
IMG.lo IMG_bmp.lo IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo \
-o libSDL_image.a \
-lmingw32 -lSDLmain -lSDL -mwindows \
-L/usr/local/cross-tools/i386-mingw32msvc/lib
/usr/local/cross-tools/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b): In function
`console_main':
/home/hercules/release/SDL-1.2.5/src/main/SDL_main.c:227: undefined reference to `SDL_main'
wget --no-parent -r -l2 -p http://cefiro.homelinux.org/SDL/sdl-devel-files/binary/
nm /usr/local/cross-tools/i386-mingw32msvc/lib/libSDL_image.a | grep Load
### GAMES --------------------------------------------------------------------
http://pinball.sourceforge.net/
http://prdownloads.sourceforge.net/pinball
- Cross compilation WIN32 / mingw32 :
http://www.libsdl.org/faq.php?action=listentries&category=4#42
Lib SDL_lmage + SDL_mixer etc
http://cefiro.homelinux.org/SDL/sdl-devel-files/binary/
#---
cd /usr/local/src/pinball-0.1.2/
/usr/local/cross-tools/cross-configure.sh --disable-sdltest
#
openGL hack #include
#line 6479 "configure" @ L104
#include "confdefs.h"
#define WINAPI std_c//rzr
#---
# config.h / pinconfig.h.in
#ifdef WIN32 // !rzr+ w32 DLL calls
#ifndef WINAPI
#define WINAPI __stdcall
#endif
#endif // !rzr-
# config.cpp
##
bootstrap
cross-configure.sh --prefix=/mnt/C/pinball --disable-sdltest
[ -f config.h] && cp config.h.in config.h
cross-make.sh
# unmake test
c++ -g -W -Wall -O2 -o math.exe
/home/hercules/release/SDL-1.2.5/src/main/SDL_main.c:227: undefined reference to `SDL_main'
### dll data
cd /usr/local/src/pinball-0.1.2/data/tux/
export PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin/:$PATH
/usr/local/cross-tools/cross-make.sh clean
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../base -I.../../addon -I../../visitor -I../../src -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main -g -W -Wall -O2 -c ModuleTux.cpp
/bin/sh ../../libtool --mode=link c++ -g -W -Wall -O2 -o libmodule_tux.la -rpath /usr/local/cross-tools/i386-mingw32msvc/share/pinball/tux -module ModuleTux.lo -lopengl32 -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lSDL_mixer
/usr/local/cross-tools/bin/i386-mingw32msvc-dlltool -A -z moduletux.def ModuleTux.o
/usr/local/cross-tools/bin/i386-mingw32msvc-dllwrap \
--target i386-mingw32 -mno-cygwin --driver-name=gcc\
--def=moduletux.def --output-lib=libmodule_tux.a --dllname=moduletux.dll \
ModuleTux.o \
-lemilia_pin -L../../src \
-lemilia_addon -L../../addon \
-lemilia_base -L../../base \
-lltdlc -L../../libltdl -L../../libltdl/.libs \
-lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lmingw32 -mwindows\
-lstdc++ \
-L/usr/local/cross-tools/i386-mingw32msvc/lib -L.
#----
mkdir -p /mnt/C/usr/local/src/
cp -rf /usr/local/src/pinball-0.1.2 /mnt/C/usr/local/src/
###--------------------------------------------------------------------
ok I have a pb under gcc2.95.3 :
i cant compile a code that use pointers when class are just declared
(not definined)
ie : class Polygon;
class Shape { void add(Polygon*); };
How to workaround this ? while on 2.95.4 it is ok
---
# -ljpeg -logg -lpng -lz -lvorbisfile -lvorbis -logg -lsmpeg
/usr/local/cross-tools/i386-mingw32msvc/bin/c++ -g -W -Wall -O2
-o pinball.exe Pinball.o -mwindows -Wl,--export-dynamic ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a ../libltdl/.libs/libltdlc.al -lopengl32 -L/usr/local/cross-tools/i386-mingw32msvc/lib
-lmingw32 -lSDLmain .libs/libimp-SDL.a -luser32 -lgdi32 -lwinmm -ldxguid
.libs/libimp-SDL_image.a -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL .libs/libimp-SDL_mixer.a -lmingw32 -lSDLmain -lSDL -lwinmm -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL -lwinmm -lSDLmain -lSDL -Wl,--rpath -Wl,/usr/local/cross-tools/i386-mingw32msvc/lib -Wl,--rpath -Wl,/usr/local/cross-tools/i386-mingw32msvc/lib
findln.sh /usr/local/cross-tools/i386-mingw32msvc/lib `pwd` -name "*.dll"
mkdir ../bin-WIN32
cp -L *.exe ../bin-WIN32/
cp -L *.dll ../bin-WIN32/
### MISC
http://switch.dl.sourceforge.net/sourceforge/pinball/pinball-0.1.2-1.rh73.i386.rpm
You can get precompiled binaries for x86 Linux from:
wget -c http://www.libsdl.org/extras/win32/cross/mingw32-linux-x86-glibc-2.2.tar.gz
wget -c http://www.libsdl.org/extras/win32/common/opengl-devel.tar.gz
wget -c -l1 http://www.libsdl.org/extras/win32/common/
wget http://www.libsdl.org/release/SDL-devel-1.2.5a-mingw32.tar.gz
This seems to be incompatible with debian packages
http://pinball.sourceforge.net/
http://switch.dl.sourceforge.net/sourceforge/pinball/pinsuite-0.0.2.tar.gz
dpkg -L mingw32
/usr/bin/i586-mingw32msvc-gcc
/usr/i586-mingw32msvc
/usr/i586-mingw32msvc/lib/libglut32.a
export PATH=/usr/i586-mingw32msvc/bin/:$PATH
./configure --target=i586-mingw32msvc
i386-mingw32msvc
cd /usr/local/src/pinball-0.1.2
--------
# http://www.talula.demon.co.uk/allegro/
# http://www.ijg.org/
apt-get source libjpeg62
# wget -c http://www.libpng.org/pub/png/src/libpng-1.2.5.tar.bz2
apt-get source libpng
# http://www.gzip.org/zlib/
apt-get source zlib
---
SDL / sound
http://www.lokigames.com/development/smpeg.php3
ftp://sunsite.dk/pub/os/linux/loki/open-source/smpeg/
wget -c ftp://sunsite.dk/pub/os/linux/loki/open-source/smpeg/smpeg-0.4.4.tar.gz
wget -c http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.2.tar.gz
http://www.Philippe.COVAL.online.FR
Last modified: Tue Apr 6 02:31:53 CEST 2004