I thought I had this worked out when I posed the question in this thread about whether to use code sourcery or SDK/linux-devkit toolchain:
http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/t/138771.aspx
I finally got my touchscreen working in tslib by building in a new plugin for it that is a slightly modified copy of the original input-raw.c.
I do have ts_test and ts_calibrate working.
But when I try to run a Qt app, built in CCSv5, on my target I get this:
__ts_load_module panjit
/home/user/ti-sdk-am3517-evm-05.02.00.00/targetNFS/usr/lib/ts/panjit.so dlopen() failed: /home/user/ti-sdk-am3517-evm-05.02.00.00/targetNFS/usr/lib/ts/panjit.so: cannot open shared object file: No such file or directory
Couldnt load module panjit
No raw modules loaded.
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation!
Note that Qt seems to be somehow giving tslib a module path that is the host x86 Ubuntu path to the target module directory.
panjit.so is there, but on the target it is, of course, in /usr/lib/ts.
So that's Question 1: where is Qt getting that path from?
To try to understand where that might come from, I went back to trying to build my own cross-sompiled Qt libraries.
I downloaded source from http://qt.nokia.com/downloads.
I found that when I tried to use the TI supplied linux-TIarm7-g++ mkspec, ./configure tells me that that compiler is not supported.
Looking at the Nokia doc site, it lists only code sourcery compiler as supported.
So, question 2: if the TI linux-devkit toolchain is preferred, how to get Qt to accept it? Or do I have to use the code sourcery tools to cross compile Qt embedded?
Anyway, that's what I am trying now.
I tried to configure Qt 4.6.4 (I started with this since it's close to the 4.6.3 that ships with the am3517 SDK).
I think the configure went OK, but when I run make I get a segmentation fault when uic is run on this file:
/home/user/qt-everywhere-opensource-src-4.6.2/bin/uic dialogs/qpagesetupwidget.ui -o .uic/debug-shared-emb-arm/ui_qpagesetupwidget.h
I switched to 4.7.4, I can also configure that with the codesourcery tools, but again, running make I have problems:
/home/user/qt-everywhere-opensource-src-4.7.4/src/tools/bootstrap/libbootstrap.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
This apparently is running g++ which would seem wrong, since that is g++ on my x86 Ubuntu host machine, it should be running the toolchain g++, I think?
Question 3: Is anyone able to cross compile Qt from source using either the TI or code sourcery toolchain? I'm probably missing something fairly obvious in my environment, but I haven't figured it out yet.
I realize that question 3 is more of a Qt-embedded question, but maybe someone in the TI embedded linux world will have some hints and maybe other victims of this platform can find answers here, if I can figure it out.