Hacking [Release] rxTools - Roxas75 3DS Toolkit [fw 2.0 - 9.2]

Status
Not open for further replies.

AlbertoSONIC

Pasta Team Member
Member
Joined
Jun 27, 2014
Messages
927
Trophies
0
Age
52
Website
www.albertosonic.com
XP
1,396
Country
Italy
Does it say which file the error occurs in? Current rxTools source does not have that file.

cc -std=c11 -O2 -Wall -Wextra -o tools/addxor_tool tools/toolsrc/addxor_tool/
main.c
tools/toolsrc/addxor_tool/main.c:1:19: fatal error: stdio.h: No such file or dir
ectory
#include <stdio.h>
^
compilation terminated.
make: *** [tools/addxor_tool] Error 1
Premere un tasto per continuare . . .

It's tools/addxor_tool
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,802
Country
United States
cc -std=c11 -O2 -Wall -Wextra -o tools/addxor_tool tools/toolsrc/addxor_tool/
main.c
tools/toolsrc/addxor_tool/main.c:1:19: fatal error: stdio.h: No such file or dir
ectory
#include <stdio.h>
^
compilation terminated.
make: *** [tools/addxor_tool] Error 1
Premere un tasto per continuare . . .

It's tools/addxor_tool


I see what went wrong. "arm-none_eabi" might be missing from your path (as this is the library that has stdio.h among other things). Here's what I have in my system PATH variable at the moment and rxTools compiles just fine for me:

C:\MinGW\bin;c:\devkitPro\msys\bin;C:\devkitPro\devkitARM\bin\;C:\devkitPro\devkitARM\arm-none-eabi\bin\;C:\Python27

(the full path string is longer, but I only included the relevent parts that were added for devkitArm/Pro and rxTools)

Also make sure these system path entries are present:

Variable Name: DEVKITARM
Variable value: /c/devkitPro/devkitARM

Variable Name: DEVKITPRO
Variable value: /c/devkitPro/devkitPro
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
My first theme for rxTools:
rxpasta.png
 

AlbertoSONIC

Pasta Team Member
Member
Joined
Jun 27, 2014
Messages
927
Trophies
0
Age
52
Website
www.albertosonic.com
XP
1,396
Country
Italy
I see what went wrong. "arm-none_eabi" might be missing from your path. Here's what I have in my system PATH variable at the moment and rxTools compiles just fine for me:

C:\MinGW\bin;c:\devkitPro\msys\bin;C:\devkitPro\devkitARM\bin\;C:\devkitPro\devkitARM\arm-none-eabi\bin\;C:\Python27

(the full path string is longer, but I only included the relevent parts that were added for devkitArm/Pro and rxTools)

Also make sure these system path entries are present:

Variable Name: DEVKITARM
Variable value: /c/devkitPro/devkitARM

Variable Name: DEVKITPRO
Variable value: /c/devkitPro/devkitPro
I have everything!
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,802
Country
United States
Try reinstalling devKitPro and restart your computer. Note that changes to your PATH setting may not work until you restart the computer. ;)

Also I'm compiling mine on Windows. I assume you are too? If it's linux I can't help you there. I don't use it, so the build environment for it I'm not familiar with.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,802
Country
United States
I've honestly lost track of the things I've done to make it compile. But I never had that perticular error. Usually was command not found errors that I was trying to get around. I eventually fix it.

Also do you have armips added to your msys\bin directory? I recall having to copy it there before rxTools could use armips correctly.
 

AlbertoSONIC

Pasta Team Member
Member
Joined
Jun 27, 2014
Messages
927
Trophies
0
Age
52
Website
www.albertosonic.com
XP
1,396
Country
Italy
I've honestly lost track of the things I've done to make it compile. But I never had that perticular error. Usually was command not found errors that I was trying to get around. I eventually fix it.

Also do you have armips added to your msys\bin directory? I recall having to copy it there before rxTools could use armips correctly.
Yeah i have it
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,802
Country
United States
I used the latest version of devKitpro installer. I installed devkitPPC lib even though I've been told it wasn't needed. Not sure if that factors in anything, but I'll mention it anyways.

I installed this version of make:

http://gnuwin32.sourceforge.net/packages/make.htm
(although I don't think I had to replace make in msys/bin or add that to the paths. I just installed it. tried to add it to paths, got a crash and removed from paths and it then compiled. It was one of the last things I added before rxTools finally compiled for me. Not sure how this makes it compile even though it's not in my paths right now.)

And have the base install of MinGW GCC installed.

You can try contacting @duke_srg . He's the one who helped me getting rxTools to compile. ;)
 
  • Like
Reactions: AlbertoSONIC

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
I can't build armips :(
Code:
nastys@ULNS:~/GIToth/armips/build$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
CMake Error at CMakeLists.txt:8 (add_executable):
  Cannot find source file:

  Util/StringFormat.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/nastys/GIToth/armips/build
nastys@ULNS:~/GIToth/armips/build$ LANG=en make
make: *** No targets specified and no makefile found.  Stop.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,802
Country
United States
I can't build armips :(
Code:
nastys@ULNS:~/GIToth/armips/build$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
CMake Error at CMakeLists.txt:8 (add_executable):
  Cannot find source file:

  Util/StringFormat.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/nastys/GIToth/armips/build
nastys@ULNS:~/GIToth/armips/build$ LANG=en make
make: *** No targets specified and no makefile found.  Stop.

Is there spaces in the folder names leading up to where you have your source code at? I recall having an issue where spaces in the paths causes issues with compiling. My current rxTools source is just on my desktop and there's no spaces in the path that leads to it. Not sure if this is the issue you are having. I have not had issues getting armips to compile. Though I don't recall ever trying to compile it as I did not have a need to do that. :P
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
Is there spaces in the folder names leading up to where you have your source code at?
No, there aren't :(
Though I don't recall ever trying to compile it as I did not have a need to do that. :P
What do you mean? I can't build rxTools because it keeps calling the armips binary, which does not exist:
Code:
nastys@ULNS:~/GIToth/rxTools$ LANG=en make
make[1]: Entering directory '/home/nastys/GIToth/rxTools/rxtools'
linking rxtools.elf
built ... rxtools.bin
make[1]: Leaving directory '/home/nastys/GIToth/rxTools/rxtools'
0+1 records in
1+0 records out
917504 bytes (918 kB) copied, 0.000487251 s, 1.9 GB/s
Base : 67893421
Seed : 12756342
make[1]: Entering directory '/home/nastys/GIToth/rxTools/rxmode'
make[2]: Entering directory '/home/nastys/GIToth/rxTools/rxmode/native_firm'
make[3]: Entering directory '/home/nastys/GIToth/rxTools/rxmode/native_firm/source/arm9'
arm-none-eabi-gcc -g -Wall source/myThread/myThread.c source/myThread/lib.c -c -mcpu=arm946e-s -march=armv5te -mlittle-endian -fshort-wchar -std=c99
arm-none-eabi-gcc -g source/EmuNAND.s source/CreateThread.s source/myThread/FS.S -I source/myThread -c -mcpu=arm946e-s -march=armv5te -mlittle-endian -fshort-wchar
arm-none-eabi-gcc -nostdlib -T 3ds.ld EmuNAND.o CreateThread.o myThread.o lib.o FS.o
/opt/devkitpro/devkitARM/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 000000000801a4c0
arm-none-eabi-objcopy -O binary a.out arm9.bin
rm -f *.o *.out
mv arm9.bin ../../build/0801a4c0.bin
make[3]: Leaving directory '/home/nastys/GIToth/rxTools/rxmode/native_firm/source/arm9'
/bin/sh: 1: armips: not found
/bin/sh: 1: armips: not found
/bin/sh: 1: armips: not found
/bin/sh: 1: armips: not found
/bin/sh: 1: armips: not found
/bin/sh: 1: armips: not found
Makefile:28: recipe for target 'patch.bin' failed
make[2]: *** [patch.bin] Error 127
make[2]: Leaving directory '/home/nastys/GIToth/rxTools/rxmode/native_firm'
Makefile:13: recipe for target 'nat_patch.bin' failed
make[1]: *** [nat_patch.bin] Error 2
make[1]: Leaving directory '/home/nastys/GIToth/rxTools/rxmode'
Makefile:53: recipe for target 'rxmode/*.bin' failed
make: *** [rxmode/*.bin] Error 2
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=ZokeA2lKB6o