a guide to compiling PearPC yourselves
Moderators: Cat_7, Ronald P. Regensburg
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
a guide to compiling PearPC yourselves
Welcome to the PearPC compilation guide!
i hope this guide will help you compile PearPC yourselves using the latest CVS sources.
* UNIX/Linux users, and Windows users who already have Cygwin with the development packages: please skip section #1
Section #1: Downloading & Installing Cygwin:
1) Go to www.cygwin.com
2) On the right upper corner of the screen there is a link "Install Cygwin now", right-click it and select "Save Target As", and save it somewhere in your hard disk.
3) Run the saved file (setup.exe), click "Next", make sure "Install from Internet" is selected and click "Next" again, leave the default values intact and click "Next" and "Next".
4) If you use a proxy server, enter its address and port in the required field. if you do not use a proxy server, select "Direct Connection" and click "Next". if you are not sure, ask your system administrator.
5) Select a download site from the list (it doesn't matter which site you select) and click "Next", Select to install all the "Base" packages by clicking on the "Default" text next to them. Also select all the "Devel" packages using the same method.
6) Click "Next" and let it download and install all the packages. Once it is complete, it will display a message box informing you of a successful installation, close it by clicking "OK".
Section #2: Downloading the PearPC sources from CVS:
1) UNIX/Linux users: Open a shell window, or switch to a shell.
Windows users: Open Cygwin.
2) Login to the PearPC CVS server by typing:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc login
Press enter when it will ask for the CVS password.
3) Go to the directory you wish to put the sources in using the "cd" command.
4) Check out (download) the sources by typing:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc co pearpc
Please note that if you already have the sources and you want to update them type instead:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc update pearpc
Also, if you want to download the altivec (G4) sources, type:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc co -r altivec pearpc
5) Log out from the CVS server by typing:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc logout
Section #3: Compiling the PearPC sources:
1) Go to the "pearpc" directory (without quotes) in the directory you put the sources in section #2.
2) Type:
./autogen.sh
3) Make sure everything is ok, and then type:
./configure
and see that it says ok about "Yes" or "Non Needed" about all the packages. if it says it's missing something, you should get it.
4) To finally compile PearPC, type:
make
5) Go to the 'src' directory and type:
strip ppc.exe (or 'ppc' if you use linux)
to strip the executable from the debugging code.
Enjoy your shiny new, compiled-by-you PearPC!
Good Luck,
PPC_Digger.
i hope this guide will help you compile PearPC yourselves using the latest CVS sources.
* UNIX/Linux users, and Windows users who already have Cygwin with the development packages: please skip section #1
Section #1: Downloading & Installing Cygwin:
1) Go to www.cygwin.com
2) On the right upper corner of the screen there is a link "Install Cygwin now", right-click it and select "Save Target As", and save it somewhere in your hard disk.
3) Run the saved file (setup.exe), click "Next", make sure "Install from Internet" is selected and click "Next" again, leave the default values intact and click "Next" and "Next".
4) If you use a proxy server, enter its address and port in the required field. if you do not use a proxy server, select "Direct Connection" and click "Next". if you are not sure, ask your system administrator.
5) Select a download site from the list (it doesn't matter which site you select) and click "Next", Select to install all the "Base" packages by clicking on the "Default" text next to them. Also select all the "Devel" packages using the same method.
6) Click "Next" and let it download and install all the packages. Once it is complete, it will display a message box informing you of a successful installation, close it by clicking "OK".
Section #2: Downloading the PearPC sources from CVS:
1) UNIX/Linux users: Open a shell window, or switch to a shell.
Windows users: Open Cygwin.
2) Login to the PearPC CVS server by typing:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc login
Press enter when it will ask for the CVS password.
3) Go to the directory you wish to put the sources in using the "cd" command.
4) Check out (download) the sources by typing:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc co pearpc
Please note that if you already have the sources and you want to update them type instead:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc update pearpc
Also, if you want to download the altivec (G4) sources, type:
cvs -z 4 -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc co -r altivec pearpc
5) Log out from the CVS server by typing:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/pearpc logout
Section #3: Compiling the PearPC sources:
1) Go to the "pearpc" directory (without quotes) in the directory you put the sources in section #2.
2) Type:
./autogen.sh
3) Make sure everything is ok, and then type:
./configure
and see that it says ok about "Yes" or "Non Needed" about all the packages. if it says it's missing something, you should get it.
4) To finally compile PearPC, type:
make
5) Go to the 'src' directory and type:
strip ppc.exe (or 'ppc' if you use linux)
to strip the executable from the debugging code.
Enjoy your shiny new, compiled-by-you PearPC!
Good Luck,
PPC_Digger.
Last edited by PPC_Digger on Tue Nov 09, 2004 1:09 pm, edited 1 time in total.
how bout
whattabout for processor specifics such as P4 optimized or P3 optimized?
Instead of just installing all of the development packages, install these along with the default selection. Info comes from:
http://www.kelley.ca/pearpc/wiki/index. ... nvironment
cvs
bison
byacc
autoconf
automake
gcc-c++
make
nasm
flex
w32api
Cat_7
http://www.kelley.ca/pearpc/wiki/index. ... nvironment
cvs
bison
byacc
autoconf
automake
gcc-c++
make
nasm
flex
w32api
Cat_7
Last edited by Cat_7 on Mon Aug 02, 2004 9:14 am, edited 1 time in total.
Re: how bout
You just need to use the correct compile switches (don't remember any of them offhand).rccola70 wrote:whattabout for processor specifics such as P4 optimized or P3 optimized?
Once you've made something idiot proof, they go and invent a better idiot!
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
Re: how bout
here it is:robojam wrote:You just need to use the correct compile switches (don't remember any of them offhand).rccola70 wrote:whattabout for processor specifics such as P4 optimized or P3 optimized?
you should use ./configure CFLAGS="the flags you wish to use"
i recommend using -pipe and -O3
as for the processor optimizations:
-march=pentium3
-march=pentium4
-march=athlon-xp
-march=athlon-4
enjoy!
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
meh...
help?
Code: Select all
strip ppc.exe
strip:'ppc.exe': No Such File.
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm
Well, now that RemoteCVS is up on www.pearpc.net , I imagine less people will be doing their compiling this way.
Yes, RemoteCVS looks like a very attractive alternative to downloading Cygwin, but the help file seems to be unavailable at present. Perhaps someone can explain:
1) What is meant by Win32 as an alternative to SDL? (I thought I had both already...)
2) In the processor type selector, does i686 equate to JITC - or something else? (Or is it 'Generic build' that means JITC?)
3) What does the -O2, -O3, -Os selector mean?
4) Do any other choices conflict with Altivec?
I'm still quite lost on terminology as you can see. Anyone?
1) What is meant by Win32 as an alternative to SDL? (I thought I had both already...)
2) In the processor type selector, does i686 equate to JITC - or something else? (Or is it 'Generic build' that means JITC?)
3) What does the -O2, -O3, -Os selector mean?
4) Do any other choices conflict with Altivec?
I'm still quite lost on terminology as you can see. Anyone?
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm
- PPC_Digger
- Forum All-Star
- Posts: 1050
- Joined: Thu Jul 22, 2004 9:02 am
- Location: Israel
1) Using Win32 window drawing as an alternative (just know that originally, sdl was the alternative), you should use sdl if your video card has more than 8 mb of memoryCaptainValor wrote:1) Don't know.
2) Don't know.
3) I imagine those refer to the version of PearPC you want to compile. As in 0.2, 0.3 etc.
4) Not that I know of. Just try different combinations and see if there's something that doesn't work.
2) i686 means the standard jitc (e.g. no optimization)
3) -O3 takes more time to compile but works faster due to extra optimization - O2 takes less time to compile but works faster. It DOESN'T choose the version.
-
- Forum All-Star
- Posts: 587
- Joined: Mon May 17, 2004 11:57 pm