..:: PCSX2 Forums ::..

Full Version: Linux - Compile Guide and Support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
(04-07-2011, 12:08 PM)dubigrasu Wrote: [ -> ]@ tux
OK, I'll do it.

Thanks.


(04-07-2011, 01:40 PM)arcum42 Wrote: [ -> ]Interesting. I'd figured most of the Mandriva people would be going to Mageia at this point, since Mandriva fired most of their developers, and a lot of them formed Mageia as a fork of Mandriva.

Looks like they even have a beta out, which is interesting, since they didn't have a release last time I'[d looked...
Thanks for the info,
i know that too from my mandriva local linux user group, but i will wait until final release and try it.
i have been trying using PCLinuxOS too, but still it's cannot replace Mandriva.

Btw,even Mr. Duval build Distro to replace Mandrake, but no more news until today.


(04-07-2011, 04:13 PM)dubigrasu Wrote: [ -> ]@arcum42

We're still undecided Smile
Yes, while Mandriva still carries the name, very very few old devs are still there. There is almost no connection with the old Mandy other than the name.

Current Mandriva has (only) the name, while Mageia has the spirit. Though choice for old users like Tuxgamer and me.
They will both have the final release in June.

Yes, it's tough choice, but i will try it if the final release come out.
hmmm, i hope this is what do you want me to do, sory if this wrong.

Code:
[ai@Mandriva_2010_Spring bin]$ gdb pcsx2-dbg
GNU gdb (GDB) 7.1-1mdv2010.1 (Mandriva Linux release 2010.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg...done.
(gdb) run
Starting program: /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg
[Thread debugging using libthread_db enabled]
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Detaching after fork from child process 11738.
Detaching after fork from child process 11739.
Detaching after fork from child process 11740.
Command line parsing...
Command line parsed!
[New Thread 0xb6077b70 (LWP 11741)]
Detaching after fork from child process 11742.
[New Thread 0xb5622b70 (LWP 11743)]
[Thread 0xb5622b70 (LWP 11743) exited]
^C
Program received signal SIGINT, Interrupt.
0xffffe424 in __kernel_vsyscall ()
Missing debug package(s), you should install: SDL12-debug-1.2.14-3mdv2010.2.i586 aalib-debug-1.4.0-0.rc5.19mdv2010.1.i586 atk1.0-debug-1.30.0-1mdv2010.1.i586 cairo-debug-1.9.14-0.2mdv2010.1.i586 directfb-debug-1.4.3-2mdv2010.1.i586 fontconfig-debug-2.8.0-2mdv2010.1.i586 freetype2-debug-2.3.12-1.5mdv2010.1.i586 gcc-debug-4.4.3-2mnb2.i586 glib2.0-debug-2.24.1-1mdv2010.1.i586 glibc-debug-2.11.1-8.2mnb2.i586 gtk+2.0-debug-2.20.1-1mdv2010.1.i586 ia_ora-gnome-debug-1.0.24-1mdv2010.1.i586 jbigkit-debug-2.0-4mdv2010.1.i586 libart_lgpl-debug-2.3.21-1mdv2010.1.i586 libcanberra-debug-0.24-2mdv2010.1.i586 libggi-debug-2.2.2-14mdv2010.1.i586 libgii-debug-1.0.2-13mdv2010.1.i586 libgnomecanvas-debug-2.30.1-1mdv2010.1.i586 libgnomeprint-debug-2.18.7-1mdv2010.1.i586 libgnomeprintui-debug-2.18.5-1mdv2010.1.i586 libice-debug-1.0.6-2mdv2010.1.i586 libjpeg-debug-8a-1mdv2010.1.i586 libogg-debug-1.2.0-1mdv2010.1.i586 libpng-debug-1.2.43-1.1mdv2010.1.i586 libsm-debug-1.1.1-2mdv2010.1.i586 libtiff-debug-3.9.2-2.2mdv2010.1.i586 libtool-debug-2.2.6b-2mdv2010.1.i586 libvorbis-debug-1.3.1-1mdv2010.1.i586 libx11-debug-1.3.3-1mdv2010.1.i586 libxau-debug-1.0.5-2mdv2010.1.i586 libxcb-debug-1.6-1mdv2010.1.i586 libxcomposite-debug-0.4.1-1mdv2010.1.i586 libxcursor-debug-1.1.10-2mdv2010.1.i586 libxdamage-debug-1.1.2-1mdv2010.1.i586 libxdmcp-debug-1.0.3-2mdv2010.1.i586 libxext-debug-1.1.1-2mdv2010.1.i586 libxfixes-debug-4.0.4-1mdv2010.1.i586 libxi-debug-1.3-1mdv2010.1.i586 libxinerama-debug-1.1-1mdv2010.1.i586 libxml2-debug-2.7.7-1.1mdv2010.1.i586 libxrandr-debug-1.3.0-3mdv2010.1.i586 libxrender-debug-0.9.5-2mdv2010.1.i586 libxxf86dga-debug-1.1.1-1mdv2010.1.i586 libxxf86vm-debug-1.1.0-1mdv2010.1.i586 ncurses-debug-5.7-4.20091227.1mdv2010.1.i586 pango-debug-1.28.0-1mdv2010.1.i586 pcre-debug-8.02-1mdv2010.1.i586 pixman-debug-0.18.2-1mdv2010.1.i586 slang-debug-2.2.2-1mdv2010.1.i586 tdb-debug-1.2.1-1mdv2010.1.i586 zlib-debug-1.2.3-15mdv2010.1.i586
(gdb) break SDL_video.c:1112
Breakpoint 1 at 0xb4733e66: file /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c, line 1112.
(gdb) break SDL_VideoInit
Breakpoint 2 at 0xb473280a: file /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c, line 419.
(gdb) print _this
$1 = (SDL_VideoDevice *) 0x0
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg
[Thread debugging using libthread_db enabled]
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Detaching after fork from child process 15966.
Detaching after fork from child process 15967.
Detaching after fork from child process 15968.
Command line parsing...
Command line parsed!
[New Thread 0xb6077b70 (LWP 15969)]
Detaching after fork from child process 15970.
[New Thread 0xb5622b70 (LWP 15971)]
[Thread 0xb5622b70 (LWP 15971) exited]
^C
Program received signal SIGINT, Interrupt.
0xffffe424 in __kernel_vsyscall ()
(gdb) break SDL_VideoInit
Note: breakpoint 2 also set at pc 0xb473180a.
Breakpoint 3 at 0xb473180a: file /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c, line 419.
(gdb) continue
Continuing.
[New Thread 0xb5622b70 (LWP 16147)]
[New Thread 0xaa02ab70 (LWP 16150)]
[Switching to Thread 0xaa02ab70 (LWP 16150)]

Breakpoint 1, SDL_CreateWindow (title=0xa2a81f4 "PCSX2", x=100, y=100, w=640, h=480, flags=38)
    at /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:1112
1112        if (!_this) {
Missing debug package(s), you should install: dbus-debug-1.2.24-1mdv2010.1.i586 expat-debug-2.0.1-12mdv2010.1.i586 gvfs-debug-1.6.1-2mdv2010.1.i586 udev-debug-153-5mnb2.i586
(gdb) print _this
$2 = (SDL_VideoDevice *) 0x0
(gdb) print _this->GL_CreateContext
Cannot access memory at address 0x7c
(gdb) print _this
$3 = (SDL_VideoDevice *) 0x0
(gdb) next
1114            if (SDL_VideoInit(NULL) < 0) {
(gdb) print _this
$4 = (SDL_VideoDevice *) 0x0
(gdb) next
1123        if (flags & SDL_WINDOW_OPENGL) {
(gdb) next
1124            if (!_this->GL_CreateContext) {
(gdb) print _this->GL_CreateContext
Cannot access memory at address 0x7c
(gdb) print _this
$5 = (SDL_VideoDevice *) 0x0
(gdb) next

Program received signal SIGSEGV, Segmentation fault.
0xb4732e98 in SDL_CreateWindow (title=0xa2a81f4 "PCSX2", x=100, y=100, w=640, h=480, flags=38)
    at /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:1124
1124            if (!_this->GL_CreateContext) {
(gdb)

btw, could you give your working SDL 1.3 pcsx2 binary?
i want to try it in my distro.
Hum, actually SDL is inside the GS plugins. Normally we have the same. Actually could you check you have no local modification.
svn status -u 3rdparty/SDL-1.3.0-5387

Anyway I attach my gsdx version no guarantee. Could you re do the trace but with step instead of next at the end to enter the SDL_VideoInit function. ctrx-A to see where you are. Then you can do some next. It is a crazy story, it seems SDL_VideoInit is not executed. Maybe the one in our rpm package try to remove them.

Edit: it you did not understand lots of things, it is normal. Sometimes it could seem easy but actually it is very complex Wink

Edit2: clean attachement.
Has anyone ever noticed the Revision Number is always r0 in the linux build of pcsx2 0.9.7?

At r4557, It's "PCSX2 0.9.7.0 (svn) Apr 9 2011" in emulator window title, and "PCSX2 0.9.7.r0 - compiled on Apr 9 2011" printed in console window(Misc -> Show Console).

This problem is also exisiting in official beta r3881.

My Linux is Ubuntu 10.10 x86.
(04-09-2011, 04:56 AM)pcsx2fan Wrote: [ -> ]Has anyone ever noticed the Revision Number is always r0 in the linux build of pcsx2 0.9.7?

At r4557, It's "PCSX2 0.9.7.0 (svn) Apr 9 2011" in emulator window title, and "PCSX2 0.9.7.r0 - compiled on Apr 9 2011" printed in console window(Misc -> Show Console).

This problem is also exisiting in official beta r3881.

My Linux is Ubuntu 10.10 x86.

For the build process in Windows, pcsx2's msvc project uses a tool called SubWCRev to get the revision number of the checkout. That tool comes from TortoiseSVN, and isn't included in the Apache Subversion package.

Because SubWCRev isn't present in Linux (it can also be true for Windows users, like me, since I don't use TortoiseSVN), the svn revision number can't be determined, so it is set to zero.
(04-08-2011, 08:29 PM)gregory Wrote: [ -> ]Hum, actually SDL is inside the GS plugins. Normally we have the same. Actually could you check you have no local modification.
svn status -u 3rdparty/SDL-1.3.0-5387

Anyway I attach my gsdx version no guarantee. Could you re do the trace but with step instead of next at the end to enter the SDL_VideoInit function. ctrx-A to see where you are. Then you can do some next. It is a crazy story, it seems SDL_VideoInit is not executed. Maybe the one in our rpm package try to remove them.

Edit: it you did not understand lots of things, it is normal. Sometimes it could seem easy but actually it is very complex Wink
thanks for the reply.

here the svn status:
Code:
[ai@Mandriva_2010_Spring pcsx2-svn]$ svn status -u 3rdparty/SDL-1.3.0-5387
?                    3rdparty/SDL-1.3.0-5387/cmake_install.cmake
?                    3rdparty/SDL-1.3.0-5387/CMakeFiles
?                    3rdparty/SDL-1.3.0-5387/Makefile
Status against revision:   4557
[ai@Mandriva_2010_Spring pcsx2-svn]$

Btw, do i need to update my pcsx2-svn to the latest and recompile?
right now i'am still using r5404 , not update it since the first time i asked you about this problem in here



thanks for the attachment, but i cannot use it, different libstdc++, perhaps mine to old
Code:
[ai@Mandriva_2010_Spring plugins]$ ldd libGSdx.so
./libGSdx.so: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./libGSdx.so)
        linux-gate.so.1 =>  (0xffffe000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb700a000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb6ff0000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6ebe000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6eac000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6dba000)
        libm.so.6 => /lib/i686/libm.so.6 (0xb6d94000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6d76000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb6d5e000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb6c0c000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6bec000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6be8000)
        /lib/ld-linux.so.2 (0xb7754000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6be4000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6bdd000)

My Libstdc
Code:
[ai@Mandriva_2010_Spring bin]$ rpm -qa | grep libstdc++
libstdc++-devel-4.4.3-2mnb2
libstdc++5-3.3.6-4mdv2009.0
libstdc++6-4.4.3-2mnb2
Btw, which deb package that have libstdc++.so.6 version 3.4.14 ?
try googling it, but i got nothing... >.<



Okey I will re trace it,
i don't realy understand, but i will do my best to try again.
and here the result:
setup gdb:
Code:
[ai@Mandriva_2010_Spring bin]$ gdb pcsx2-dbg
GNU gdb (GDB) 7.1-1mdv2010.1 (Mandriva Linux release 2010.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg...done.
(gdb) run
Starting program: /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg
[Thread debugging using libthread_db enabled]
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Detaching after fork from child process 11628.
Detaching after fork from child process 11629.
Detaching after fork from child process 11630.
Command line parsing...
Command line parsed!
[New Thread 0xb6077b70 (LWP 11631)]
Detaching after fork from child process 11632.
[New Thread 0xb5622b70 (LWP 11633)]
[Thread 0xb5622b70 (LWP 11633) exited]
^C
Program received signal SIGINT, Interrupt.
0xffffe424 in __kernel_vsyscall ()
Missing debug package(s), you should install: SDL12-debug-1.2.14-3mdv2010.2.i586 aalib-debug-1.4.0-0.rc5.19mdv2010.1.i586 atk1.0-debug-1.30.0-1mdv2010.1.i586 cairo-debug-1.9.14-0.2mdv2010.1.i586 directfb-debug-1.4.3-2mdv2010.1.i586 fontconfig-debug-2.8.0-2mdv2010.1.i586 freetype2-debug-2.3.12-1.5mdv2010.1.i586 gcc-debug-4.4.3-2mnb2.i586 glib2.0-debug-2.24.1-1mdv2010.1.i586 glibc-debug-2.11.1-8.2mnb2.i586 gtk+2.0-debug-2.20.1-1mdv2010.1.i586 ia_ora-gnome-debug-1.0.24-1mdv2010.1.i586 jbigkit-debug-2.0-4mdv2010.1.i586 libart_lgpl-debug-2.3.21-1mdv2010.1.i586 libcanberra-debug-0.24-2mdv2010.1.i586 libggi-debug-2.2.2-14mdv2010.1.i586 libgii-debug-1.0.2-13mdv2010.1.i586 libgnomecanvas-debug-2.30.1-1mdv2010.1.i586 libgnomeprint-debug-2.18.7-1mdv2010.1.i586 libgnomeprintui-debug-2.18.5-1mdv2010.1.i586 libice-debug-1.0.6-2mdv2010.1.i586 libjpeg-debug-8a-1mdv2010.1.i586 libogg-debug-1.2.0-1mdv2010.1.i586 libpng-debug-1.2.43-1.1mdv2010.1.i586 libsm-debug-1.1.1-2mdv2010.1.i586 libtiff-debug-3.9.2-2.2mdv2010.1.i586 libtool-debug-2.2.6b-2mdv2010.1.i586 libvorbis-debug-1.3.1-1mdv2010.1.i586 libx11-debug-1.3.3-1mdv2010.1.i586 libxau-debug-1.0.5-2mdv2010.1.i586 libxcb-debug-1.6-1mdv2010.1.i586 libxcomposite-debug-0.4.1-1mdv2010.1.i586 libxcursor-debug-1.1.10-2mdv2010.1.i586 libxdamage-debug-1.1.2-1mdv2010.1.i586 libxdmcp-debug-1.0.3-2mdv2010.1.i586 libxext-debug-1.1.1-2mdv2010.1.i586 libxfixes-debug-4.0.4-1mdv2010.1.i586 libxi-debug-1.3-1mdv2010.1.i586 libxinerama-debug-1.1-1mdv2010.1.i586 libxml2-debug-2.7.7-1.1mdv2010.1.i586 libxrandr-debug-1.3.0-3mdv2010.1.i586 libxrender-debug-0.9.5-2mdv2010.1.i586 libxxf86dga-debug-1.1.1-1mdv2010.1.i586 libxxf86vm-debug-1.1.0-1mdv2010.1.i586 ncurses-debug-5.7-4.20091227.1mdv2010.1.i586 pango-debug-1.28.0-1mdv2010.1.i586 pcre-debug-8.02-1mdv2010.1.i586 pixman-debug-0.18.2-1mdv2010.1.i586 slang-debug-2.2.2-1mdv2010.1.i586 tdb-debug-1.2.1-1mdv2010.1.i586 zlib-debug-1.2.3-15mdv2010.1.i586
(gdb) break SDL_video.c:1112
Breakpoint 1 at 0xb4733e66: file /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c, line 1112.
(gdb) break SDL_VideoInit
Breakpoint 2 at 0xb473280a: file /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c, line 419.
(gdb)

Then run it again, then boot the cd, i got:
Code:
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/ai/Game/pcsx2-svn/bin/pcsx2-dbg
[Thread debugging using libthread_db enabled]
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Detaching after fork from child process 14495.
Detaching after fork from child process 14496.
Detaching after fork from child process 14497.
Command line parsing...
Command line parsed!
[New Thread 0xb6077b70 (LWP 14498)]
Detaching after fork from child process 14499.
[New Thread 0xb5622b70 (LWP 14500)]
[Thread 0xb5622b70 (LWP 14500) exited]
[New Thread 0xb5622b70 (LWP 14506)]
[New Thread 0xaa02bb70 (LWP 14507)]
[Switching to Thread 0xaa02bb70 (LWP 14507)]

Breakpoint 1, SDL_CreateWindow (title=0xa91ded4 "PCSX2", x=100, y=100, w=640, h=480, flags=38)
    at /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:1112
1112        if (!_this) {
Missing debug package(s), you should install: dbus-debug-1.2.24-1mdv2010.1.i586 expat-debug-2.0.1-12mdv2010.1.i586 gvfs-debug-1.6.1-2mdv2010.1.i586 udev-debug-153-5mnb2.i586
(gdb)

Then type command step
i got:
Code:
(gdb) step
1114            if (SDL_VideoInit(NULL) < 0) {

Press Ctrl-x + A, i got:
Source code /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c
and it point to line 1114 if (SDL_VideoInit(NULL) < 0) {

Then Type command next, somehow, File Pull down menu is showup in Pcsx2,
And after that it's make my KDE3 Desktop Freeze, only can move mouse cursor, then i Ctrl+Alt+F1 , login in there, then ps ax | grep pcsx2, then kill pcsx2-dbg
now i have control to my desktop.
Here what i got:
Source: /home/ai/Game/pcsx2-svn/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c
and it point to line 1123 if (flags & SDL_WINDOW_OPENGL) {

Because i have killed the pcsx2-dbg, i quit gdb from here.



(04-09-2011, 04:56 AM)pcsx2fan Wrote: [ -> ]Has anyone ever noticed the Revision Number is always r0 in the linux build of pcsx2 0.9.7?

At r4557, It's "PCSX2 0.9.7.0 (svn) Apr 9 2011" in emulator window title, and "PCSX2 0.9.7.r0 - compiled on Apr 9 2011" printed in console window(Misc -> Show Console).

This problem is also exisiting in official beta r3881.

My Linux is Ubuntu 10.10 x86.

hey you right, i never notice that.
(04-09-2011, 05:27 AM)patrickdinh Wrote: [ -> ]For the build process in Windows, pcsx2's msvc project uses a tool called SubWCRev to get the revision number of the checkout. That tool comes from TortoiseSVN, and isn't included in the Apache Subversion package.

Because SubWCRev isn't present in Linux (it can also be true for Windows users, like me, since I don't use TortoiseSVN), the svn revision number can't be determined, so it is set to zero.

But I remember the linux build of legacy gui aka 0.9.6 has revision number attached correctly.
I've no idea what happened on revision number from 0.9.6 to 0.9.7.
tuxgamer replace the last next with a step too. Next = execute 1 line. Step = execute 1 instruction. A function contains several instruction. If you use next, you will execute all instructions of the function in one go. If you use step you can execute each instruction of the function.

In linux it uses svn tools. I do not remember if it must work or not. I will give it a look.

For libstd++, it is the gcc 4.6 versions...

Edit: sorry I cannot downgrade it to gcc 4.5
(04-09-2011, 09:23 AM)pcsx2fan Wrote: [ -> ]But I remember the linux build of legacy gui aka 0.9.6 has revision number attached correctly.
I've no idea what happened on revision number from 0.9.6 to 0.9.7.

The legacy version used a different build system and had a hack in place that ran "svn info" and snagged the revision number from it. That hack never got re-implemented in the new build system...
I remember now. The hack works with Cmake but not with Codeblock. With my debian package it needed an another hack layer. Because it is not so important, we just forget about it Smile

Edit: I add a define for cmake. If you have svn installed it will print the revision number.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35