Dvsdk
From Attie's Wiki
(Difference between revisions)
m |
m (→1. uhh) |
||
Line 62: | Line 62: | ||
Turns out you need to set the following: | Turns out you need to set the following: | ||
<source lang="bash"> | <source lang="bash"> | ||
− | export TOOLCHAIN=$ | + | export TOOLCHAIN=${LIBTOOL_SYSROOT_PATH} |
</source> | </source> |
Revision as of 17:35, 15 May 2012
Contents |
Pre-Install
# put `uname 0022` somewhere in your persistent environment # kill off dash sudo dpkg-reconfigure dash # install fakeroot sudo apt-get install fakeroot
Post-Install
The VERY first thing you should do is make clean
.
Mainly because TI are stupid, and don't understand the concept of making a packaged release - the SDK will come with part-built directories, some of which will make your build break with very weird errors.
It's usually a good idea to keep hold of the installed SDK directory. Most of the files were downloaded (not included in that ~1.5GB+ file you just 'executed').
Either make a tarball, use git, whatever
./setup.sh . linux-devkit/environment-setup make clean
Pre-Use
. linux-devkit/environment-setup
Some Fixes
1. uhh
$ make clean -- SNIP --- make[2]: Entering directory `/home/agrande/dvsdk_dm3730-evm_04_03_00_06_linux/graphics-sdk_4.03.00.02/tools/devmem2' rm -rf ./Obj *.o make[2]: Leaving directory `/home/agrande/dvsdk_dm3730-evm_04_03_00_06_linux/graphics-sdk_4.03.00.02/tools/devmem2' make[2]: Entering directory `/home/agrande/dvsdk_dm3730-evm_04_03_00_06_linux/graphics-sdk_4.03.00.02/tools/devmem2' mkdir -p ./Obj arm-arago-linux-gnueabi-gcc -Wall -DRELEASE -O2 -c devmem2.c -o Obj/devmem2.o devmem2.c: In function 'main': devmem2.c:104: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'off_t' devmem2.c:104: warning: format '%X' expects type 'unsigned int', but argument 4 has type 'long unsigned int' devmem2.c:123: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'long unsigned int' devmem2.c:123: warning: format '%X' expects type 'unsigned int', but argument 3 has type 'long unsigned int' mkdir -p ./Obj arm-arago-linux-gnueabi-g++ -o ./Obj/devmem2 ./Obj/devmem2.o -lm -ldl -L/lib -Wl /lib/../../lib/libc.so.6: file not recognized: File format not recognized collect2: ld returned 1 exit status make[2]: *** [Obj/devmem2] Error 1 make[2]: Leaving directory `/home/agrande/dvsdk_dm3730-evm_04_03_00_06_linux/graphics-sdk_4.03.00.02/tools/devmem2' make[1]: *** [builddevmem2] Error 2 make[1]: Leaving directory `/home/agrande/dvsdk_dm3730-evm_04_03_00_06_linux/graphics-sdk_4.03.00.02' make: *** [opengldemos_clean] Error 2
So yup, I said clean, and it's just cleaned, and then proceeded to build (or at least try) devmem2
Turns out you need to set the following:
export TOOLCHAIN=${LIBTOOL_SYSROOT_PATH}