|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#61 (permalink) |
|
Registered User
Join Date: Jul 2008
Location: Brazil
Posts: 1
|
Can't compile
Code:
callbacks.h:5: error: expected ‘)’ before ‘*’ token callbacks.h:9: error: expected ‘)’ before ‘*’ token callbacks.h:13: error: expected ‘)’ before ‘*’ token In file included from callbacks.c:8: interface.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token interface.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token In file included from callbacks.c:9: support.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token support.h:51: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token support.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token support.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token support.h:66: error: expected ‘)’ before ‘*’ token callbacks.c:13: error: expected ‘)’ before ‘*’ token callbacks.c:21: error: expected ‘)’ before ‘*’ token callbacks.c:29: error: expected ‘)’ before ‘*’ token |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#64 (permalink) |
|
Registered User
Join Date: Feb 2007
Location: NY
Posts: 14
|
I'm the supporter of the pcsx2 ebuilds for gentoo, and I have a bunch of things that would be helpful to this guide. First off, you can get/see all of my work at github So, here's the long list of things: Starting with the pcsx2 core. Optional nls: This one's a patch not by me... it adds a configure flag to enable/disable nls. Code:
--- configure.ac.old 2008-02-23 22:42:48.751259786 +0000 +++ configure.ac 2008-02-23 22:44:38.140260060 +0000 @@ -107,7 +107,12 @@ AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"]) AC_CHECK_LIB(z,main,[LIBS="$LIBS -lz"]) -AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])]) +AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [Disable nls support]), + nls=$enableval,nls=yes) +if test "x$nls" == xyes +then + AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])]) +fi AC_OUTPUT([ Makefile @@ -132,3 +137,4 @@ echo " Force sse3? $sse3" echo " Recompilers enabled? $recbuild" echo " Virtual memory build? $vmbuild" +echo " nls support? $nls" Again, this patch is not by me Code:
diff -Nur pcsx2.orig/GS.cpp pcsx2/GS.cpp --- pcsx2.orig/GS.cpp 2008-06-03 14:26:12.000000000 +0200 +++ pcsx2/GS.cpp 2008-06-03 14:29:17.000000000 +0200 @@ -28,6 +28,8 @@ #include <vector> #include <list> +#include <cstring> +#include <cstdlib> using namespace std; Code:
--- configure.ac.bak 2008-08-09 20:30:25.000000000 -0400 +++ configure.ac 2008-08-09 21:51:16.000000000 -0400 @@ -11,11 +11,6 @@ dnl necessary for compiling assembly AM_PROG_AS -CFLAGS= -CPPFLAGS= -CXXFLAGS= -CCASFLAGS= - dnl Check for debug build AC_MSG_CHECKING(debug build) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]), @@ -23,10 +18,7 @@ if test "x$debug" == xyes then AC_DEFINE(_DEBUG,1,[_DEBUG]) - CFLAGS+=" -g " - CPPFLAGS+=" -g " - CXXFLAGS+=" -g " - CCASFLAGS+=" -D_DEBUG -g " + CCASFLAGS+=" -D_DEBUG " MYOBJDIR="Debug" else AC_DEFINE(NDEBUG,1,[NDEBUG]) There is unsupported support for compiling your own shaders (the zerogs plugin normally uses a precompiled shaders binary). The program to use is called zgsbuild and requires the following patch to add it to the build system: Code:
diff -u opengl.bak/configure.ac opengl/configure.ac --- opengl.bak/configure.ac 2008-08-10 02:57:25.000000000 -0400 +++ opengl/configure.ac 2008-08-10 03:06:35.000000000 -0400 @@ -139,6 +139,7 @@ AC_OUTPUT([ Makefile Linux/Makefile + ZeroGSShaders/Makefile ]) echo "Configuration:" Code:
make -C ZeroGSShaders Then run Code:
./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat Note that I have seen some segfaults while trying to run this program. Not sure if it is gcc 4.3 related. gcc 4.3 support: Code:
diff -Nur opengl.bak/Mem.h opengl/Mem.h --- opengl.bak/Mem.h 2008-09-18 20:34:04.000000000 -0400 +++ opengl/Mem.h 2008-09-18 20:34:08.000000000 -0400 @@ -21,6 +21,8 @@ #include <assert.h> #include <vector> +#include <cstring> +#include <cstdlib> // works only when base is a power of 2 #define ROUND_UPPOW2(val, base) (((val)+(base-1))&~(base-1)) diff -Nur opengl.bak/ZeroGSShaders/zerogsshaders.cpp opengl/ZeroGSShaders/zerogsshaders.cpp --- opengl.bak/ZeroGSShaders/zerogsshaders.cpp 2008-09-18 20:34:04.000000000 -0400 +++ opengl/ZeroGSShaders/zerogsshaders.cpp 2008-09-18 20:34:29.000000000 -0400 @@ -5,6 +5,9 @@ #include <stdio.h> #include <assert.h> +#include <cstdlib> +#include <cstring> + #include <zlib.h> #include "zpipe.h" Code:
--- configure.ac.bak 2008-08-10 02:27:07.000000000 -0400 +++ configure.ac 2008-08-10 02:27:42.000000000 -0400 @@ -24,10 +24,6 @@ AC_SUBST(ZEROGS_RELEASE) AC_SUBST(ZEROGS_SONAME) -CFLAGS=" -I/opt/cg/include -L/opt/cg/lib " -CPPFLAGS=" -I/opt/cg/include -L/opt/cg/lib " -CXXFLAGS=" -I/opt/cg/include -L/opt/cg/lib " - dnl Check for debug build AC_MSG_CHECKING(debug build) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]), @@ -35,14 +31,11 @@ if test "x$debug" == xyes then AC_DEFINE(_DEBUG,1,[_DEBUG]) - CFLAGS+="-g " - CPPFLAGS+="-g " - CXXFLAGS+="-g " else AC_DEFINE(NDEBUG,1,[NDEBUG]) - CFLAGS+="-O3 -fomit-frame-pointer " - CPPFLAGS+="-O3 -fomit-frame-pointer " - CXXFLAGS+="-O3 -fomit-frame-pointer " + CFLAGS+=" -O3 -fomit-frame-pointer " + CPPFLAGS+=" -O3 -fomit-frame-pointer " + CXXFLAGS+=" -O3 -fomit-frame-pointer " fi AC_MSG_RESULT($debug) cdvdlinuz fwnull spu2null cdvdiso cdvdnull padxwin usblinuz zeropad cdvdiso-efp dev9null peopsspu2 usbnull zerospu2 all of which at least have a custom-cflags patch. Not to mention that the ebuilds detail working ways on how to build everything. P.S. The dependencies of all the ebuilds do need to be checked over. So if someone notices something missing, please let me know. P.P.S. I have omitted a bunch of gentoo-specific patches. |
|
|
|
|
|
#65 (permalink) |
|
Registered User
Join Date: Oct 2009
Location: texas
Posts: 2
|
ok i have to ask, but why not just make a spot on the server so you can install via apt-get? i mean "sudo apt-get install pcsx2" would be a lot better then this.... or even keep a .deb or an rpm or a .run would be nice for the nobs i have a funny thing happening. i have it installed and working... mostly however, when i added it to the gnome menu it opened without the plugins... thinking this was odd so i launched it from terminal to see if it made a difference. it did so long as i was in `pcsx2/bin` if i tried to launch it as `./pcsx2/bin/pcsx2` then it would open with out the plugins working. next i thought i would make a link to /pcsx2/bin/pcsx2 and jsut set it on my desktop since i cant seem to added to the menu. well that didnt go well either. i guess i havent beat my head against the wall enough to clearly see what the problem is. well at any rate its 10pm saterday and i'm a sheets from the wind from where i want to be. i'll work on this better after the sun comes to find me with a headache |
|
|
|
|
|
#66 (permalink) |
|
Registered User
Join Date: Feb 2007
Location: NY
Posts: 14
|
That's just not the way the linux world works. Linux software is released as a tarball of source code + a tarball of binaries. Then package maintainers from each distribution take the source/binaries and create distro specific packages for it. I'm not associated with the pcsx2 team, but i'm Gentoo's package maintainer for pcsx2, and installing pcsx2 in gentoo is as easy as "sudo emerge pcsx2". The problem is just that nobody has taken up the job of maintaining/creating a pcsx2 package for debian or ubuntu.
|
|
|
|
|
|
#67 (permalink) |
|
Registered User
Join Date: Oct 2009
Location: texas
Posts: 2
|
ok a makes since but here is the argument i have, i cant add it to the gnome menu. well let me be more clear on that. i can add it but it wont work when i try to launch it from the gnome menu. the only way it will work when i launch it is Code:
cd pcsx2 sudo ./pcsx2 if it was a simple apt-get install then it would be programed to add it to the menu with out loss of hair and i many not feel like the gods of tux hates me. |
|
|
|
|
|
#68 (permalink) | |
|
Registered User
Join Date: Feb 2007
Location: NY
Posts: 14
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|