Compiling on Windows.
Moderators: Cat_7, Ronald P. Regensburg
Compiling on Windows.
Could someone please help me with compiling the source under windows. I have already downloaded the source to my computer and installed cygwin. But how what. I am in the #Pearpc-help room on the IRC.
1. Start Cygwin using cygwin.bat (usually in C:\cygwin directory) and navigate to the pearpc source code directory.
2. If you got your code from CVS, run "cvs update" to make sure you have the latest version.
3. run: "aclocal && autoheader && automake -a && autoconf"
4. run "./configure" with the correct options if the previous commands completed successfully. My configure options look as follows (they might be slightly different on your system - depending on what hardware you're using):
5. Run "make"
6. Run "make install" if make completed succesfully. If it didn't, go see what the errors were and try to debug the problem.
7. Look for ppc.exe (usually c:\cygwin\usr\local\bin)
2. If you got your code from CVS, run "cvs update" to make sure you have the latest version.
3. run: "aclocal && autoheader && automake -a && autoconf"
4. run "./configure" with the correct options if the previous commands completed successfully. My configure options look as follows (they might be slightly different on your system - depending on what hardware you're using):
Code: Select all
./configure --prefix=/usr/local --enable-fpo --enable-gui=qt --enable-cpu=jitc_x86
6. Run "make install" if make completed succesfully. If it didn't, go see what the errors were and try to debug the problem.
7. Look for ppc.exe (usually c:\cygwin\usr\local\bin)
There is a windows version floating around. Found it here: http://www2.wonderwallfriends.de/ppc-sdl.exe dunno if it works yet though, downloading updates on the 0.2 branch.
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm
I think these two threads coul dform teh basis of a compilation guide
http://www.emaculation.com/phpBB/viewtopic.php?t=1526
http://www.emaculation.com/phpBB/viewtopic.php?t=1526
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm
-
- Space Cadet
- Posts: 5
- Joined: Mon May 31, 2004 10:21 pm
- Location: Victoria, Canada
Heres what i get when i follow the FAQ on PearPC.net ... did i miss something? it gives and error and stops doing whatever it was doing.
Code: Select all
$ make
cd . && /bin/bash /cygdrive/c/pearpc-sdl-0.3/missing --run autoheader
touch ./config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/usr/bin/make all-recursive
make[1]: Entering directory `/cygdrive/c/pearpc-sdl-0.3'
Making all in doc
make[2]: Entering directory `/cygdrive/c/pearpc-sdl-0.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/pearpc-sdl-0.3/doc'
Making all in src
make[2]: Entering directory `/cygdrive/c/pearpc-sdl-0.3/src'
Making all in cpu_jitc_x86
make[3]: Entering directory `/cygdrive/c/pearpc-sdl-0.3/src/cpu_jitc_x86'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I .. -Wundef -Wall -Woverloaded-virtu
al -fsigned-char -O2 -fomit-frame-pointer -g -mno-cygwin -D_FILE_OFFSET_BITS=64
-pipe -MT ppc_alu.o -MD -MP -MF ".deps/ppc_alu.Tpo" \
-c -o ppc_alu.o `test -f 'ppc_alu.cc' || echo './'`ppc_alu.cc; \
then mv -f ".deps/ppc_alu.Tpo" ".deps/ppc_alu.Po"; \
else rm -f ".deps/ppc_alu.Tpo"; exit 1; \
fi
ppc_alu.cc: In function `void ppc_opc_srawx()':
ppc_alu.cc:2068: error: `uint' undeclared (first use this function)
ppc_alu.cc:2068: error: (Each undeclared identifier is reported only once for
each function it appears in.)
ppc_alu.cc:2068: error: syntax error before `=' token
ppc_alu.cc:2068: error: `i' undeclared (first use this function)
ppc_alu.cc: In function `void ppc_opc_srawix()':
ppc_alu.cc:2104: error: syntax error before `=' token
make[3]: *** [ppc_alu.o] Error 1
make[3]: Leaving directory `/cygdrive/c/pearpc-sdl-0.3/src/cpu_jitc_x86'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/pearpc-sdl-0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/pearpc-sdl-0.3'
make: *** [all] Error 2
-
- Space Cadet
- Posts: 5
- Joined: Mon May 31, 2004 10:21 pm
- Location: Victoria, Canada
Code: Select all
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-
as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexe
cdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable-langua
ges=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=posix --with
-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enab
le-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --dis
able-win32-registry --enable-java-gc=boehm --disable-hash-synchronization --verb
ose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)