Skip to content

Instantly share code, notes, and snippets.

View vmayoral's full-sized avatar

Víctor Mayoral Vilches vmayoral

View GitHub Profile
@vmayoral
vmayoral / bitbake turtlesim
Created August 22, 2013 12:53
turtlesim cross-compiling log
| [ 77%] [ 80%] Building CXX object CMakeFiles/mimic.dir/tutorials/mimic.cpp.o
| /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-eglibc/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++ -DROS_PACKAGE_NAME=\"turtlesim\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-eglibc/sysroots/beaglebone -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -fpermissive -I/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/turtlesim-0.3.11-r0/ros_tutorials-0.3.11/turtlesim/build/devel/include -I/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-eglibc/sysroots/beaglebone/usr/include/qt4 -I/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-eglibc/sysroots/beaglebone/usr/include/qt4/QtGui -I/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-e
| /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/include/wx-2.9/wx/gtk/toplevel.h:101:5: error: 'GtkWidget' does not name a type
| In file included from /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/include/wx-2.9/wx/control.h:235:0,
| from /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/include/wx-2.9/wx/statusbr.h:19,
| from /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/include/wx-2.9/wx/frame.h:20,
| from /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/include/wx-2.9/wx/wx.h:43,
| from include/wx/wxPython/wxPython_int.h:35,
| from src/helpers.cpp:17:
| /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr/
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing shell function do_configure
| -- Using CATKIN_DEVEL_PREFIX: /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/kdl-parser-1.10.14-r0/robot_model-1.10.14/kdl_parser/build/devel
| -- Using CMAKE_PREFIX_PATH: /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr;/home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr
| -- This workspace overlays: /home/victor/Escritorio/GSOC/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone/usr;/home/victor/E
From 620cb72934eec1fa12eeb007f70d2cb8a0dd9ef9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= <[email protected]>
Date: Wed, 11 Sep 2013 10:05:33 +0200
Subject: [PATCH] CMakeLists fix to fit with OpenEmbedded/Yocto meta-ros layer.
This fixes increase the compatibility of the ros_control code with
meta-ros, an OpenEmbedded/Yocto layer that provides recipes for ROS
packages.
---
controller_manager_tests/CMakeLists.txt | 10 ++++++----
@vmayoral
vmayoral / gmail-blocked.sh
Created October 8, 2013 15:07
Script for removing Gmail blocked files
#!/bin/bash
# Remove blocked files by gmail from a file structure.
# Gmail blocked files:
#.ade, .adp, .bat, .chm, .cmd, .com, .cpl, .exe, .hta, .ins, .isp, .jse, .lib, .mde, .msc, .msp, .mst, .pif, .scr, .sct, .shb, .sys, .vb, .vbe, .vbs, .vxd, .wsc, .wsf, .wsh
du -a|grep "\.ade$"|awk '{print $2}'| sed 's/^/rm /g'
du -a|grep "\.adp$"|awk '{print $2}'| sed 's/^/rm /g'
du -a|grep "\.bat$"|awk '{print $2}'| sed 's/^/rm /g'
du -a|grep "\.chm$"|awk '{print $2}'| sed 's/^/rm /g'
@vmayoral
vmayoral / BBB-eduroam
Created November 12, 2013 14:33
Connecting the BBB to a WPA-EAP TTLS (eduroam)
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan0' conf './wireless-eduroam.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file './wireless-eduroam.conf' -> '/home/root/network/wifi/./wireless-eduroam.conf'
Reading configuration file '/home/root/network/wifi/./wireless-eduroam.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=7):
65 64 75 72 6f 61 6d eduroam
key_mgmt: 0x1
@vmayoral
vmayoral / eduroam_bbb
Created November 15, 2013 13:10
Connecting to eduroam using the BBB
network={
ssid="eduroam"
scan_ssid=1
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=PEAP
identity="[email protected]"
mkdir -p build
clpru --silicon_version=3 -o1 -Dam335x -I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone blinkled.c -z /ARMLinuxA8/example/AM3359_PRU.cmd -o build/blinkled.out -m blinkled.out.map
>> WARNING: "-I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone": Path not found. Use semicolons (not spaces) to separate pathnames in environment variable PRU_C_DIR.
"blinkled.c", line 1: fatal error: cannot open source file "gpio_v2.h"
1 catastrophic error detected in the compilation of "blinkled.c".
Compilation terminated.
>> Compilation failure
make: *** [build/blinkled.out] Error 1
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# pwd
/root/pru/PRUSS-C/PRUSS_LIB/example
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PATH
/root/pru/PRUSS-C/PRUSS_LIB:/root/pru/ARMLinuxA8/bin:/root/pru/ARMLinuxA8/:/root/pru/ARMLinuxA8/example:/root/catkin_ws/devel/bin:/opt/ros/groovy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PRUSS_BASE_PATH
/root/pru/PRUSS-C/PRUSS_LIB
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PRUSS_BASE_DIR
/root/pru/PRUSS-C/PRUSS_LIB
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# make
make: Warning: File `Makefile' has modification time 4.5e+08 s in the future
make: Warning: File `Makefile' has modification time 4.5e+08 s in the future
mkdir -p build
clpru --silicon_version=3 -o1 -Dam335x -I/root/pru/PRUSS-C/PRUSS_LIB/ARMLinuxA8/lib -I/root/pru/PRUSS-C/PRUSS_LIB/ARMLinuxA8/include -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include/arm7a -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include/hw -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/platform/beaglebone /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/cpsw.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/dcan.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/dmtimer.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/ecap.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/edma.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/ehrpwm.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_