Click here to Skip to main content
15,885,178 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following prolem:
After extracting qt-everywhere-opensource-src-4.8.5, when I configured it, I got the following message:

Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/*****/Downloads/qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++.

Then I tried to install qt dependencies, I got:

~$ sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libfontconfig1-dev : Depends: libfontconfig1 (= 2.8.0-3ubuntu9) but 2.8.0-3ubuntu9.1 is to be installed
Depends: libexpat1-dev but it is not going to be installed
libfreetype6-dev : Depends: libfreetype6 (= 2.4.8-1ubuntu2) but 2.4.8-1ubuntu2.1 is to be installed
libx11-dev : Depends: libx11-6 (= 2:1.4.99.1-0ubuntu2) but 2:1.4.99.1-0ubuntu2.1 is to be installed
Depends: libxcb1-dev but it is not going to be installed
Recommends: libx11-doc but it is not going to be installed
libxcursor-dev : Depends: libxcursor1 (= 1:1.1.12-1) but 1:1.1.12-1ubuntu0.1 is to be installed
libxext-dev : Depends: libxext6 (= 2:1.3.0-3build1) but 2:1.3.0-3ubuntu0.1 is to be installed
libxfixes-dev : Depends: libxfixes3 (= 1:5.0-4ubuntu4) but 1:5.0-4ubuntu4.1 is to be installed
libxi-dev : Depends: libxi6 (= 2:1.6.0-0ubuntu2) but 2:1.6.0-0ubuntu2.1 is to be installed
libxrandr-dev : Depends: libxrandr2 (= 2:1.3.2-2) but 2:1.3.2-2ubuntu0.2 is to be installed
libxrender-dev : Depends: libxrender1 (= 1:0.9.6-2build1) but 1:0.9.6-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve it?
Thanks for your help.
Posted

1 solution

How about installing the non dev packages first? What happens if you install the list of dependencies given in the list?

It may also help a lot to use synaptic.
If not installed: sudo apt-get install synaptic

Good luck!
 
Share this answer
 
Comments
Nguyen Hung Duong 11-Sep-13 4:05am    
Thanks, but it isn't work
E.F. Nijboer 11-Sep-13 5:05am    
What isn't working? Installing the non dev variants or synaptic? Also, what are you installing it on? Seems the example on the website with the packages you are trying to install are aimed for ubuntu 12.* (http://qt-project.org/doc/qt-4.8/install-x11.html)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900