-QT-mouse-tslib in the compilation of ARM platform tslib and QTE source code package Configuration

Source: Internet
Author: User
Tags automake

I learned to explore myself, it is not easy, in order to be able to configure in the qt-embedded-linux-opensource-src-4.5.3-QT-mouse-tslib no problem, but I have been tossing for three days, below I will post my work achievements and share them with you:

One-click Download tslib-1.4.tar, compile

1. of course, the following content refers to other articles on the network. There are three related software before installation: Autoconf, automake, libtool. search for and install the corresponding software package on your system installation disc with these keywords. Don't worry, you have already installed it. If you have installed it, you will be prompted.

2. I usually create a myfile directory under the/home directory, put your own unzipping file inside: CD/home/myfile tar xvf (tslib-1.4 directory)/tslib-1.4.tar

3. CD tslib-1.4

4. this step is very important: Export cc = ...., export cxx = ..., generally, Cc = arm-Linux-GCC, cxx = arm-Linux-G ++, but not all. For example, the smartarm3250 I used by Zhou licong, the above cross-compilation tool is arm-VFP-Linux-GNU-GCC, arm-VFP-Linux-GNU-G ++, so I should write: Export cc = arm-VFP-Linux-GNU-GCC, export cxx = arm-VFP-Linux-GNU-G ++

For more information about step 1, before step 2, you need to go to your/etc/profile or. in bash_profile, add the cross-compilation tool path: Export Path = $ path:/opt/NXP /... /bin (your cross-compilation tool path), and then use source profile or source. bash_profile makes your settings take effect.

Another step: Export Path = $ path:/opt/NXP/gcc-4.3.2-glibc/bin (add the path of the compiler), otherwise the cannot create excutable files or something will appear, this is a bloody lesson, which wastes two days.

5 ../autogen. Sh

6 ../configure -- prefix =/usr/local/tslib -- Host = arm-VFP-Linux-GNU av_cv_func_malloc_0_nonnull = Yes

-- Prefix is followed by the installation path you specified

7. Make

8. make install

After completing the above work, you need to enter the/usr/local/tslib/bin directory and run the file command to verify: file + file name to be verified. Verify a.txt, that is, file a.txt. Note: If the ELF File Information contains the word "arm", if it is "80386", it indicates that the compiler you use is not a cross compiler, but the GCC and G ++ of the system.

2. ARM platform configuration qt-embedded-linux-opensource-src-4.5.3

After entering the decompressed directory, I will not talk about other compilation options such as./configure...-QT-mouse-tslib.... Generally, no problem will occur. -QT-mouse-tslib: This option is specifically for touch screens. A considerable number of people have the following problem: thetslib functionality test failed! You might need to modify the include and Library
Search paths by editing qmake_incdir and qmake_libdir in...

So you can do this: add in the ../qt-embedded-linux-opensource-src-4.5.3/mkspecs/qws/Linux-arm-G ++/qmake. conf file
Qmake_incdir =/usr/local/tslib/include

Qmake_libdir =/usr/local/tslib/lib
Of course, it can also be in. add-I/=/usr/local/tslib/include-L =/usr/local/tslib/lib to/configure to solve the problem, but it still doesn't work after you try the above methods. What should you do? This is why I wrote this article specially today.

In particular, the cuteqt blog article titled 'configuration error of qtopia/Qt-extended "is mentioned. As mentioned above, the actual solution to this problem is as follows. add-verbose to the/configure option, so that you can tell in detail the cause of the error. I also find the final problem at this prompt. The second method mentioned in this article, in fact, has the same effect as the plus-verbose, so I will not repeat it here.

 

After the-verbose option is added, the compilation tool arm-Linux-G ++ cannot be found. I read... /mkspecs/qws/Linux-arm-G ++/qmake. conf

File, qmake_cc = arm-Linux-GCC, qmake_cxx = arm-Linux-G ++. that's right, because my cross-compilation tool is arm-VFP-Linux-GNU-GCC, arm-VFP-Linux-GNU-G ++, therefore, qmake_cc = arm-VFP-Linux-GNU-GCC, qmake_cxx = arm-VFP-Linux-GNU-G ++

 

Re-run./configure, and the following problem occurs:/opt/../ld: Skipping incompatible/usr/local/tslib/lib/libts. So when searching for-lts

:/Opt/../ld: cannot find-lts the cause of the above problem is obvious. Your libts. So is incompatible with the Platform specified in./configure. That is, if the tslib library file is generated incorrectly, your cross-compilation environment is faulty. That's why I stress compiling tslib-1.4. Because before, when I first compiled the tslib-1.4, there was no export CC and cxx, that is, the generated libts. So is the 80386 Type Library file. After knowing the truth, we recompile the method according to the tslib-1.4 described above, and then enter the qt-embedded-linux-opensource-src-4.5.3./configure
... The configuration is successful. Done!

 

Supplement: Although tslib has been compiled, it is found that although-I and-l are specified during the QTE source code compilation, the QTE is not recognized and cannot be modified no matter how it is modified, in this case, tslib is not correctly compiled.

Some netizens on the Internet say they want to install AutoConfig automake libtool. However, the redhat5 and redhat6 I use do not need to be installed (it may have been installed)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.