Build update and gtk redistributable
October 20th, 2008
Ok, i tried creating a binary which would work on other macs
First, grab the gtk redistributable at http://pcsx2-mac.quant0r.com/files/gtk.tar.gz. When you unpack it you’ll get two files:
gtk_dist.tgz
install_gtk.sh
Open Terminal, cd to the directory where these 2 files are and type ./install-gtk.sh
This would ask you for your password(because it would copy the files to /usr/local/gtkx11) and will also check if /usr/local/gtkx11 exists. If it does then you’ll get a message
/usr/local/gtkx11 already exists, delete it if you are sure you want to replace it
and you would need to manually delete the directory if you want to replace it.
Second, you also need Nvidia CG framework for mac which you can get at NVidia
Then you just get latest http://pcsx2-mac.quant0r.com/files/pcsx2.tar.gz, unpack it wherever, copy bios and launch pcsx2.
Please test because it does work on my mac(but I only moved my /usr/local/gtkx11 to another place for testing) but this is only for gtk dependencies I see.
-update-
Seems like the above isn’t enough. You also need to copy to /usr/local/lib the .dylib files from the following archives
http://pcsx2-mac.quant0r.com/files/libs.tar.gz
http://pcsx2-mac.quant0r.com/files/sdl.tar.gz
and run ./install_glew.sh from
http://pcsx2-mac.quant0r.com/files/glew.tar.gz
Also check that you have latest xquartz installed




Hi,
First of all, great job! I’m very pleased to see someone porting this emulator on Mac.
I’ve followed these steps above and no problem with them. But when I try to run the pcsx2 binary, I got a dependency error from Cairo or at least libCairo. Here’s the error log:
dyld: Library not loaded: /usr/X11/lib/libcairo.2.dylib
Referenced from: /Users/username/Desktop/pcsx2/bin/./pcsx2
Reason: image not found
Trace/BPT trap
Of course, I didn’t install a fresh copy of X11 even though I read on another post in which you were saying that it was required since the one that come with Leopard is crap (or something like this).
I’ will try to install libCairo on my system and I’ll come back posting to let you know if it works.
Comment by Jean — October 20, 2008 @ 2:20 pm
better install xquartz, it will soon become necessary as I’m removing some of the hacks which were needed only because of leopard x11
Comment by zedr0n — October 20, 2008 @ 2:25 pm
alright, I installed xquartz but now it complains about libintl.3.dylib. I’m currently looking for it but if you know what is the next piece I need to install I’ll apreciate it
Comment by Jean — October 20, 2008 @ 2:53 pm
thanks for trying, can you please tell me the full path where it searches for it?
Comment by zedr0n — October 20, 2008 @ 2:55 pm
Oh yeah sorry, didn’t think about it: /usr/local/lib/libintl.3.dylib
If I can help you in testing other things when everything will work, it’ll be my pleasure.
Comment by Jean — October 20, 2008 @ 3:00 pm
ok, uploaded it it to http://pcsx2-mac.quant0r.com/files/libs.tar.gz
Can you please try putting it into /usr/local/lib?
p.s. if you are on icq or msn can you please drop me your contact over e-mail. Through comments it’s kinda slow
Comment by zedr0n — October 20, 2008 @ 3:04 pm
ok I’ve copied them to the right directory and I got another one now: /usr/local/lib/libfontconfig.1.dylib.
I can’t find your email (msn) on your site to add you on my list… any ideas?
Comment by Jean — October 20, 2008 @ 3:10 pm
my msn email is the same gmail one i use everywhere(zedr0nre _at_ gmail.com).
updated the file with libfontconfig
Comment by zedr0n — October 20, 2008 @ 3:13 pm
look for Fix_x_xer in your list, I added you on msn & gtalk.
Comment by Jean — October 20, 2008 @ 3:17 pm
Hi,
I had exactly the same problem than Jean:
$ ./pcsx2
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/./pcsx2
Reason: image not found
Trace/BPT trap
I have looked for this libintl on my Mac and found it installed, I have simply tried to copy it in the place it was looking for it and it did not complain anymore about that (but I suppose it would be better to make some link or change the path it is looking in?):
$ sudo cp /sw/lib/libintl.3.dylib /usr/local/lib/.
Password:
Then I had another error with a new missing lib:
$ ./pcsx2
dyld: Library not loaded: /usr/local/lib/libfontconfig.1.dylib
Referenced from: /usr/local/gtkx11/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
Trace/BPT trap
I just repeated the same dirty hack:
$ sudo cp /opt/local/lib/libfontconfig.1.dylib /usr/local/lib/.
Now I can execute pcsx2 but I get a pop-up window in X11 telling me something like:
Could Not Load GS Plugin ‘plugins/libZeroGSoglr.so.0.96.2′: dlopen(plugins/libZeroGSoglr.0.96.2,2): Library not loaded: /usr/local/glew/lib/libGLEW.1.5.0.dylib
Referenced from: [...]/pcsx2/bin/plugins/libZeroGSoglr.so.0.96.2
Reason: image not found
Then I press OK and I get the Configuration window with the Graphics section empty and the two Controller section empty too. Back in my terminal I have plenty of cool messages:
dlopen(plugins/libGSsoft.so, 2): Library not loaded: /usr/local/sdlx11/lib/libSDL-1.2.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libGSsoft.so
Reason: image not found
dlopen(plugins/libZeroGSoglr.so.0.96.2, 2): Library not loaded: /usr/local/glew/lib/libGLEW.1.5.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libZeroGSoglr.so.0.96.2
Reason: image not found
dlopen(plugins/libZeroPAD.so.0.2.0, 2): Library not loaded: /usr/local/lib/libSDL-1.2.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libZeroPAD.so.0.2.0
Reason: image not found
dlopen(plugins/libGSsoft.so, 2): Library not loaded: /usr/local/sdlx11/lib/libSDL-1.2.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libGSsoft.so
Reason: image not found
dlopen(plugins/libZeroGSoglr.so.0.96.2, 2): Library not loaded: /usr/local/glew/lib/libGLEW.1.5.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libZeroGSoglr.so.0.96.2
Reason: image not found
dlopen(plugins/libZeroPAD.so.0.2.0, 2): Library not loaded: /usr/local/lib/libSDL-1.2.0.dylib
Referenced from: /Users/pouit/Documents/bordel/pcsx2mac/pcsx2/bin/plugins/libZeroPAD.so.0.2.0
Reason: image not found
I tried to play with the “Select Plugins Dir” and the “Select Bios Dir” and I am not sure I had all these messages before, anyway it does not work (maybe I would have done better not touchign it and hit OK). So now it gives me an error similar to the previous “Could not open” but with GS Plugin, and giving the plugins path. It adds then:
Did find: [...]/pcsx2/plugins/: not a file
/usr/local/lib: not a file
/usr/lin: not a file
I’m there. I hope this huge amount of errors helps you, I really would like to try your port of pcsx2!
Anyway, good luck and thank you for your work! If you need some more giant reports, just ask…
Comment by teupoui — October 20, 2008 @ 8:20 pm
ok, i’ve chatted with jean today and he managed to run it fine. First off, overwrite the pcsx2.cfg in the inis directory from the archive. There seems to be some problem with changing the plugin directory from gtk.
You’re almost there actually, you are only missing Glew and SDL. You can grab them here
http://pcsx2-mac.quant0r.com/files/glew.tar.gz
http://pcsx2-mac.quant0r.com/files/sdl.tar.gz
Then move the libs from sdl.tar.gz to /usr/local/lib and run the ./install_glew.sh from the first archive as for gtk before, should be fine then.
Comment by zedr0n — October 20, 2008 @ 8:30 pm
Hi,
Thanks for all the great job and the recent updates about the libraries,
I’ve installed libs, sdl, glew, and I’ve the latest x11
Here is the bug :
$ /Users/adrien/Desktop/pcsx2/bin/pcsx2 ; exit;
Segmentation fault
logout
I hope it could help …
Comment by Adrien0203 — October 21, 2008 @ 1:53 pm
Tha’s strange, are you sure you removed the gtk+ you’ve installed before - i remember seeing that error when using the aqua port of gtk
Comment by zedr0n — October 21, 2008 @ 8:31 pm
here is my error any help is good
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
Referenced from: /Users/amyaltemeyer/Desktop/pcsx2/bin/pcsx2
Reason: no suitable image found. Did find:
/usr/local/lib/libintl.3.dylib: file too short
/usr/local/lib/libintl.3.dylib: unknown file type, first eight bytes: 0×8B 0×4D 0×0C 0×8B 0×45 0×10 0×85 0xD2
Trace/BPT trap
logout
Comment by NO$GBA Fan — October 21, 2008 @ 8:51 pm
Hi zedr0n, thank you for your help, I did all you said and got the initial window in X11 running! (PCSX2 0.9.4 Watermoose)
I still had a few trouble with the libjpeg but I managed to fix this the same way I did with the other libraries:
$ sudo cp /opt/local/lib/libjpeg.62.dylib /usr/local/lib/.
anyway, now when I go into “File” and try “Run CD” I get a small pop-up window that tells me “Error Opening CDVD Plugin” and brings me back to he main window… Back in the terminal, I get the following error:
sh: ./cfgCDVDiso: Permission denied
And I get this error too when I try Configure “Linuzappz Iso CDVD 0.7.0″ in the Configuration window (which now seems correct btw). Oh I get these errors too when trying to configure the corresponding plugins:
sh: ./cfgUSBlinuz: Permission denied
sh: ./cfgFWnull: Permission denied
I suppose this is linked… Here is my pcsx2.cfg file (I tried to change the lang but it does not seem to be implemented yet ;], btw if you need help for french menus for exemple…):
ios = SCPH30004R.bin
Lang = fr_FR
PluginsDir = /[...]/pcsx2/bin/plugins/
BiosDir = /[...]/pcsx2/bin/bios/
Ps2Out = 0
ThPriority = 0
Mcd1 = memcards/Mcd001.ps2
Mcd2 = memcards/Mcd002.ps2
GS = libGSsoft.so
SPU2 = libSPU2null.so
CDVD = libCDVDiso.so
PAD1 = libZeroPAD.so.0.2.0
PAD2 = libZeroPAD.so.0.2.0
DEV9 = libDEV9null.so
USB = libUSBlinuz.so
FW = libFWnull.so
Options = f3
Patch = 1
varLog = 0
Comment by teupoui — October 21, 2008 @ 11:37 pm
hi teupoui,
I had the same errors and all you have to do is to change permissions on every plugins in the bin/plugins.
cd /path/to/pcsx2/bin/plugins;
chmod 777 *;
It should work after that if I didn’t forget anything. Post back if you have any other troubles.
Comment by Jean — October 22, 2008 @ 1:32 am
I’m getting a segmentation fault as well but I don’t have any other GTK+ installed.
Comment by James Madley — October 23, 2008 @ 7:12 am
Hi all! i have do all, but teh terminal say this:
Fontconfig error: Cannot load default config file
(:41404): Pango-CRITICAL **: No fonts found:
This probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
(:41404): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type=’PangoRenderFc’, script=’latin’
im under leopard 10.5.5
Comment by stig — October 23, 2008 @ 8:37 am
For everyone having troubles running PCSX2, I wrote a small guide that combines all the steps in this posts and the ones I’ve done to be able to run it. I’ve put it in the Wiki so everyone can contribute. You can access it here: http://quant0r.com/trac/trac.cgi/wiki/runningPcsx2
Comment by Jean — October 23, 2008 @ 4:22 pm
Gambate
Comment by Godjir — October 23, 2008 @ 9:18 pm
Firstly, thanks for your job !
I have do all, but when I try to run CD, the terminal say :
pcsx2[13878:10b] *** _NSAutoreleaseNoPool(): Object 0×1b5f1c0 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0×9539fadf 0×952ac1f2 0×9512331e 0×92bb8c3e 0×92bb8a35 0×92bb43ca 0×92aa2d25 0×92a972b2 0xb3612a6 0xb35724b 0xb32b270 0xb32b2a7 0xb270bb5 0×19f1a 0×149fa68 0×14b4961 0×14b6671 0×14b69c9 0×1130a83 0×1018333 0×1019ebd 0×100b1ec 0×149fa68 0×14b4af2 0×14b6379 0×14b69c9 0×112bcd5 0×1004081 0×10052a0 0×542445 0×1517b95 0×151b2ea 0×151b6c7 0×10057a1 0×1b615 0×23e6)
Bus error
logout
[Opération terminée]
I’m under 10.5.5
Comment by Vamp — October 25, 2008 @ 9:57 am
So, are all of you people just experts with terminal or something. I ask this because I am not an expert. I followed the instructions but I am not sure I did it right. According to terminal the glew and gkt installed. I have also installed thelatest quark build and Nvidia package. But I’m not sure I undestand how or where the libraries are supposed to go. What do you all mean by /usr/local/lib ?
I’m not sure I understand. tring to run the ps2x I get what seems like the problem other people had before
———————————————————————
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
Referenced from: /Users/mosleyj/Desktop/pcsx2/bin/pcsx2
Reason: image not found
Trace/BPT trap
logout
[Process completed]
———————————————————————-
Is this because the libraries are in the wrong pace? What do I do?
Comment by Jas — October 26, 2008 @ 10:39 pm
Ya, so I figured out that the usr/local/lib was in teh gtk folder and fixed that but then ran into the font config problem mentioned above…
Downloaded the source files for the fontconfig, then I changed directories in terminal to get the source folder, and attempted to run the commands given in the wiki explanation. That’s when I came up with these errors.
———————–
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets $(MAKE)… no
checking whether to enable maintainer-specific portions of Makefiles… no
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
————————-
I ran the command ./configure , and the above is what resulted. Then I tried running all three lines together at once as, ./configure make sudo install and it gave me a whole nother mess of error problems. What am I doing wrong?
Comment by Jas — October 26, 2008 @ 11:08 pm
Hi Jas,
Great to see that you didn’t give up. To be able to compile fontconfig, you need a C compiler and it means that you need to install Xcode from the Tiger/Leopard installation disk. If you’ve been able so far to copy every files by Terminal in the /usr/local/lib, you should be okay to install that by yourself.
Once it is done, you should be able to retry the ./configure command then the make && make install commands.
Come back when done to give us some news!
Good luck!
Comment by Jean — October 27, 2008 @ 1:15 am
Wiki updated accordingly to Xcode related problem.
Thanks to Jas.
Comment by Jean — October 27, 2008 @ 1:19 am
I got everything installed and up…but I’m running into the same issue as comment #21 by Vamp. I get that “bus error” then “logout” and all the errors he wrote up there. I wish you guys would help us with this problem. What is happening? Thanks guys
Comment by TIPS — November 10, 2008 @ 11:37 am
hi everyone!
i am new here and i am trying to get pcsx2 working as well but i have this problem
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
Referenced from: /Users/philiplee/Documents/unarchived/pcsx2/bin/pcsx2
Reason: no suitable image found. Did find:
/usr/local/lib/libintl.3.dylib: file too short
/usr/local/lib/libintl.3.dylib: unknown file type, first eight bytes: 0×8B 0×4D 0×0C 0×8B 0×45 0×10 0×85 0xD2
Trace/BPT trap
logout
[Process completed]
I installed the gtk, glew, copied all library contents and SDL to /usr/local/lib/
also got the latest CG from Nvidia and latest x11.
when i tried to run pcsx2, i got this happening
i was hoping if you guys can help me out. i’ll greatly appreciate it ^__^ thank you for all this work! i have a hope of playing ps2 now!!
:D 
Comment by philip1114 — December 12, 2008 @ 9:06 am
Hi fellas
Great work on PCSX2 for Mac
I am totally new to terminal use on the Mac, and not particularly technical either.
I followed the guide here:
http://quant0r.com/trac/trac.cgi/wiki/runningPcsx2
I am able to launch PCSX2 but when I do so all I get is squares instead of letters and numbers where the text should be.
I get these error messages in the Terminal:
______________________________________________________________________________
Last login: Sat Dec 20 00:22:04 on ttys001
Brians-Laptop:~ Brian$ /Applications/pcsx2/bin/pcsx2 ; exit;
Fontconfig error: Cannot load default config file
(:13602): Pango-CRITICAL **: No fonts found:
This probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
(:13602): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type=’PangoRenderFc’, script=’latin’
__________________________________________________________________________________
I have downloaded the latest Xquartz from this site:
http://xquartz.macosforge.org/trac/wiki/X112.3.1
I followed the guide above on how to compile the fontconfig however here are the messages I get in the Terminal doing so:
________________________________________________________________________________________
Last part of the “./configure” messages from the Terminal:
_______________________________________________________________________________
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fontconfig/Makefile
config.status: creating fc-lang/Makefile
config.status: creating fc-glyphname/Makefile
config.status: creating fc-case/Makefile
config.status: creating fc-arch/Makefile
config.status: creating src/Makefile
config.status: creating conf.d/Makefile
config.status: creating fc-cache/Makefile
config.status: creating fc-cat/Makefile
config.status: creating fc-list/Makefile
config.status: creating fc-match/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.sgml
config.status: creating test/Makefile
config.status: creating fontconfig.spec
config.status: creating fontconfig.pc
config.status: creating fonts.conf
config.status: creating fontconfig-zip
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
____________________________________________________________________________________
And then this from the “make” command
____________________________________________________________________________________
Brians-Laptop:fontconfig-2.6.0 Brian$ make
make all-recursive
Making all in fontconfig
make[2]: Nothing to be done for `all’.
Making all in fc-case
make all-am
make[3]: Nothing to be done for `all-am’.
Making all in fc-lang
make all-am
make[3]: Nothing to be done for `all-am’.
Making all in fc-glyphname
make all-am
make[3]: Nothing to be done for `all-am’.
Making all in fc-arch
make all-am
make[3]: Nothing to be done for `all-am’.
Making all in src
make all-am
make[3]: Nothing to be done for `all-am’.
Making all in fc-cache
make[2]: Nothing to be done for `all’.
Making all in fc-cat
make[2]: Nothing to be done for `all’.
Making all in fc-list
make[2]: Nothing to be done for `all’.
Making all in fc-match
make[2]: Nothing to be done for `all’.
Making all in conf.d
make[2]: Nothing to be done for `all’.
Making all in doc
make[2]: Nothing to be done for `all’.
Making all in test
make[2]: Nothing to be done for `all’.
_____________________________________________________________________________________
And from the “make install” command:
_____________________________________________________________________________________
Brians-Laptop:fontconfig-2.6.0 Brian$ make install
Making install in fontconfig
make[2]: Nothing to be done for `install-exec-am’.
test -z “/usr/local/include/fontconfig” || /Users/Brian/Documents/FFX PS2 Emulation Software/fontconfig-2.6.0/install-sh -d “/usr/local/include/fontconfig”
/bin/sh: /Users/Brian/Documents/FFX: No such file or directory
make[2]: *** [install-fontconfigincludeHEADERS] Error 127
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
Brians-Laptop:fontconfig-2.6.0 Brian$ make install-sh
make: Nothing to be done for `install-sh’.
Brians-Laptop:fontconfig-2.6.0 Brian$
______________________________________________________________________________________
After doing this procedure I get the same result when launching PCSX2, basically where there should be letters and numbers there is nothing but squares as text.
I hope you guys might be able to help
I thank you for any replies guys.
_________________________________________________________________________________
Comment by Brian — December 19, 2008 @ 11:52 pm
I am getting something similar to number 21, i was able to get through the configuration, everything looked very optimistic… i have tried a bios from japan, europe, and the usa but i also get..
2009-05-17 18:26:59.378 pcsx2[18533:10b] *** _NSAutoreleaseNoPool(): Object 0×1b69ca0 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0×91982f0f 0×9188f442 0×918a3b35 0×918a3711 0×90639042 0×95ceee3b 0×9649d13d 0×963b8bb1 0×963b806b 0×963b7a26 0xb3ff14f 0xb3fc8bc 0xb3f258e 0xb30bc1b 0×19f1a 0×671a68 0×686961 0×688671 0×6889c9 0×12b0a83 0×1198333 0×1199ebd 0×118b1ec 0×671a68 0×686af2 0×688379 0×6889c9 0×12abcd5 0×1184081 0×11852a0 0×550445 0×15f5b95 0×15f92ea 0×15f96c7 0×11857a1 0×1b615 0×23e6)
2009-05-17 18:26:59.378 pcsx2[18533:10b] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error (1002) creating CGSWindow’
2009-05-17 18:26:59.379 pcsx2[18533:10b] Stack: (
2422444203,
2513366587,
2422443659,
2422443722,
2521425184,
2521420035,
2520484785,
2520481899,
2520480294,
188739919,
188729532,
188687758,
187743259,
106266,
6756968,
6842721,
6850161,
6851017,
19597955,
18449203,
18456253,
18395628,
6756968,
6843122,
6849401,
6851017,
19578069,
18366593,
18371232,
5571653,
23026581,
23040746,
23041735,
18372513,
112149,
9190
)
Trace/BPT trap
logout
[Process completed]
mine doesn’t say bus error at the end, but Trace/BPT trap. i noticed the error it actually killed the app on was :
*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error (1002) creating CGSWindow
which tells me it’s got something to do with the CG tools, they seemed to have installed perfectly fine, i even went so far as to check the package contents and ensure that the stuff from the installer was being dumped into their respective directories. do i just need a reboot here or something, or does anyone have step by step instructions on making sure CG tools are installed properly?
Comment by mrbrownstone — May 17, 2009 @ 10:31 pm
mrbrownstone, you are trying to use the gssoft plugin, it seems, only zerogs is supported, i should have removed gssoft from the package long ago
Comment by zedr0n — May 18, 2009 @ 4:36 am