We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2805

Summary: resources to build SDL libs on ARM Ubuntu touch
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED ABANDONED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann, prog
Version: 2.0.3   
Hardware: ARM   
OS: Linux   
Attachments: Tutorial to build SDL for ARM Ubuntu Touch
Main script to build the chroot
file ./debian/control
file ./tools/setup-partial-armhf-chroot.sh
Main script to build the chroot
file ./tools/setup-partial-armhf-chroot.sh
file ./debian/control
file ./debian/control

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
Comment 13 Ryan C. Gordon 2018-08-07 22:30:45 UTC
This has been sitting here a long time; is this still reasonable to apply, Sylvain?

--ryan.
Comment 14 Sylvain 2018-08-08 13:19:24 UTC
Hey Ryan,
Nothing to apply. 
That was to provide help and documentation to build SDL2 based application for Ubuntu Touch. That worked a few years, now, it's somehow abandoned.