User(s) browsing this thread: 2 Guest(s)

Post Reply 
 
Thread Rating:
  • 17 Vote(s) - 3.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compile Guide
Author Message
dralor Offline
Posting Freak
****

Posts: 813
Joined: Jan 2009
Location:
Reputation: 5
Post: #81
RE: Compiling a plugin
You need to download the the November DirectX SDK. Then you need to make sure the compiler knows where the files are by adding the include and lib files.
02-02-2009 09:35 AM
Find all posts by this user Quote this message in a reply

Sponsored links

hickop
Unregistered

 
Post: #82
RE: Compile Guide
Hi,
I got latest SVN of pcsx2 playground (#680), and I cant get it to compile on Linux64 actually.
Installed all the required libraries as shown in first page.

When it compiles ZeroGS, I got this error:

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc... gcc
checking whether we are using the GNU C++ compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking debug build... no
checking for _aligned_malloc... no
checking for _aligned_free... no
checking for development build...... no
checking check for sse2...... yes
checking for a x86-64 CPU... yes
checking gtk2+... checking for pkg-config... pkg-config
checking OpenGL... checking for GL/gl.h... yes
checking for GL/glu.h... yes
checking for GL/glext.h... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking for main in -lGLEW... yes
checking Cg... checking for main in -ljpeg... yes
checking for main in -lpthread... yes
checking for main in -lstdc++... yes
checking for main in -lz... yes
checking for main in -ldl... yes
checking for main in -lXxf86vm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Linux/Makefile
config.status: executing depfiles commands
Configuration:
  Target system type:    
  x86-64 build?           yes
  Debug build?           no
  Dev build?               no
  SSE2 enabled?           yes
Making clean in Linux
...
...
x86.h:104: warning: ‘fastcall’ attribute ignored
zerogs.cpp:321: warning: non-local variable ‘<anonymous union> g_vars’ uses anonymous type
zerogs.cpp: In function ‘bool ZeroGS::Create(int, int)’:
zerogs.cpp:1330: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
zerogs.cpp: In function ‘void ZeroGS::ChangeDeviceSize(int, int)’:
zerogs.cpp:1896: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp: In function ‘void ZeroGS::Flush(int)’:
zerogs.cpp:2583: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp:2712: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp:3018: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp:3031: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp: In function ‘void ZeroGS::RenderCRTC(int)’:
zerogs.cpp:3552: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp: In function ‘void ZeroGS::SetTexVariables(int, FRAGMENTSHADER*, int)’:
zerogs.cpp:4651: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp: In function ‘void ZeroGS::SetTexVariablesInt(int, int, const tex0Info&, ZeroGS::CMemoryTarget*, FRAGMENTSHADER*, int)’:
zerogs.cpp:4854: warning: deprecated conversion from string constant to ‘char*’
zerogs.cpp: In function ‘bool ZeroGS::SaveTGA(const char*, int, int, void*)’:
zerogs.cpp:5947: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
zerogs.cpp:5948: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
zerogs.cpp: In function ‘void ZeroGS::KickSprite()’:
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4307: sorry, unimplemented: called from here
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4308: sorry, unimplemented: called from here
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4309: sorry, unimplemented: called from here
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4310: sorry, unimplemented: called from here
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4311: sorry, unimplemented: called from here
zerogs.cpp:4269: sorry, unimplemented: inlining failed in call to ‘void SetKickVertex(VertexGPU*, Vertex, int, const ZeroGS::VB&)’: function not inlinable
zerogs.cpp:4316: sorry, unimplemented: called from here
make[1]: *** [libZeroGSogl_a-zerogs.o] Error 1
make[1]: Leaving directory `/home/hickop/Sources/pcsx2-playground/plugins/gs/zerogs/opengl'
make: *** [install-recursive] Error 1
Error with building plugins

My arch is athlon64/Geforce8600 running Ubuntu 8.10 x86_64, GCC 4.3.1
I hope this helps.
02-02-2009 06:13 PM
Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 1.157
Joined: Dec 2008
Location:
Reputation: 4
Post: #83
RE: Compile Guide
No, it's om you side. Don't try to compile in for 64-bit target.
02-02-2009 07:33 PM
Find all posts by this user Quote this message in a reply
linan Offline
Newbie

Posts: 6
Joined: Jan 2009
Location:
Reputation: 0
Post: #84
RE: Compile Guide
In file included from ./../Common.h:67,
from ./../Sif.h:22,
from ./../PsxCommon.h:51,
from iR3000A.cpp:32:
./../SaveState.h:205:7: warning: no newline at end of file
In file included from iR3000A.h:23,
from iR3000A.cpp:37:
BaseblockEx.h:69:7: warning: no newline at end of file
iR3000A.cpp: In function ‘void recResetIOP()’:
iR3000A.cpp:605: error: ‘memset_8’ was not declared in this scope
iR3000A.cpp:605: warning: ISO C++ forbids comparison between pointer and integer
make[2]: *** [iR3000A.o] Error 1
make[2]: Leaving directory `/home/uranus/pcsx2-playground-read-only/pcsx2/x86'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/uranus/pcsx2-playground-read-only/pcsx2/x86'
make: *** [install-recursive] Error 1
Error with building pcsx2
#################
This is my problem ,My system is Ubuntu 8.04. I have tried more ten times, plugins ' compiling is successful. what should I do ? thanks a lot!
are there any methods that I need compile pcsx2_pg only, then I can copy plugins to the Paths?
(This post was last modified: 02-02-2009 07:59 PM by linan.)
02-02-2009 07:57 PM
Find all posts by this user Quote this message in a reply
themaister Offline
Newbie

Posts: 17
Joined: Dec 2008
Location:
Reputation: 0
Post: #85
RE: Compile Guide
Try the rev. 672. Compiled for me on 32-bit. Had same error as you in rev 678 I think. Wink

Although I wonder. Why does the normal pcsx2 compile on 64-bit, and the first pg release (377 I think ... something like that), while the lastest don't? Tongue Some 32-bit only action (asm?) in place, or an error that will most likely be fixed given time?
02-03-2009 12:14 AM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 1.157
Joined: Dec 2008
Location:
Reputation: 4
Post: #86
RE: Compile Guide
Because 64-bit release was dropped several weeks ago. And linux build is still unplayable from vtlb version. svn does not contain proper patch for latest revisions, it could be obtained from issue 111.
02-03-2009 12:22 AM
Find all posts by this user Quote this message in a reply
Krakatos Offline
Pcsx2 betatester/Mod
*******

Posts: 1.154
Joined: Nov 2008
Location: Italy
Reputation: 1
Post: #87
RE: Compile Guide
Ok people, moved to bug reporting forum.

2 reasons:
1) it fits better here cause we do not officially support unofficial builds.
2) it fits better here cause we do accept bug reports if you compile your own version
02-03-2009 12:24 AM
Find all posts by this user Quote this message in a reply
Fantasy Offline
Newbie

Posts: 22
Joined: Jan 2009
Location:
Reputation: 0
Post: #88
RE: Compile Guide
By new update svn 686 I can compile all plugins, but not ZeroGS.
I have this error (some thing like this, I have to translate it in to english):
fatal error LNK1181: Input file "..\..\..\..\ddraw.lib" can not be opened.

Maybe someone can help me. I use microsoft visual C++ express under windows vista 64 bit.
02-03-2009 06:11 PM
Find all posts by this user Quote this message in a reply
montecrudo Offline
Member
**

Posts: 77
Joined: Jan 2009
Location:
Reputation: 0
Post: #89
RE: Compile Guide
I can't compile the ZeroSPU2 plugin. Visual Studio 2008 Pro gives me this error:




Nevermind.
It's fixed in r688.
(This post was last modified: 02-03-2009 10:32 PM by montecrudo.)
02-03-2009 10:29 PM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 1.157
Joined: Dec 2008
Location:
Reputation: 4
Post: #90
RE: Compile Guide
Linux users could compile rev689 for 32-bit targets. It's work. At last.
02-03-2009 11:11 PM
Find all posts by this user Quote this message in a reply
Post Reply 





Current time: 11-01-2014, 12:04 AM