Compiling on Windows.

About PearPC, a PPC Mac emulator for Windows and Linux that can run MacOS X up to 10.4.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
okt
Student Driver
Posts: 10
Joined: Mon May 17, 2004 9:36 pm

Compiling on Windows.

Post by okt »

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.
Ph0eniX
Mac Mechanic
Posts: 154
Joined: Sun May 23, 2004 6:29 am

Post by Ph0eniX »

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):

Code: Select all

 ./configure --prefix=/usr/local --enable-fpo --enable-gui=qt --enable-cpu=jitc_x86 
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)
okt
Student Driver
Posts: 10
Joined: Mon May 17, 2004 9:36 pm

Post by okt »

Thanks, but it doean't look like the version will work on Win32 yet.
Ph0eniX
Mac Mechanic
Posts: 154
Joined: Sun May 23, 2004 6:29 am

Post by Ph0eniX »

okt wrote:Thanks, but it doean't look like the version will work on Win32 yet.
Which version are you trying to compile? ...it should work on Win32 unless I fell out of the loop over the last day or so.
okt
Student Driver
Posts: 10
Joined: Mon May 17, 2004 9:36 pm

Post by okt »

the SDL 0.3 pre version.
litghost
Tinkerer
Posts: 96
Joined: Thu May 27, 2004 12:05 am

Post by litghost »

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.
MDZ61384
Tinkerer
Posts: 93
Joined: Fri Nov 15, 2002 10:11 am

Post by MDZ61384 »

the version posted above isn't the 0.3 pre version...but it is the SDL beta 3 version
CaptainValor
Forum All-Star
Posts: 587
Joined: Mon May 17, 2004 11:57 pm

Post by CaptainValor »

Thanks, this explains how to compile the basic program. But how do you add stuff like networking support and fullscreen using the provided patches?
Marc
Master Emulator
Posts: 360
Joined: Wed Aug 20, 2003 2:14 pm

Post by Marc »

I think these two threads coul dform teh basis of a compilation guide

http://www.emaculation.com/phpBB/viewtopic.php?t=1526
litghost
Tinkerer
Posts: 96
Joined: Thu May 27, 2004 12:05 am

Post by litghost »

MDZ61384 wrote:the version posted above isn't the 0.3 pre version...but it is the SDL beta 3 version
What's the difference? I've seen it refered to as 0.3, so I'm confused.
CaptainValor
Forum All-Star
Posts: 587
Joined: Mon May 17, 2004 11:57 pm

Post by CaptainValor »

There is no official "0.3pre" version in development right now. The SDL version is a side development and this is the 3rd version of THAT.
litghost
Tinkerer
Posts: 96
Joined: Thu May 27, 2004 12:05 am

Post by litghost »

Ok that makes sense
rob2687
Space Cadet
Posts: 9
Joined: Tue Jun 01, 2004 12:41 am

Post by rob2687 »

is there an ultra noob guide that takes compiling step by step? cause im entering all this

$ aclocal && autoheader && automake -a && autoconf
./configure --enable-cpu=jitc_x86

stuff in and all i get is command not found or No such file or directory
Stagger Lee
Space Cadet
Posts: 5
Joined: Mon May 31, 2004 10:21 pm
Location: Victoria, Canada

Post by Stagger Lee »

Make sure you have installed automake, autoconf, and GCC from the Cygwin setup program (there may be others, I haven't used Cygwin for a while). Also, make sure you "cd" in to the pearpc directory before running those commands. You can check the directory you're currently in by running "cwd".
rob2687
Space Cadet
Posts: 9
Joined: Tue Jun 01, 2004 12:41 am

Post by rob2687 »

the setup cant find the files...they dont download through setup.exe.

edit: nvm, figured it out, thanks :)
rob2687
Space Cadet
Posts: 9
Joined: Tue Jun 01, 2004 12:41 am

Post by rob2687 »

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
Stagger Lee
Space Cadet
Posts: 5
Joined: Mon May 31, 2004 10:21 pm
Location: Victoria, Canada

Post by Stagger Lee »

Odd... which version of GCC are you using? You can find out by running "gcc -v"
rob2687
Space Cadet
Posts: 9
Joined: Tue Jun 01, 2004 12:41 am

Post by rob2687 »

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)
windowsxd
Space Cadet
Posts: 7
Joined: Mon May 31, 2004 8:48 pm

Post by windowsxd »

SDL ver.3 can't complie form cygwin.
(I don't know what the problem is)
It works well in Knoppix.

You can try ver.2.
If you know how to install SDL libs in cygwin.
All I can do is modify the #inculde "path" to find <SDL/SDL.h>
I have no idea about this.
Post Reply