Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PCSX2 for Fedora
#31
The idea is to used the original wxwidget. But for the moment it is not important.

It seems to failed to load some symbols, that strange because symbols are standard (libc or libstd++). I do not have this issue on my system but myabe the reason why it complains about pre loading.

Edit: I think I need to link more libs during the build...

Edit: ok try to add this 2 lines after the add_library command
target_link_libraries(${Output} dl)
target_link_libraries(${Output} m)
Reply

Sponsored links

#32
same result Sad

Code:
$ LD_PRELOAD="/home/rpmbuild/pcsx2-read-only/3rdparty/SDL-1.3.0-5387/libpcsx2_SDL.so" ~/pcsx2-read-only/bin/pcsx2-dbg
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/rpmbuild/pcsx2-read-only/bin/portable.ini
terminate called after throwing an instance of 'R5900Exception::TLBMiss'
Aborted (core dumped)
Reply
#33
Hum, first try with a standard load, you will do preload later. Append the path to libpcsx2_SDL.so to the variable LD_LIBRARY_PATH. For example
Code:
export LD_LIBRARY_PATH="/mnt/playstation/emulateur/package/pcsx2.snapshot-4863/obj-x86_64-linux-gnu/3rdparty/SDL-1.3.0-5387:$LD_LIBRARY_PATH"
Reply
#34
Code:
$ export LD_LIBRARY_PATH="/home/rpmbuild/pcsx2-read-only/3rdparty/SDL-1.3.0-5387:$LD_LIBRARY_PATH"
$ ./pcsx2-dbg
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/rpmbuild/pcsx2-read-only/bin/portable.ini
Releasing host memory maps for virtual systems...

Then a PCSX2 message box comes up:

"The configured GS plugin is not a valid dynamic library

/home/rpmbuild/pcsx2-read-only/bin/plugins/libGSdx-0.1.16.so

Press Ok to go to the Plugin Confirmation Panel"

Reply
#35
Hum, try to look at the log file it probably miss others symbol (glib ?). Note I do not use portable.ini file, might be the reason.
Reply
#36
(08-15-2011, 09:20 PM)gregory Wrote: Hum, try to look at the log file it probably miss others symbol (glib ?). Note I do not use portable.ini file, might be the reason.

Which log? /bin/logs/emuLog gives

Code:
PCSX2 0.9.9.r4871  - compiled on Aug 15 2011
Savestate version: 0x9a030000

Host Machine Init:
    Operating System =  Linux 2.6.38.8-35.fc15.i686.PAE i686
    Physical RAM     =  1001 MB
    CPU name         =  AMD Athlon(tm) 64 Processor 4000+
    Vendor/Model     =  AuthenticAMD (stepping 02)
    CPU speed        =  2.409 ghz (1 logical thread)
    x86PType         =  Standard OEM
    x86Flags         =  078bfbff 00000001
    x86EFlags        =  e3d3fbff

x86 Features Detected:
    MMX.. SSE.. SSE2.. SSE3
    MMX2  .. 3DNOW .. 3DNOW2

Installing POSIX SIGSEGV handler...
Mapping host memory for virtual systems...
    EE Main Memory                   @ 0x20000000 -> 0x22884000 [40mb]
    IOP Main Memory (2mb)            @ 0x24000000 -> 0x24211000 [2mb]
    VU0/1 on-chip memory             @ 0x28000000 -> 0x2800A000 [40kb]
Reserving memory for recompilers...
    SuperVU0 Recompiler Cache        @ 0x0E800000 -> 0x0F000000 [8mb]
    SuperVU1 Recompiler Cache        @ 0x0F000000 -> 0x0F800000 [8mb]
    Micro VU0 Recompiler Cache       @ 0x3C000000 -> 0x40000000 [64mb]
    Micro VU1 Recompiler Cache       @ 0xB0F9D000 -> 0xB4F9D000 [64mb]
    R5900-32 Recompiler Cache        @ 0x30000000 -> 0x34000000 [64mb]
    R3000A Recompiler Cache          @ 0x34000000 -> 0x36000000 [32mb]
    VIF0 Unpack Recompiler Cache     @ 0x36000000 -> 0x36800000 [8mb]
    VIF1 Unpack Recompiler Cache     @ 0x38000000 -> 0x38800000 [8mb]

Loading plugins...
    Binding GS    : /home/rpmbuild/pcsx2-read-only/bin/plugins/libGSdx-0.1.16.so
(pxActionEvent) (LoadSinglePluginEvent) The configured GS plugin file is not a valid dynamic library(LoadCorePlugins)

/home/rpmbuild/pcsx2-read-only/bin/plugins/libGSdx-0.1.16.so
(GameDB) 9535 games on record (loaded in 1212ms)
User-canceled plugin configuration; Plugins not loaded!
(GameDB) Unloading...
Reply
#37
Hum no clue. And what tell you ldd ./bin/plugins/libGSdx-0.1.16.so ? did it found all libs
Reply
#38
Not finding libpcsx2_SDL.so

Code:
$ ldd ./plugins/libGSdx-0.1.16.so
        linux-gate.so.1 =>  (0x00b20000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0x00110000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x00ee7000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00118000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00a52000)
        libpcsx2_SDL.so => not found
        libdl.so.2 => /lib/libdl.so.2 (0x00b59000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c72000)
        libm.so.6 => /lib/libm.so.6 (0x00f6a000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a63000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00f05000)
        libc.so.6 => /lib/libc.so.6 (0x00f94000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00251000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00be9000)
        /lib/ld-linux.so.2 (0x45da9000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00256000)
Reply
#39
Hum LD_LIBRARY_PATH seems to be wrong. You must ensure that you have libpcsx2_SDL.so in /home/rpmbuild/pcsx2-read-only/3rdparty/SDL-1.3.0-5387
The best is to do a "find /home/rpmbuild/pcsx2-read-only/ -iname libpcsx2_SDL.so"
Reply
#40
(08-15-2011, 01:03 PM)Gumbo Wrote: Thanks for doing all this work Seve, a really professional job Smile

I'm not aware of an upload limit that would preclude you uploading an srpm.

How did you compile your source? the spec file doesn't seem immediately compatible with a source compiled using gregory's "create_pcsx2_tarball_from_svn_repository.sh" script which cuts out a lot of deprecated plugins, windows stuff and other licensing problems (available in the svn repository but I've attached a copy for your convenience). I've set to work modifying your spec file to take account of this - I'll post when I'm done.

...

okay all done: it builds fine and seems to run okay on a clean install.
I'll top post the new rpms for the time being, but look over what I've done with the spec - I don't think I've altered it much - but you may disagree.

Smile

Go ahead and fee free to change what ever you like.
You may want to ensure that any changes you make, successfully pass by both a
mock build and rpmlint error free.
That is, if you wish to submit the final build to rpmfusion for inclusion at some point.
There is still one outstanding issue and that was the with the installation of
/usr/bin/Docs/*.pdf
Packaging guidelines prohibit creating sub-directories in /bin

However, I was unable to install it elsewhere and have the Application find them.
I have attached a picture of the error generated.

My spec file also built the application using Fedora libraries which I think you will find is the preferred method for package acceptance. The only exception was for SDL, which used the included 1.3x snapshot.
I was not able to successfully build the GSdx plugin without using the Internal SDL snapshot.

Code:
-- Internal SDL is a development snapshot of libsdl 1.3
    Crashes can be expected and no support will be provided
-- Found Freetype: /usr/lib/libfreetype.so
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found ALSA: /usr/lib/libasound.so
-- Found BZip2: /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Found OpenGL: /usr/lib/libGL.so
-- Found Subversion: /usr/bin/svn (found version "1.6.17")
-- Found wxWidgets: TRUE
-- Found ZLIB: /usr/include (found version "1.2.5")
-- Found Cg: /usr/lib/libCg.so;/usr/lib/libCgGL.so
-- Found GLEW: /usr/lib/libGLEW.so
-- Found PortAudio: /usr/lib/libportaudio.so
-- Found SoundTouch: /usr/lib/libSoundTouch.so
-- Found SparseHash: /usr/include
-- Use internal pcsx2 SDL library
-- Configuring done
-- Generating done
-- Build files have been written to:

Code:
[  2%] Built target translations_pcsx2_Iconized
[  4%] Built target translations_pcsx2_Main
[ 26%] Built target pcsx2_SDL
[ 32%] Built target Utilities
[ 34%] Built target x86emitter
[ 34%] Built target bin2cpp
[ 69%] Built target pcsx2
[ 70%] Built target CDVDiso
[ 72%] Built target CDVDlinuz
[ 72%] Built target CDVDnull
[ 72%] Built target dev9null-0.5.0
[ 73%] Built target FWnull-0.7.0
[ 83%] Built target GSdx-0.1.16
[ 84%] Built target GSnull
[ 86%] Built target onepad-1.1.0
[ 87%] Built target PADnull
[ 87%] Built target SPU2null
[ 92%] Built target spu2x-2.0.0
[ 92%] Built target USBnull-0.7.0
[ 98%] Built target zzogl-0.3.0
[100%] Built target zerospu2

I can't upload the src rpm due to size restrictions, but, it's not really needed,


You might also want to note in the installation [Top of Post] that people need to
have the rpmfusion repositories installed to allow yum localinstall to resolve all the dependencies.






Attached Files Thumbnail(s)
   
Reply




Users browsing this thread: 1 Guest(s)