Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make Makefile.win #1

Open
Sonny-Dreams opened this issue Nov 10, 2018 · 24 comments
Open

Can't make Makefile.win #1

Sonny-Dreams opened this issue Nov 10, 2018 · 24 comments

Comments

@Sonny-Dreams
Copy link

Hello,

I have been trying to compile gsuploader on windows. Is using nmake in visual studio the easiest way? I keep getting this error

"NMAKE : fatal error U1073: don't know how to make 'all-before'
Stop."

@ppcasm
Copy link
Owner

ppcasm commented Nov 10, 2018 via email

@Sonny-Dreams
Copy link
Author

Wow thanks for responding so quickly! I installed an older version of devcpp but it can't compile on my computer (I'd probably need a virtual machine).

Yeah I already learned the hard way about the V3,3 parallel port. I read somewhere that all 3.3's in a shiny case have the right parts. When I looked inside mine, it was missing everything. I then got a V3.2 and it seems like it will work. My main problem is trying to get a parallel port. I cannot find that moschip dongle on ebay or amazon. I think it might actually be easier for me to find an old computer from a salvage store.

If you could compile the windows binary that would be amazing

@ppcasm
Copy link
Owner

ppcasm commented Nov 11, 2018 via email

@ppcasm
Copy link
Owner

ppcasm commented Nov 15, 2018 via email

@Sonny-Dreams
Copy link
Author

Yeah I ordered it, but it isn't in yet. Yeah I don't wanna deal with finding an old computer that has a parallel port haha. I'll try it out as soon as it gets in

@ppcasm
Copy link
Owner

ppcasm commented Nov 15, 2018 via email

@ppcasm
Copy link
Owner

ppcasm commented Nov 15, 2018 via email

@Sonny-Dreams
Copy link
Author

Ok I got my cable in and I successfully compiled the code on linux. However, I keep getting "failed to locate/open device".

My parallel port shows up as "Bus 001 Device 007: ID 9710:7705 MosChip Semiconductor MC7705 Parallel Port Adapter". I tried using MicroMachines with codegeneration on but I keep getting the same error. For some reason non of my other games will boot up with my game shark. I somehow lost my Mario 64 copy

Do you think it's a problem with it finding the adapter? Or do I just need to try another game

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018 via email

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018 via email

@Sonny-Dreams
Copy link
Author

Ok I just got Starfox to startup. I had to install libusb1.0-dev in order to get the "make" command to work.

I actually just took the plastic case off of the gameshark so that the post connectors didn't stop the connector from touching

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

It still isn't recognizing? I wonder if there's another driver that needs to be blacklisted or something. You definitely have the right adapter and hardware

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

Yeah, I usually take a pair of channel locks and bend them outward until they break so they have a downward recess

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

Wait... Are you running as sudo?

@Sonny-Dreams
Copy link
Author

Yep! Just realized I needed to run as sudo. Oh man. It interupted starfox and tried to load but then I got "async transfer failed: LIBUSB_TRANSFER_TIMED_OUT"

I'm just gonna test it a few more times. I think I am really close

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

Yeah, it's tricky. You have to pay attention to where you upload code, and where things are compiled to run at entry and what not. I can't remember if a crash gives that error or not, but the tricky part is trying to find a good area to upload to that doesn't corrupt the game while it's running, or other useful things. It's a balancing act that would probably be better suited to have another loader reside in the very end of expansion ram that's unlikely to be used under normal circumstances and have that do the loading. But for now we rely on the gameshark built in funcs.

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

The best idea is to test with neon64 first

@Sonny-Dreams
Copy link
Author

Yeah I have been testing with neon64. Ill try again tomorrow.

image

This is the output from two different tries

@ppcasm
Copy link
Owner

ppcasm commented Nov 18, 2018

Did you try micromachines game? I'll have to see what it does because I can't remember if comms getting corrupted will cause this error, or if it's something in libusb/somewhere else. I'm thinking it's corrupting the game/comms though.

@ppcasm
Copy link
Owner

ppcasm commented Nov 19, 2018 via email

@Sonny-Dreams
Copy link
Author

Sorry had more time today. It crashes around the same point in Starfox, Pilotwings, and Micro Machines. I think its something in libusb

@Sonny-Dreams
Copy link
Author

Actually I think it may be because I am running linux inside a VM and the timings might be messed up. I will play with some of the VM settings to see if I can change anything

@Sonny-Dreams
Copy link
Author

I got it to work! I added an extension to Virtualbox to support usb3.0 and I started the upload while in the middle of a game in Pilotwings

@ppcasm
Copy link
Owner

ppcasm commented Nov 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants