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.
Created attachment 1956 [details] Tutorial to build SDL for ARM Ubuntu Touch
Created attachment 1957 [details] Main script to build the chroot
Created attachment 1958 [details] file ./debian/control
Created attachment 1959 [details] file ./tools/setup-partial-armhf-chroot.sh
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).
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.
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.
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.
Created attachment 2399 [details] Main script to build the chroot Main script to build the chroot
Created attachment 2400 [details] file ./tools/setup-partial-armhf-chroot.sh update of file "./tools/setup-partial-armhf-chroot.sh"
Created attachment 2401 [details] file ./debian/control update of file ./debian/control
Created attachment 2403 [details] file ./debian/control update of file ./debian/control