PCSXR-Xenon (PS1 Emulator) - compiling problems

Ask/talk about LibXenon Development/Compiling
nessy74

PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby nessy74 » Sat Aug 04, 2012 12:43 am

PCSXR-Xenon (PS1 Emulator) - compiling problems

Hallo.
I use Ubuntu 12.04 (precise) 32-bit i686

================
I compiled Libxenon Toolchain from there:
http://free60.org/Compiling_the_Toolchain

and performed
./build-xenon-toolchain libs (installed: libxenon + bin2s + zlib + libpng + bzip2 + freetype)

after installing some missing files copied manually from the repositories:
git://github.com/gligli/libxenon.git
git://github.com/sk1080/libxenon-testing.git
git://free60.git.sourceforge.net/gitroot/free60/free60
here: / usr / local / xenon / usr / include - need to copy these folders from here:
(initially did NOT overwrite files that are already there, we'll see)
libxenon_gligli / libxenon / drivers / diskio (by the way "ata.h" - various)
libxenon_gligli / libxenon / drivers / fat (it was not there at all)
libxenon_gligli / libxenon / drivers / newlib (was empty)
libxenon_sk1080 / libxenon / drivers / threads (it was not there at all)
libxenon_free60 / libxenon / drivers / nocfe (by the way "cfe.h" - various)

now we have to install these libraries for Xenon (file systems):
https://github.com/LibXenonProject/xtaflib
https://github.com/LibXenonProject/ext2fs-xenon
https://github.com/LibXenonProject/ntfs-xenon
https://github.com/LibXenonProject/fat-xenon
unpack the files in any folder, then run for each folder:
make> and then: make install
will be created and filled with folders:
/ usr / local / xenon / usr / include / libfat
/ usr / local / xenon / usr / include / libntfs
/ usr / local /xenon / usr / include / libext2
/ usr / local / xenon / usr / include / libxtaf

Then you need to install the library ZLX index.php?topic=154 - it will not install without installing "libext2" (see above)
make-f Makefile_lib
make-f Makefile_lib install
created and filled a folder: / usr / local / xenon / usr / include / zlx

. / build-xenon-toolchain cube
successfully compiled file cube.elf32

==========================
then I try to compile PCSXR-Xenon (PS1 Emulator):

LibXenonProject-pcsxr-xenon-26993d9.zip    https://github.com/LibXenonProject/pcsxr-xenon
ERROR:
linking ... LibXenonProject-pcsxr-xenon-26993d9.elf
sys.o:(.data.plugins+0x42c): undefined reference to `PEOPS_SPUinit'
sys.o:(.data.plugins+0x434): undefined reference to `PEOPS_SPUshutdown'
sys.o:(.data.plugins+0x43c): undefined reference to `PEOPS_SPUopen'
sys.o:(.data.plugins+0x444): undefined reference to `PEOPS_SPUclose'
sys.o:(.data.plugins+0x44c): undefined reference to `PEOPS_SPUsetConfigFile'
sys.o:(.data.plugins+0x454): undefined reference to `PEOPS_SPUabout'
sys.o:(.data.plugins+0x45c): undefined reference to `PEOPS_SPUtest'
sys.o:(.data.plugins+0x464): undefined reference to `PEOPS_SPUwriteRegister'
sys.o:(.data.plugins+0x46c): undefined reference to `PEOPS_SPUreadRegister'
sys.o:(.data.plugins+0x474): undefined reference to `PEOPS_SPUwriteDMA'
sys.o:(.data.plugins+0x47c): undefined reference to `PEOPS_SPUreadDMA'
sys.o:(.data.plugins+0x484): undefined reference to `PEOPS_SPUwriteDMAMem'
sys.o:(.data.plugins+0x48c): undefined reference to `PEOPS_SPUreadDMAMem'
sys.o:(.data.plugins+0x494): undefined reference to `PEOPS_SPUplayADPCMchannel'
sys.o:(.data.plugins+0x49c): undefined reference to `PEOPS_SPUfreeze'
sys.o:(.data.plugins+0x4a4): undefined reference to `PEOPS_SPUregisterCallback'
sys.o:(.data.plugins+0x4ac): undefined reference to `PEOPS_SPUregisterCDDAVolume'
sys.o:(.data.plugins+0x4b4): undefined reference to `PEOPS_SPUasync'
collect2: ld returned 1 exit status
make[1]: *** [/home/alex/sources/LibXenonProject-pcsxr-xenon-26993d9/LibXenonProject-pcsxr-xenon-26993d9.elf] Error 1

Help me please.
Last edited by nessy74 on Mon Aug 13, 2012 12:57 am, edited 1 time in total.

nessy74

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby nessy74 » Mon Aug 13, 2012 1:00 am

Topic updated.

sk1080

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby sk1080 » Mon Aug 13, 2012 1:23 am

Which repo did you start with, there shouldn't have been missing files

drivers/threads shouldn't exist at all unless you are using a threaded libxenon

ravendrow

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby ravendrow » Mon Aug 13, 2012 4:14 am

i can confirm the same issue using the libxenon repo from free60project

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby Ced2911 » Mon Aug 13, 2012 9:07 am

oops
:)
added plugin back

gui isn't tested, compatibity is better but speed is slower (5 -> 10%) ...

nessy74

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby nessy74 » Mon Aug 13, 2012 12:48 pm

[quote="sk1080"]
Which repo did you start with, there shouldn't have been missing files

drivers/threads shouldn't exist at all unless you are using a threaded libxenon
[/quote]

i use that repo:
https://github.com/Free60Project/libxenon
and manually copied the folder "threads" from that repo:
https://github.com/sk1080/libxenon-testing
because when compiling some sources of emulators require the presence of library "threads"

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby Ced2911 » Mon Aug 13, 2012 1:52 pm

the libxenon-testing - branch gdb from sk1080,
should work with every homebrew without major issues, it's in experimention but it's working

sk1080

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby sk1080 » Mon Aug 13, 2012 6:48 pm

I thought PCSXR wasn't threaded

Also any homebrew that uses network and isn't ready for threads will fail on my repo

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby Ced2911 » Mon Aug 13, 2012 7:19 pm

yop it's not threaded but it work with :p

sk1080

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby sk1080 » Mon Aug 13, 2012 7:23 pm

Then we should have said:

You can just remove the include for <threads/threads.h>

nessy74

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby nessy74 » Thu Aug 16, 2012 1:22 pm

[quote=&quot;Ced2911&quot;]the libxenon-testing - branch gdb from sk1080,should work with every homebrew without major issues, it's in experimention but it's working[/quote]

[quote=&quot;sk1080&quot;]drivers/threads shouldn't exist at all unless you are using a threaded libxenon[/quote]

[quote=&quot;sk1080&quot;]You can just remove the include for <threads/threads.h>[/quote]

OK, now I use toolchain and libs compiled from https://github.com/sk1080/libxenon-testing/tree/gdb
(sk1080-libxenon-testing-70cd89b.zip)
After compiling it appeared a folder: /usr/local/xenon/usr/include/threads  - with these files inside:
breakpoint.h / cond.h / debug_defines.h / debug.h / gdb.h / gdbroutines.h / mutex.h / threads.h

Before the start "make" in clear unpacked "LibXenonProject-pcsxr-xenon-26993d9.zip"
from https://github.com/LibXenonProject/pcsxr-xenon
I searched for the source files phrase threads.h and did not find it anywhere.
After unsuccessful "linking ... LibXenonProject-pcsxr-xenon-26993d9.elf"
and got the same errors: http://libxenon.org//viewtopic.php?p=1972#p1972
I found phrase "threads.h" in these files:

LibXenonProject-pcsxr-xenon-26993d9/build/httpd.d
line 17:  /usr/local/xenon/usr/include/threads/threads.h \
line 59:  /usr/local/xenon/usr/include/threads/threads.h:

LibXenonProject-pcsxr-xenon-26993d9/build/tftp.d
line 16: /usr/local/xenon/usr/include/threads/threads.h \
line 59: /usr/local/xenon/usr/include/threads/threads.h:

Now what I must do to successfully compile the .elf ?
Last edited by nessy74 on Thu Aug 16, 2012 1:24 pm, edited 1 time in total.

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby Ced2911 » Fri Aug 17, 2012 3:42 pm

git pull

ravendrow

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby ravendrow » Fri Aug 17, 2012 7:22 pm

ok so just messing around with this error i changed
https://github.com/Ced2911/pcsxr-xenon/ ... /sys.c#L21

to

SPU_XENON_PLUGIN,

cause i figured that if the problem was in sys.o i should probably check sys.c and it got rid of that stupid peops error and the files compile but when i try to run the pcsxr-xenon.elf32 it starts to load and then Xell just resets i am gonna try commenting it cause SPU_XENON_PLUGIN is already listed above

oh btw i compiled it using the libxenon on free60s git hub
Last edited by ravendrow on Fri Aug 17, 2012 7:37 pm, edited 1 time in total.

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby Ced2911 » Sat Aug 18, 2012 11:19 am

there is no gui, you'll have to edit path by yourself

ravendrow

Re: PCSXR-Xenon (PS1 Emulator) - compiling problems

Postby ravendrow » Sat Aug 18, 2012 10:58 pm

so it is supposed to be using the xenon_audio_repair folder for SPU right? i tried to switch it to xenon_audio_repair110 folder (because PEOPS SPU stuff is there) and changed both SPU plugins to PEOPS but same thing compiled elf32 starts to run then just resets. also tried adding the xenon_audio_repair110 folder to SPU libs in the makefile but that just caused conflicts

[quote=&quot;Ced2911&quot;]
there is no gui, you'll have to edit path by yourself
[/quote]

what happened to the GUI??? :( lmao

so i tried un-commenting GUI_FLAGS :=  -DUSE_GUI in the makefile but that didn't help, not that i thought it would just took a stab at it lol so what paths do i need to set to get this thing up and going? thanks for taking time with this Ced2911 it's good to see you still poking around :)


Return to “LibXenon”

Who is online

Users browsing this forum: No registered users and 1 guest