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

N64 Linker #23

Open
SonicTheHedgeHog64 opened this issue Feb 27, 2025 · 10 comments
Open

N64 Linker #23

SonicTheHedgeHog64 opened this issue Feb 27, 2025 · 10 comments

Comments

@SonicTheHedgeHog64
Copy link

how would one set this up

@mountainflaw
Copy link
Contributor

what do you mean

@SonicTheHedgeHog64
Copy link
Author

i need to setup a n64 linker

@SonicTheHedgeHog64
Copy link
Author

for the object files

@mountainflaw
Copy link
Contributor

The makefile for this already generates object files. You should be good to go once you add them to your project and reference the symbols.

@SonicTheHedgeHog64
Copy link
Author

Then what does it mean can't find n64 toolchain won't build object

@sauraen
Copy link
Collaborator

sauraen commented Feb 27, 2025

Please start by explaining the context: what kind of project are you trying to make, based on what codebase, with what tools, on what platform, etc. Then explain what you are trying to do with that project--presumably add F3DEX3 support, but what steps are you taking to accomplish that. Then provide the command you are running which gives the error message you mentioned above.

I'm guessing you're seeing this warning: https://github.com/HackerN64/F3DEX3/blob/main/Makefile#L43
The F3DEX3 build system can produce two types of outputs: binaries and object files. It can produce the binaries without any external dependencies besides armips, but in order to produce the object files you need to have a N64 GCC compiler toolchain (which includes the linker) set up on your computer. As you can see from that code, it tries three different possible names for it, and if they all don't exist, it warns that it won't produce the object files. You already need the N64 GCC toolchain installed on your computer to build whatever romhack you're bringing F3DEX3 into, so this is probably just a matter of the F3DEX3 Makefile not trying whatever name it's installed under on your computer. What is it called on your computer?

@SonicTheHedgeHog64
Copy link
Author

mips64-linux-gnuabi64-as

@SonicTheHedgeHog64
Copy link
Author

okay i got the makefile working

@SonicTheHedgeHog64
Copy link
Author

now i can put this in normal mario 64

@SonicTheHedgeHog64
Copy link
Author

SonicTheHedgeHog64 commented Feb 27, 2025

i'd recommend instead of using exact names if possible instead just look for *mips64*-as

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

3 participants