Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3DS build environment
#3
(12-08-2015, 08:01 PM)thammi Wrote: Hi,
I was able to figure it out. For anyone else who tries to compile for 3ds here the steps I used:


Code:
export DEVKITPRO=... DEVKITARM=...
git clone https://github.com/mgba-emu/mgba.git
mkdir mgba/build
cd mgba/build
cmake -DCMAKE_TOOLCHAIN_FILE=../src/platform/3ds/CMakeToolchain.txt ..
make

You obviously have to have devkitpro/devkitarm and libctru installed. I additionally had to download and build picasso and bannertool. To help cmake find the executables I linked them into the bin directory of devkitarm. There were problems building the .cia, but I just commented out its block in src/platform/3ds/CMakeLists.txt as I don't need it.

Hope this helps someone.

Hi thammi,

I followed your steps, but I got this error:

$ cmake -DCMAKE_TOOLCHAIN_FILE=../src/platform/3ds/CMakeToolchain.txt ..

-- Building for: NMake Makefiles

-- The C compiler identification is unknown

CMake Error at CMakeLists.txt:2 (project):

  The CMAKE_C_COMPILER:



    .../bin/arm-none-eabi-gcc.exe



  is not a full path and was not found in the PATH.



  To use the NMake generator with Visual C++, cmake must be run from a shell

  that can use the compiler cl from the command line.  This environment is

  unable to invoke the cl compiler.  To fix this problem, run cmake from the

  Visual Studio Command Prompt (vcvarsall.bat).



  Tell CMake where to find the compiler by setting either the environment

  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

  the compiler, or to the compiler name if it is in the PATH.





-- Configuring incomplete, errors occurred!

See also "C:/devkitPro/3DS/mgba/build/CMakeFiles/CMakeOutput.log".

See also "C:/devkitPro/3DS/mgba/build/CMakeFiles/CMakeError.log".

I tried to set CMAKE_C_COMPILER to arm-none-eabi-gcc.exe but it didn't work. Did you happen to have this error too? And how did you fix it? Many thanks for help.
Reply



Messages In This Thread
3DS build environment - by thammi - 12-08-2015, 06:16 PM
RE: 3DS build environment - by thammi - 12-08-2015, 08:01 PM
RE: 3DS build environment - by Robin - 02-06-2016, 09:56 PM
RE: 3DS build environment - by endrift - 02-06-2016, 11:54 PM
RE: 3DS build environment - by Robin - 02-07-2016, 01:26 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.