Homebrew Coding: Why can't I run this command inside Makefile, but I can run it from outside?

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,276
Country
United States
haNF1Zm.png


To explain the first yellow box (from the top, the first one, after linking application.elf, and building the necessary files), I am running a makerom command to build a CIA file immediately after the ELF file is created. This is done from within the Makefile.

But, as you can see, it errors out. Here's where it gets weird.

For the second yellow box, I literally copied the exact output echoed from the Makefile from the first yellow box, and ran the command. It successfully created the CIA file, and did not report any errors.

---------------

I really wanted to know why it happens. I can make CIA files just fine, but I see a lot more benefits if I can simplify the whole process down into a single "make" command.

How is this possible? Why can't I run the command from the Makefile, and must run it outside of Makefile in order to get the CIA? Is there something that I am missing?

Thank you. Hoping to see some answers to this issue.
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,069
Trophies
2
XP
7,827
Country
United States
'Invalid FileSystemAccess Name: "SeedDB"'

this was added to makerom recently, is there a chance you're using buildtools or whatever? it probably has an outdated makerom.
 

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,276
Country
United States
@ihaveamac You solved it!!

Apparently, I didn't realized there's another makerom hidden within the devkitPro installation folder. Typing "makerom -help" revealed two different build dates, thus hinting me of this possibility.

Thank you!
 

justinkb

Well-Known Member
Member
Joined
Oct 7, 2012
Messages
625
Trophies
1
XP
347
Country
Netherlands
For future reference, you could have done the command "find / -type f -name 'makerom' -executable" to search your files for other makerom executables.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: :discuss: