./configure for cross compilation

Post Reply
badda
Posts: 4
Joined: Thu Feb 28, 2019 10:26 am

./configure for cross compilation

Post by badda » Thu Feb 28, 2019 10:34 am

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?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: ./configure for cross compilation

Post by WinterMute » Thu Feb 28, 2019 11:34 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

badda
Posts: 4
Joined: Thu Feb 28, 2019 10:26 am

Re: ./configure for cross compilation

Post by badda » Mon Mar 04, 2019 9:15 am

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?

badda
Posts: 4
Joined: Thu Feb 28, 2019 10:26 am

Re: ./configure for cross compilation

Post by badda » Mon Mar 04, 2019 10:57 pm


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests