Trouble compiling PCSX with Cygwin {../PsxBios.o} Error -1

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Trouble compiling PCSX with Cygwin {../PsxBios.o} Error -1

Post by OneThirty8 »

...trying to compile PCSX 1.4 source code for the DC
I got Cygwin installed, the Sh4/Arm tool chain from the Dev pages, and KOS... had some trouble getting it all set up because none of the tutorials I've found are complete and I'm a newbie, but I think I finally almost have it. I have the environ-dc.sh in my Cygwin root directory, i've tried both . ./environ-dc.sh and source environ-dc.sh ( like it says in the KOS docs on compiling KOS) with the same result.

Anyway, here's what I get but I can't find my pscx.elf anywhere so i don't think it's working yet.

rm -f pcsx.elf romdisk.*
/usr/local/dc/sh-elf/bin/sh-elf-gcc -Wall -g -ml -m4-single-only -02 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls -Wcast-align -D__DREAMCAST__ -DPCSX_VERSION=\"1.4"\ -DLOG_STDOUT -I. -I.. -I../Cpu/sh4 -D_arch_deamcast -Ic:/cygwin/usr/local/dc/kos/bin/include -Ic:/cygwin/usr/local/dc/kos/bin/libc/include -Ic:/cygwin/usr/local/kos/bin/kernel/arch/dreamcast/include -c ../PsxBios.c -o ../PsxBios.o
Make.exe: *** [../PsxBios.o] Error -1.
Any ideas what is causing the error? I'm really new at this and although I'm usually good at troubleshooting things even when I have no idea what i'm doing, this one has me stumped
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

yeap hang on ill find the code
http://www.dcemulation.org/phpBB/viewto ... ht=#187525 has the needed info
i had the same problem at first

ok view this topic for the info if you need the edited source files ill post them ok?
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Thanks for the link. I edited the source files. Still, I get the same error... no clue what i'm doing wrong. :?
Probably something stupid that i'll smack myself in the head for later... I'll keep trying.
Thanks again for the help.
138
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Ok, I've tried compiling other stuff tonight with the same problem. It won't make anything.o when it's supposed to, then gives me Error -1 and stops. I tried the examples that came with kos 1.1.8 and nothing worked. I tried with 1.1.8 and 1.1.9, both compiling examples and PCSX.... Going out now to get away from the computer for a while and get some dinner.... Then i'm gonna check and see if maybe my Cygwin installation is missing anything, but I think I have everything I'm supposed to need.
ssj4goku128
Insane DCEmu
Insane DCEmu
Posts: 290
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by ssj4goku128 »

Did you make genromfs? You need to compile that first and the library as well.
"So I gotta be carefull, can't let tha evil of tha money trap me
so when ya see me #@#$%
ya better holla at me "

Tupac Shakur[1971-1996]
Makaveli[1996-????]
ssj4goku128
Insane DCEmu
Insane DCEmu
Posts: 290
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by ssj4goku128 »

Can you post the whole info[like a page worth of info that comes with the compilation]?
"So I gotta be carefull, can't let tha evil of tha money trap me
so when ya see me #@#$%
ya better holla at me "

Tupac Shakur[1971-1996]
Makaveli[1996-????]
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Basically, my computer spits back the same exact thing I typed up above every single time I try to compile. Here's where I think I may be screwing up.
genromfs spits a bunch of errors at me, but does create genromfs.o (that's the target in the makefile, right?)
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Uggghhhh! I think my 'missing lib' was screwed up. I was setting up KOS and PCSX again in case I screwed something up there. Downloaded the missing lib again (stupid me deleted the other one and forgot i didn't have it backed up) and all i have now is a file called 'Unknown.001' Anywhere else I can get the lib as maybe a .zip or .rar? Or a makefile that will work with the PeopSoft GPU source code? (tried using the makefile that came with, didn't work either.)

After dinner I'll post all the errors I've gotten so far with genromfs. Errors w/pcsx are exactly what's above in my first post. Maybe a good copy of the missing lib is all i'm, um, missing.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

OK, I made genromfs ok and I don't remember what it said leading up to the error last time. I just went and downloaded a bunch of cygwin stuff over again, and used the KOS 1.1.9 source this time. I got the whole KOS library compiled except for vqenc for some reason. I also got some of the examples i downloaded to work i think. I've got .elf's in a few directories that I gotta look at tomorrow. My main problem now, aside from that one thing that I had to skip past when it wouldn't make, is that the GPU archive I downloaded is totally f*'d up. I've tried it several times on a couple of machines to no avail... going to bed now. Maybe i'll try downloading that missing lib again in the morning and figure out why vqenc is the only thing that didn't make...
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

I can build kos 1.18 with no errors and compile psxdc when i made the changes to the source but i made a few changes to the source if you wnat the proper edited files ill send them to you


kos 1.19 gives me errors as well IM looking in to it report later
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Since I'm not the only person having probs with the latest KOS, I'll try compiling KOS 1.1.8 then.
If you want to send me those files, that would be really cool. I really appreciate all the help.

Thanks.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

OK, I got KOS 1.18 to compile without errors. All I need is the 'missing lib' for PCSXDC but my winzip won't extract it into anything usable. Anyone else having this problem or is it just me?
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

when you first unpack it name the file that unpacks somethink.tar (insert name).tar

the file inside is a tar file that needs to be unpacked as well
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

:D :D :D :D
THANK YOU!!! I've now got a pcsx.elf to try out after all these days of trying to figure this out!

I knew I was missing something that was right there under my nose. Thanks so much for taking the time to help me out.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

no worrys any time what changes are you going to do to the source have any ideas ?
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

I don't know yet what I can do with it. I'm still really new at all of this, and at this point I'm trying to make sure I have a set-up that works. I'm really excited about PCSX DC, so I thought a good place to start would be trying to compile it. Once I can get to a point where I better understand what I'm doing, I'll see what I can contribute. (Hopefully something cool)
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

IM quiet new to this style of programing as well trying to use this as a tool to help me learn more its why i started doing this again wish you luck theres a few things can be done to the source . trying to convert the video mode to pvrdma would speed it up
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Thanks for the encouragement.
I keep reading about how PVR will add a lot of speed to this emulator, so I'd like to look into that. I'm also curious about a sound plugin, but first the games would have to be faster for sound to really matter to me and I understand sound for the DC is pretty hard. I'm just happy this is being worked on and I'm excited to see how far it can go. That's why I picked this emulator to look at to try and see just what's involved in projects like this. It's really impressive.
ventress
DCEmu Freak
DCEmu Freak
Posts: 96
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by ventress »

I'd just like to say I know pretty much sod all about programming but wish to offer my support.

Keep it up guys.
q_006
Mental DCEmu
Mental DCEmu
Posts: 415
Joined: Thu Oct 10, 2002 7:18 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by q_006 »

what does sod mean?
Post Reply