Page 1 of 1

./configure for cross compilation

Posted: Thu Feb 28, 2019 10:34 am
by badda
I have a library which I would like to compile with devkitARM for 3DS on Windows/MSYS2. For this, I need to run the supplied configure-script.
After starting the configure-script with

Code: Select all

./configure --host arm-none-eabi
I get the following error:

Code: Select all

configure: error: no acceptable C compiler found in $PATH
$PATH is

Code: Select all

/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
What can I do to successfully configure/compile the library?

Re: ./configure for cross compilation

Posted: Thu Feb 28, 2019 11:34 am
by WinterMute
Check what you're trying to compile isn't already supplied via pacman, you can see what we have at https://github.com/devkitPro/pacman-pac ... master/3ds or by listing using

Code: Select all

pacman -Ss 3ds-
If it's not already available then install pkg-config & devkitpro-pkgbuild-helpers so you can source /opt/devkitpro/3dsvars.sh before attempting your configure.

Code: Select all

pacman -Sy pkg-config devkitpro-pkgbuild-helpers
source /opt/devkitpro/3dsvars.sh
./configure --host arm-none-eabi
Consider making a PKGBUILD and PRing it to the pacman-packages repo when you get it all working.

Re: ./configure for cross compilation

Posted: Mon Mar 04, 2019 9:15 am
by badda
Thanks, that helped a lot :-)
I was able to compile the library (libsidplay) - although it took a bit more tweaking than just configure/make :roll:
Here my github repo: https://github.com/badda71/libsidplay-3DS
However, I have no clue how to package this so that it can be installed by others via pacman. Here a link to the binaries:
https://github.com/badda71/libsidplay-3 ... 6-msys2.7z

Can you package it or point me to some directions on how to package?

Re: ./configure for cross compilation

Posted: Mon Mar 04, 2019 10:57 pm
by badda