File size: 4,108 Bytes
4aa5fce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
=== nemik_ is now known as nemik === vhadil is now known as color [04:49] <SoundSouldier> hello? [04:50] <SoundSouldier> hello? === mhaberler_ is now known as mhaberler === rsalveti_ is now known as rsalveti === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha === mhaberler_ is now known as mhaberler === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [16:28] <angs> is it enough to install "apt-get install build-essential" to have the toolchains to cross-compile C code for beagleboard-Xm? [16:28] <angs> do I need to install apt-get install gcc-4.7-arm-linux-gnueabihf ? [16:43] <angs> I am using gcc-arm-linux-gnueabihf to cross compile, what path do I need to link for libusb-1.0? [16:50] <prpplague> angs: where every you have the libusb libraries compiled for arm [16:51] <prpplague> angs: not your local ones that are most likely compiled for x86 [16:52] <angs> I used to link lusb-1.0 on eclipse as /usr/include/libusb-1.0 on "C/c++ general> paths and symbols >library paths" and it was working fine to build the code on my desktop. To cross-compile, I added "/usr/arm-linux-gnueabihf/lib" before "/usr/include/libusb-1.0"", now I get "cannot find -lusb-1.0" error when I build the code. [16:52] <angs> should I copy the libusb-1.0 directory under /usr/arm-linux-gnueabihf/lib [16:53] <angs> or do I suppose to install libusb-1.0 for arm? [17:00] <angs> prpplague: how can I add libusb on arm's gcc ? [17:26] <angs> can anyone tell me how do I suppose to use libusb on ubuntu-arm? [17:27] <prpplague> angs: did you add libusb files that were complied for arm in the directory - /usr/arm-linux-gnueabihf/lib ? [17:34] <angs> prpplague: I copied libusb* files from /usr/lib to /usr/arm-linux-gnueabihf/lib and libusb-1.0 from /usr/include to /usr/arm-linux-gnueabihf/include however I still have the same problem [17:34] <angs> I get this error when I build the program "skipping incompatible /usr/arm-linux-gnueabihf/lib/libusb-1.0.a when searching for -lusb-1.0" [17:35] <prpplague> angs: the libusb files in /usr/lib on your host pc are for x86 [17:35] <prpplague> angs: they are not for arm [17:35] <angs> where can I download libusb files for arm? [17:35] <prpplague> angs: i would assume there is a ubuntu package you can get, however i alway build them myself [17:37] <angs> prpplague: do you have built libusb files on your machine that you can share? [17:37] <prpplague> angs: easier for you to do it yourself of find the ubuntu packages [17:37] <prpplague> angs: what hardware platform are you using? [17:38] <angs> prpplague: I am using beagleboard-Xm. I am a beginner linux user, I do not know how to build package [17:39] <prpplague> angs: then download the ubuntu pre-built package [17:42] <angs> I already installed libusb-1.0 and libusb-dev, do you know is there any portal to search pre-built package for ubuntu arm? [17:43] <prpplague> https://launchpad.net/ubuntu/precise/+package/libusb-dev [17:43] <prpplague> just one example [17:43] <prpplague> angs: you installed the libusb for you host machine which is x86 [17:43] <prpplague> not the arm ones [17:45] <angs> prpplague: thank you very much, I am installing the package for beagleboard now [17:45] <prpplague> angs: google is your friend [17:46] <angs> right, I was using the wrong keyword to search on google. thank you very much for your help [17:56] <angs> prpplague: I have one last question. dpkg -i libusb-dev_0.1.12-20_armhf.deb outputs "package architecture (armhf) does not match system (i386)" error. Do you know if it is possible to install that package under /usr/arm-linux-gnueabihf directory? [17:56] <prpplague> angs: yea, there should also be a cross compile package somewhere [17:59] <angs> do you know name of the package? [18:00] <prpplague> angs: no, like i said, i normally build everything from source [18:00] <prpplague> angs: i am certain there is a howto on the ubuntu wiki pages for what you want to do [18:00] <prpplague> angs: please check there [18:01] <angs> prpplague: thank you I will check there === playya is now known as frederik |