Saad, You meant [email protected]<mailto:[email protected]>, not [email protected]<mailto:[email protected]>. That is why I missed your e-mail for a few days.
Responses below... From: Namou, Saad [mailto:[email protected]] Sent: Friday, October 17, 2014 10:27 AM To: [email protected]; Kridner, Jason Subject: I need help compiling my C code on the BeagleBoard-C5 Hello Gentlemen, I have bought the BeagleBoard Rev-C5 (OMAP3530). But when I tried compile my C/C++ code (which compiled and ran on my BeagleBone Black EVAL) using the makefile "build1" , the BeagleBoard gave me this error: root@beagleboard:~/BBB/Desktop/test# ./build1 Building the opencv Video Motion Detect for the Beaglebone ./build1: line 5: pkg-config: command not found ./build1: line 5: g++: command not found Executing Code ./makeLED: error while loading shared libraries: libopencv_calib3d.so.2.4: canno t open shared object file: No such file or directory Finished This is my makefile: root@beagleboard:~/BBB/Desktop/test# more build1 #!/bin/bash echo "Building the opencv Video Motion Detect for the Beaglebone" g++ -O2 `pkg-config --cflags --libs opencv` makeLED.cpp -o makeLED echo "Executing Code" ./makeLED echo "Finished" Did you try this with the 2012-01-11 Angstrom image (the latest one on http://beagleboard.org/latest-images)? This is probably in bad need of an update and this might be a good opportunity for us to push a Debian image aligned with the BeagleBone images. So I tried to install the "sourceryg++-2014.05-46-arm" to get gcc/g++, but the BeagleBoard gave me an error: root@beagleboard:~/gcc# ls sourceryg++-2014.05-46-arm.bin root@beagleboard:~/gcc# ./s* readlink: invalid option -- 'e' BusyBox v1.19.3 (2012-01-10 08:25:36 CET) multi-call binary. Usage: readlink [-fnv] FILE readlink: invalid option -- 'e' BusyBox v1.19.3 (2012-01-10 08:25:36 CET) multi-call binary. Usage: readlink [-fnv] FILE Error: Insufficient disk space available in (on the "" filesystem). Please free up sufficient disk space (at least 2041449912 bytes) and restart the installer. Note that you can also set the P2_INSTALLER_TEMP_PATH environment va riable to point to a filesystem of your choosing: P2_INSTALLER_TEMP_PATH=<path> It isn't easy for me to do much about you running out of disk space, but I will advise you not to try to install the "wrong" toolchain. Angstrom has a toolchain (which I suspect was already installed, but not being found for some reason-perhaps you have an odd image?), so you should be sure to install that toolchain, not sourceryg++. So I thought I need more memory, I downloaded the Angstrom image: "Angstrom-TI-GNOME-image-eglibc-ipk-v2012.01-core-beagleboard-2012.01.11.img". And install it on a 32GB SD card and I was able to boot from that the SD card now. But when I tried to install the "sourceryg++-2014.05-46-arm" I got the exact same error as above. You have to resize the partition in order to make use of the extra space. http://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD describes this on Ubuntu, but the steps are fairly generic. I tried running "opkg update" and "opkg upgrade", but they only installed and upgraded few packages the rest gave me error bad link: root@beagleboard:~# opkg upgrade Upgrading libxt6 on root from 1:1.1.1-r1 to 1:1.1.1-r9.0... Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/ base/libxt6_1.1.1-r9.0_armv7a.ipk. wget: bad address 'feeds.angstrom-distribution.org' or wget: server returned error: HTTP/1.1 404 Not Found. In general, I advise anyone to NEVER do an 'opkg upgrade' on Angstrom. It will work sometimes, but it is a huge mess when it doesn't. Further, the Angstrom server has gone through some changes over the last couple of years, so I don't have much confidence there---but I do see that feed server is currently live at http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a-vfp-neon/. Seems like our image is so old that the ABI has been deprecated. BTW, the right command is 'opkg update && opkg install task-native-sdk'. I'm concerned with the deprecated ABI that the feed including the package for that image might no longer be available. It is possible to upgrade to a newer version of Angstrom, but for your case I believe moving to Debian might be a better option. See http://elinux.org/BeagleBoardDebian#BeagleBoard_.28classic.29 for a starting console image to which you can add the tools you want. See below my boot up: Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07) Beagle Rev C5 Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07) Beagle Rev C5 Reading boot sector Loading u-boot.bin from nand U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 01 2011 - 17:41:42) OMAP3530-GP ES3.1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Beagle Rev C4 No EEPROM on expansion board Die ID #19d4000700000000015a67670e00e011 Hit any key to stop autoboot: 0 The user button is currently NOT pressed. SD/MMC found on device 0 reading uEnv.txt 13 bytes read Loaded environment from uEnv.txt Importing environment from mmc ... Loading file "/boot/uImage" from mmc device 0:2 (xxa2) 3372316 bytes read Booting from mmc ... ## Booting kernel from Legacy Image at 80200000 ... Image Name: Angstrom/3.0.14/beagleboard Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3372252 Bytes = 3.2 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. .---O---. | | .-. o o | | |-----.-----.-----.| | .----..-----.-----. | | | __ | ---'| '--.| .-'| | | | | | | | |--- || --'| | | ' | | | | '---'---'--'--'--. |-----''----''--' '-----'-'-'-' -' | '---' The Angstrom Distribution beagleboard ttyO2 Angstrom v2012.01-core - Kernel 3.0.14+ beagleboard login: beagleboard login: root root@beagleboard:~# ls -lrt drwxr-xr-x 2 root root 4096 Jan 12 12:00 gcc drwxr-xr-x 3 root root 4096 Jan 12 12:26 Desktop drwxr-xr-x 2 root root 4096 Oct 16 2014 gcc1 drwxr-xr-x 3 root root 4096 Oct 16 2014 BBB root@beagleboard:~# cd BBB root@beagleboard:~/BBB# ls Desktop DesktopMLO makeLED startup.sh root@beagleboard:~/BBB# cd Desktop root@beagleboard:~/BBB/Desktop# ls LED LEDcpp boneCV gpio makeLED overlay test root@beagleboard:~/BBB/Desktop# cd test root@beagleboard:~/BBB/Desktop/test# ls Background.png Frame.png build makeLED Fore.png Gray.png build1 makeLED.cpp root@beagleboard:~/BBB/Desktop/test# ./build1 Building the opencv Video Motion Detect for the Beaglebone ./build1: line 5: pkg-config: command not found ./build1: line 5: g++: command not found Executing Code ./makeLED: error while loading shared libraries: libopencv_calib3d.so.2.4: canno t open shared object file: No such file or directory Finished root@beagleboard:~/BBB/Desktop/test# more build1 #!/bin/bash echo "Building the opencv Video Motion Detect for the Beaglebone" g++ -O2 `pkg-config --cflags --libs opencv` makeLED.cpp -o makeLED echo "Executing Code" ./makeLED echo "Finished" root@beagleboard:~/BBB/Desktop/test# root@beagleboard:~/BBB/Desktop/test# cd ~ root@beagleboard:~# ls BBB Desktop gcc gcc1 root@beagleboard:~# cd .. root@beagleboard:/home# cd .. root@beagleboard:/# ls bin etc lost+found proc sys var boot home media run tmp dev lib mnt sbin usr root@beagleboard:/# ls -lrt dr-xr-xr-x 101 root root 0 Jan 1 1970 proc drwxr-xr-x 12 root root 0 Jan 1 1970 sys drwxr-xr-x 2 root root 40 Jan 1 1970 media drwxr-xr-x 13 root root 4096 Nov 30 17:47 var drwxr-xr-x 2 root root 4096 Jan 11 18:19 mnt drwxr-sr-x 3 root root 4096 Jan 11 18:19 home drwxr-xr-x 2 root root 4096 Jan 11 18:21 boot drwxr-xr-x 2 root root 4096 Jan 11 18:23 bin drwxr-xr-x 2 root root 4096 Jan 11 18:23 sbin drwx------ 2 root root 16384 Jan 12 08:47 lost+found drwxr-xr-x 14 root root 3680 Jan 12 12:28 dev drwxr-xr-x 11 root root 340 Jan 12 12:28 run drwxr-xr-x 61 root root 4096 Jan 12 12:28 etc drwxrwxrwt 17 root root 4096 Jan 12 12:28 tmp drwxr-xr-x 11 root root 4096 Mar 4 2013 usr drwxr-xr-x 7 root root 4096 Jan 3 2014 lib root@beagleboard:/# Thanks for the detail. Hopefully someone else in the community will reproduce what you've done and document more details on the issue. This is on my TODO list, but is currently falling pretty far down on the priorities. Thanks, Saad Namou Sr. Electrical Engineer tel: 781.575.5545 | [email protected]<mailto:[email protected]> [InstronLogo] <http://www.instron.us/wa/home/default_en.aspx> 825 University Avenue, Norwood, MA 02062 | www.instron.com To receive testing tips and application stories, subscribe<https://www.instron.com/wa/personalization_net/signup.aspx> to our newsletters -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
