Raspberry PI Cross Compiling QT GUI Application in Ubuntu
location: linuxexchange.com - date: December 11, 2013
I typically write Linux and QNX command-line applications in VIM, generally steer away from graphical IDEs. I am currently working on a simple GUI-based application for the RPI that presents a text field for entering commands, and a read-only text field for displaying logging statements.
Is there a de facto standard means of setting up a build environment in Linux (ie: Ubuntu) so I can compile for ARM on the RPI and just deploy the binaries via NFS/SSH?
Additionally, is there a standard means of creating a staging area (ie: a bare-bones empty QT project with a makefile in place that already knows that the only valid target is to use the x86 compiler targeted for ARM)?
The end goal is to set up a few virtual machines with a bunch of empty/blank sample projects that will just build via the command-line when executing make.
I have read through other similar questions I found on SO, but they deal solely with installing the compiler. I also need to figure out how to set up a sample mak
Cisco AM10 USB wireless in Ubuntu/Raspberry Pi
location: ubuntuforums.com - date: May 3, 2015
Warning: PLEASE DO NOT TRY THIS IF YOUR USB WIRELESS CARD IS NOT CISCO AM10
1. Download usb-modeswitch from http://www.draisberghof.de/usb_modeswitch/#download
note: if you get usb-modeswitch from "sudo apt-get install usb-modeswitch",
you will get old one and it won't work!
2. sudo apt-get install tcl tcl-dev libusb-1.0
3. tar -xf usb-modeswitch-2.2.1.tar.bz2
4. cd usb-modeswitch-2.2.1
6. sudo make install
7. sudo usb_modeswitch -v 1307 -p 1169 -L
9. if it work, you will see your wlan0!
Actually I did this in Raspberry Pi(I think the ubuntu will also work). After I google this issue, I end up with this closed thread. After I did my 4hrs research, I finally get it worked. I should thank ohmysql(this guy had lot of enthusiasm to get this done) and usb-modeswitch(thread between ohmysql and Josh, the author of usb-modeswitch). This won't be possible without them.
Cross compile opencv project on Ubuntu for Raspberry Pi
location: linuxexchange.com - date: March 7, 2014
I'm struggling with this for 2 days now and don't get it to work.
What I've done so far:
built opencv 2.4.8 from source on Ubuntu 12.04 LTS
--> OpenCV projects compile and run on ubuntu
built opencv 2.4.8 from source on the Raspberry Pi Raspian
--> OpenCV projects compile and run on the Raspberry Pi
built a cross compiler for the Raspberry Pi with crosstools-ng (http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/)
--> c++ programs built on Ubuntu with the crosscompiler run on the Raspberry Pi
What are my problems:
OpenCV programs don't compile with the cross compiler
|2|fatal error: opencv2/highgui/highgui.hpp: No such file or directory|
I think I need to cross compile OpenCV as well on ubuntu. From my cross compiler I also have a toolchain
# this one is important
#this one not so much
# specify the cross compiler
How to cross compile debian package for ARM Raspberry Pi
location: linuxexchange.com - date: February 4, 2014
I use arm-bcm2708 toolchain for cross compiler.
Now I want to build debian package.
$ dpkg-buildpackage -rfakeroot -us -uc
I got error
... (ELF format: 'elf32-littlearm'; RPATH: '')
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
I don't want to build it on the pi. So how to cross-compile a RPi debian package on PC?
cross compile raspberry pi kernel module
location: linuxexchange.com - date: December 23, 2014
So I have been trying to learn more about developing linux drivers with Linux Device Drivers version 3. Using a spare Rasberry Pi (b) I had kicking around.
I used http://www.raspberrypi.org/documentation/linux/kernel/building.md to build the the kernel in my ~/kernelWork/kernel folder. I have also compiled the kernel and have it running on my raspberry pi to avoid compatibility issues.
The issue I have is I know I need to cross compile the module source to work with the ARM architecture, but I'm not sure where to point the -C flag of the command
make -C ~/kernel-2.6 M=`pwd` modules
command to make my module with. I took a look into my arch folder of my kernel, and looked in the ARM directory included there, but from there I'm not sure where to go.
So in short, after I have built my kernel where do I point the -C flag to cross compile my module.
How can I create a modern cross compile toolchain for the Raspberry Pi 1?
location: linuxexchange.com - date: May 8, 2015
At least Debian does not provide a usable toolchain to cross develop for the Raspberry Pi 1. The Linaro toochain is at the time of this writing too old for the Qt5 developer branch. There is a project crosstools-ng, which allows to easily build custom toolchains for all kinds of systems. It supports a fairly modern GCC 4.9.1. The configuration is a bit trial and error, but the main problem is, that the toolchain does not find all the include files or libraries. How is the crosstools-ng to be configured so it can be used to compile Qt5 for the Raspberry Pi 1?
A followup how a Raspberry Pi with Raspian has to be prepared to use this toolchain can be found here:
How do I prepare a Raspberry Pi with Raspian so I can cross compile Qt5 program from a Linux host?
Cross Compile Ubuntu Raspberry
location: linuxexchange.com - date: February 12, 2015
Followed this tutorial i installed all the mentioned toolchain. After i choose my appropriate toolchain "gcc-linaro-arm-linux-gnueabihf-raspbian" in ".bashrc" file. After i submit "source .bashrc" but "arm-linux-gnueabi-gcc -v" does not work.
This is my row in ".bashrc" file:
This is my bin folder:
When i try to check it this is the result:
As required, the former command echo $PATH
whereas the latter ls -l
-rwxr-xr-x 1 v1sc3rr4k v1sc3rr4k 620076 feb 11 23:02 arm-linux-gnueabihf-addr2line
-rwxr-xr-x 1 v1sc3rr4k v1sc3rr4k 644400 feb 11 23:02 arm-linux-gnueabihf-ar
-rwxr-xr-x 1 v1sc3rr4k v1sc3rr4k 1085080 feb 11 23:02 arm-linux-gnueabihf-as lrwxr
File share between Raspberry Pi and Ubuntu Running a script Page 2
location: linuxquestions.com - date: June 12, 2013
here is a check list for you.
On the Laptop:
1. ensure the external HDD never goes to sleep (can wind down in RPMs, but not disconnect from laptop.
2. configure sshd.conf to allow for keys for authentication.
3. Optional: setup and configure NFS to share the external HDD via your LAN.
On the RPi:
1. create rsa key to what ever level of encryption you wish, i personally use 4096.
1a. cd ~/.ssh
1b. ssh-keygen -t rsa -b 4096
1c. follow directions on screen, DO NOT PUT IN A PASSPHRASE as this will be for unattended authentication.
2. create script to rsync XYZ data to your laptop (by doing this there is zero reason to have a mount point or use sshfs)
3. after the rsync is complete, you can rm -rf the data on the local SSD to ensure you do not run out of space.
that is unless you wish to store the data on the external HDD instead of the SSD on the RPi. If that is the case, then NFS is the best way to go and skip sshfs completely. if you are worried about the data bei
I cross compile glib of arm on ubuntu 12.10 x64,it failed.
location: linuxquestions.com - date: March 12, 2013
I use arm-linux-4.4.3.
This is my config command:
./configure --prefix="$PWD/../release/bluez_libs" --host=arm-linux CC="arm-linux-gcc -I/home/sp/Bluez/release/bluez_libs/include -L/home/sp/Bluez/release/bluez_libs/lib" PKG_CONFIG_PATH="$PWD/../release/bluez_libs/lib/pkgconfig" ac_cv_type_long_long=yes glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwuid_r=yes
When I run make,it print these error:
/usr/local/arm/4.4.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)
./.libs/libgio-2.0.so: undefined reference to `g_module_close'
./.libs/libgio-2.0.so: undefined reference to `g_module_symbol'
./.libs/libgio-2.0.so: undefined reference to `g_module_supported'
./.libs/libgio-2.0.so: undefined reference to `g_module_open'
./.libs/libgio-2.0.so: undefined refere
ubuntu and Raspberry Pi
location: ubuntuforums.com - date: June 14, 2013
I just don't know where else to ask this, so if it needs to be moved please do so.
I know Raspian on the Raspberry Pi is Debian based, and since Ubuntu is also Debian based, I was wondering if there is a version of Ubuntu that runs on the Raspberry Pi and it's architecture (Armtel or some such thing). I don't have a problem using Raspian, since the look and feel is pretty much the same, but wouldn't mind if I could just stick with Ubuntu all the way around.
As a side note, if you don't know what a Raspberry Pi is, you should research them on the net. Very inexpensive, very small, and they make a nice little media center when XBMC is installed.
Page: 1 2 3 4 5 6 7 8 9 10