mirror / pcsxr

https://pcsxr.svn.codeplex.com/svn/pcsxr
GNU General Public License v3.0
77 stars 93 forks source link

failed to build on debian stretch #5

Open davewood opened 7 years ago

davewood commented 7 years ago

got the source from codeplex directly

trying to install on debian stretch because the pcsxr deb package is broken and keyboard doesnt work.

apt install autoconf intltool libtool automake libglib2.0-dev libxml-parser-perl libgtk-3-dev libsdl2-dev

fix windows newline in autogen.sh

vim autogen.sh :%s/{Ctrl-v}{Ctrl-m}/\r/g

./autogen.sh

some stuff breaks again, so open confiure

vim configure :%s/{Ctrl-v}{Ctrl-m}//g

at some point this error comes up "po/Makefile.in.in was not created by intltoolize" fix:

autoreconf --install intltoolize autoreconf ./configure

make

tried to run ./gui/pcsxr but it failed to load.

david@nbdt:~/dev/pcsxr$ ./gui/pcsxr Configuration file /home/david/.pcsxr/pcsxr.cfg couldn't be found No default plugin could be found for No default plugin could be found for No default plugin could be found for No default plugin could be found for No default plugin could be found for No default plugin could be found for Picking default plugin: HLE

(pcsxr:21791): WARNING : Error: interface could not be loaded!

giving up

darcykimball commented 7 years ago

I had the exact same issue. Turns out the error is not inspected by the program when that error happens. I put in a g_error() call to see that error message, and lo and behold:

$ gui/pcsxr

(pcsxr:19312): WARNING : Error: interface could not be loaded!

(pcsxr:19312): ERROR : Failed to open file '/usr/local/share/pcsxr/pcsxr.ui': No such file or directory Trace/breakpoint trap

So what happened was the configure script assumed the prefix /usr/local/... for PACKAGE_DATA_DIR (where it's expecting pcsxr.cfg). It worked after I passed the installation prefix I wanted. I'm pretty sure it should also work if you ran configure with the default prefix (i.e. with no args) and then installed in the default place (/usr/local...).

It would've been nice to see the actual error in the first place.