Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Target OS is Linux 2.6.35.3-571 as i wrote on Post #3.
But how can i cross compile glib in general, without the error message "configure: error: cannot run test program while cross compiling" appearing at configure? I don't think that i can solve this by using another version of glib, the same error will appear again.
Thx for the hint that i need a lower version of glib.
I run glib version 2.24.1 on the machine where i build. I can't figure out the glib version of the target machine, the command does not work there, unfortunattely it is a very limited machine which does not know many commands, i doubt that glib is even installed there.
Is it necessary to install glib on the target machine?
Edit: Sorry for the basic questions, but i only have 2 years experience with linux, and this is my first time i try to cross compile something. Thank you for your help this far! I really appreciate it.
It's a small device from my company, which is used to log data from it's inputs and displays them on a webinterface. I tried bluez-***3.36 because i failed to configure bluez-5.33.
I already know this guide, but there is one problem, my sysadmin said that i am not allowed to install anything, he said it is possible to do it without installation, if i just link everything proberly. This is true, i did my research and found out how to link glib and dbus for configure bluez-5.33. But i get an error on configure:
checking for DBUS... yes
checking D-Bus configuration directory... /etc
checking D-Bus system bus services dir... configure: error: D-Bus system bus services directory is required
I am really stucked right now, nothing seems to work.
Update 1
I tried to add the option: --disable-dbus
But it seems to be necessary:
I used this option: --disable-udev
Now the libudev >= 172 error is not appearing anymore.
But i get:
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
configure: error: readline header files are required
According to "askubuntu.com" i need to install this package: libreadline-dev (GNU readline and history libraries, development files)
i don't know how to solve it without installing this package. Is it even possible?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #22.
About libudev, glib-2.30.3 : Please use the mentioned glib-2.24.2 : See #20 !
Readline : If the `readline' headers only are required :
You don't have to cross-compile `readline', this will do :
$ sudo apt-get install libreadline-dev
But please remember that everything else must be compiled for arm or --disabled.
So I guess you should try with --disable-python --disable-perl ?
!! Important : The zlib used for glib-2 must be cross-compiled beforehand.
BlueZ 5.33 requires a glib version >= 2.29, thats why i choiced 2.30.
I have an idea, i will install my own linux machine where i can install and update whatever i need to, then it should work. I will report any updates.
Ah sry, yes i mean cross compile of course. I use the same versions as in guide.
I was able to compile it in the meanwhile. I've deleted all files and made a new fresh start but now i use "arm-none-linux-gnueabi" instead of "arm-linux-gnueabi" like used in the guide.
But i ran into now a problem on installing libical, in the guide it says that i need to install g++-arm-linux-gnueabi.
But if i execute: sudo apt-get install g++-arm-linux-gnueabi
Then i get: packet not found.
And if i skip it and procceed with cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-none-linux-gnueabi
Then i get:
Quote:
The C compiler "/opt/FriendlyARM/toolschain/4.4.3/bin/arm-none-linux-gnueabi-gcc" is not
able to compile a simple test program
-- Configuring incomplete, errors occurred!
Update
Solved, i executed the command with sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-none-linux-gnueabi
this worked!
Update
But if i try make, then i get:
cannot find -lexpat
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #29.
A file list / any list : Please use CODE Tags, instead of QUOTE Tags :
[code]list text[/code]
Editing post #29 : That's the 'Edit' button in post #29.
.. Or delete the list : Is a copy of the OS expat files, not arm !
No 'g++-arm-linux-gnueabi' : Please use a regular OS. Kali Linux is a live-cd meant for forensics only.
I know you can also install the OS,
but do not expect all required packages to be available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.