Bug 2805 - resources to build SDL libs on ARM Ubuntu touch
Summary: resources to build SDL libs on ARM Ubuntu touch
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.3
Hardware: ARM Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-06 11:17 UTC by Sylvain
Modified: 2016-03-31 21:41 UTC (History)
2 users (show)

See Also:


Attachments
Tutorial to build SDL for ARM Ubuntu Touch (6.77 KB, text/plain)
2014-12-06 11:18 UTC, Sylvain
Details
Main script to build the chroot (6.46 KB, application/x-shellscript)
2014-12-06 11:19 UTC, Sylvain
Details
file ./debian/control (12.59 KB, text/plain)
2014-12-06 11:20 UTC, Sylvain
Details
file ./tools/setup-partial-armhf-chroot.sh (1.96 KB, application/x-shellscript)
2014-12-06 11:21 UTC, Sylvain
Details
Main script to build the chroot (7.82 KB, text/x-sh)
2016-03-30 12:55 UTC, Sylvain
Details
file ./tools/setup-partial-armhf-chroot.sh (3.85 KB, text/x-sh)
2016-03-30 12:56 UTC, Sylvain
Details
file ./debian/control (14.58 KB, text/plain)
2016-03-30 12:58 UTC, Sylvain
Details
file ./debian/control (16.86 KB, text/plain)
2016-03-31 20:05 UTC, Sylvain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2014-12-06 11:17:18 UTC
Here are a few files to help creating a cross compilation environment to build SDL libs for ubuntu-touch.

See more information in the tutorial.
Comment 1 Sylvain 2014-12-06 11:18:17 UTC
Created attachment 1956 [details]
Tutorial to build SDL for ARM Ubuntu Touch
Comment 2 Sylvain 2014-12-06 11:19:53 UTC
Created attachment 1957 [details]
Main script to build the chroot
Comment 3 Sylvain 2014-12-06 11:20:36 UTC
Created attachment 1958 [details]
file ./debian/control
Comment 4 Sylvain 2014-12-06 11:21:13 UTC
Created attachment 1959 [details]
file ./tools/setup-partial-armhf-chroot.sh
Comment 5 Louis M 2015-03-15 01:48:25 UTC
Please note that to make it compile, I had to add ":${MIR_NDK_PATH}/usr/share/pkgconfig" to the "PKG_CONFIG_PATH" variable at line 116 or the "cross-compile-chroot.sh". Also, I had to run the "setup-partial-armhf-chroot.sh" directly (the "cross-compile-chroot.sh" didn't create the partial chroot automatically).
Comment 6 Sylvain 2015-03-15 14:04:36 UTC
Thanks for the feedback!

Just for information, here's the initial script "cross-compile-chroot.sh" :
http://bazaar.launchpad.net/~mir-team/mir/development-branch/view/head:/cross-compile-chroot.sh

It does not contain the "${MIR_NDK_PATH}/usr/share/pkconfig" directory, but you may be right!

On the other hand, "/usr/share/pkconfig" is said to be a default directory (according to the man page).
And the variable PKG_CONFIG_SYSROOT_DIR=$MIR_NDK_PATH should then make "${MIR_NDK_PATH}/usr/share/pkconfig" be the default directory for the chroot.


About the second point. There should be no need to call "setup-partial-armhf-chroot.sh" manually. See the "cross-compile-chroot.sh" script. It uses it when called with option "-u" (update), or if the directory does not exist.
Comment 7 Louis M 2015-03-15 15:13:48 UTC
Well, of course, I debugged it to make it compile. I did not investigate it more than that. But if you want, I can look at it on my pc.
Comment 8 Sylvain 2015-03-15 19:09:05 UTC
Don't worry. I just say it is working out of the box on my system.
Just give a try with "-u" next time you use it. thanks.
Comment 9 Sylvain 2016-03-30 12:55:52 UTC
Created attachment 2399 [details]
Main script to build the chroot

 Main script to build the chroot
Comment 10 Sylvain 2016-03-30 12:56:41 UTC
Created attachment 2400 [details]
file ./tools/setup-partial-armhf-chroot.sh

update of file "./tools/setup-partial-armhf-chroot.sh"
Comment 11 Sylvain 2016-03-30 12:58:06 UTC
Created attachment 2401 [details]
file ./debian/control

update of file ./debian/control
Comment 12 Sylvain 2016-03-31 20:05:18 UTC
Created attachment 2403 [details]
file ./debian/control

update of file ./debian/control