Emuforums.com

Go Back   Emuforums.com > PS2 Emulation > PCSX2 Forum
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old July 25th, 2008   #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
robertobech is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old July 28th, 2008   #62 (permalink)
Luk
Registered User
 
Join Date: Jul 2008
Location: Argentina
Posts: 1
Please,I do have the same problem as Robertobech. I guess is GTK version, but I don't know how to solve it. I'm using opensuse 11.

Does anybody know where can I download a BIN? or RPM?

Thanks!
Luk is offline   Reply With Quote
Old July 29th, 2008   #63 (permalink)
Registered User
 
Join Date: Nov 2007
Location: Cairo, Egypt
Posts: 31
Would it make any difference if I used the 64-bit version of the emu? Or is it not optimized yet?
Extreme Coder is offline   Reply With Quote
Old September 19th, 2008   #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"
gcc 4.3 support:
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;
Custom cflags - This adds support for setting custom cflags/cxxflags
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])
Moving on to the zerogs plugin.

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:"
Then after you configure and build zerogs, then run
Code:
make -C ZeroGSShaders
The zgsbuild file should appear in the ZeroGSShaders directory.
Then run
Code:
./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat
to build your shaders.
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"
custom cflags:
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)
This isn't everything... there's also ebuilds for
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.
eatnumber1 is offline   Reply With Quote
Old October 11th, 2009   #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
eliofall is offline   Reply With Quote
Old October 11th, 2009   #66 (permalink)
Registered User
 
Join Date: Feb 2007
Location: NY
Posts: 14
Quote:
Originally Posted by eliofall View Post
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
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.
eatnumber1 is offline   Reply With Quote
Old October 14th, 2009   #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
i have tried a few different commands when making the launcher but the only thing thats working is from a terminal, going to dir && ./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.
eliofall is offline   Reply With Quote
Old October 14th, 2009   #68 (permalink)
Registered User
 
Join Date: Feb 2007
Location: NY
Posts: 14
Quote:
Originally Posted by eliofall View Post
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
i have tried a few different commands when making the launcher but the only thing thats working is from a terminal, going to dir && ./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.
idk, I don't use gnome so I can't help you there.
eatnumber1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:31.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5