Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently, I have a mission to build a media player in mobile devices (particularly a Windows Mobile device).
I decided to build one based on GStreamer (core backend of GNU). In order to do that, I know I must do cross compile GLib (and after that cross compile GStreamer) into ARM/WinMobile architect.
I have already got/configure CeGCC & successfully cross-compiled a helloworld app. But now, I get confuse and do not know how to cross compile GLib(GStreamer also). I googled it for 2 days but the results are too general or weird. So, if anyone had experience with this kind of work or had done successfully, please give me some instruct & advice.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
cd glib-x.xx.x ( 2.12.x ...... 2.22.x )
./configure CC=<path-to-cross-compiler> --prefix=/<install-path>
like
./configure CC=/opt/cross/bin/arm-gcc --prefix=/home/user/files/
Glib2 is an easy one, no dependencies.
For the most other libs and applications, you will have
to compile all dependencies beforehand and and point to
all in the configure line and / or do :
export LD_LIBRARY_PATH=/<path>
I assume, that the 'arm (g)libc + the linker, ld etc. are
installed correct. Else you will have to point to them too.
The system libc and system ld are unusable ...
.. Unless your host OS is an arm system itself.
.....
cd glib-x.xx.x ( 2.12.x ...... 2.22.x )
./configure CC=<path-to-cross-compiler> --prefix=/<install-path>
like
./configure CC=/opt/cross/bin/arm-gcc --prefix=/home/user/files/
Glib2 is an easy one, no dependencies.
For the most other libs and applications, you will have
to compile all dependencies beforehand and and point to
all in the configure line and / or do :
export LD_LIBRARY_PATH=/<path>
I assume, that the 'arm (g)libc + the linker, ld etc. are
installed correct. Else you will have to point to them too.
The system libc and system ld are unusable ...
.. Unless your host OS is an arm system itself.
.....
Thank for your reply,
But I really don't know where to obtain arm glibc + its linker! . Can you give me some more detail please!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.