Compiling Qt 4.8.3 on Ubuntu 12 with an error

I am new to Ubuntu and I get a message building Qt 4.8.3 on Ubuntu 12:

The basic XLib functionality test failed! You may need to change the enable and search libraries by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in / home / majidmax / qt -everywhere-opensource-src-4.8.3 / mkspecs / linux-g ++.

what are the right steps to create Qt on Ubuntu?

+4
source share
6 answers

http://qt-project.org/doc/qt-4.8/requirements-x11.html

the website provides a list of packages to be installed

try ~

+5
source

What about sudo apt-get build-dep qt4-qmake ?

Try running this command before compiling Qt (on distributions like Debian).

+4
source

These are the packages you need to install, and you will be fine. I had the same issue and it worked for me. They came from the link provided by Garlic Tseng in the accepted answer. I just put them here for convenience:

 libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev 

One (copy sliding) command to set all:

 sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev 
+1
source

what the proper steps to build Qt on Ubuntu?

0
source

The same problem I encountered in fedora20 (64-bit) for Qt-4.8.3

1) - yum install libXext-devel

(An Internet connection should be there to check the dependency and install the entire dependency).

2) -./configure

3) - make

4) - complete the installation

5) - Successful completion of the installation.

0
source

The error message does not provide much information about the actual XLib failure error.

To get additional information about the error that caused the error, you can do the xlib tests:

 $ cd <Qt_Source_Directory>/config.tests/x11/xlib/ $ make g++ -Wl,-O1 -o xlib xlib.o -L/usr/X11R6/lib -ltcg -lXext -lX11 -lm /usr/bin/ld: cannot find -ltcg collect2: error: ld returned 1 exit status make: *** [xlib] Error 1 

In my case above, I used -ltcg, which was interpreted as an explicit library for inclusion. I used this option since it is specified in qt 4.8 configure options as:

Using time code time code

When I looked at the configuration options using ./configure --help , I noticed that this option was not specified. Removing the option from my configuration line fixed my problem.

0
source

Source: https://habr.com/ru/post/1443970/


All Articles