Installing Qt free version 3.3.8 -> what is wrong here?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installing Qt free version 3.3.8 -> what is wrong here?
Hello,
I am trying to compile Qt version 3.3.8 here. Yes, it is fairly old, but i have a private project i want to compile in it, so i need the Qt environment good for that.
Before installing it for real, i am playing in RAM with it. There are things i always use in RAM only, so i have some folders created and populated at every computer reboot.
After that, i opened file /dev/shm/local/qt-x11-free-3.3.8/INSTALL in a separate tab, to follow its instructions. The commands and outputs of what i did, and a few comments i wrote now, are below, except some removed output that i had to make since LQ posts cannot be too long. The full terminal output i wanted to show is here:
Please find the first error message (not warning).
Are there errors which do not write "error" in its message? In vim, i searched for "error", case insensitively, and the first ocurrence is on line 2447 of the output I linked above. I copy the output from the first "g++" occurrence before line 2447, which is line 2421, until the output end, which is line 2579.
Code:
[...]
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE
-DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o
.obj/release-shared-mt/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**,
Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int
QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&,
int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid
ambiguous ‘else’ [-Wparentheses]
if (qt_use_rtl_extensions && type == QEvent::KeyPress)
^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
} else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*,
XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
|| ev->type == ClientMessage
~~~~~~~~~~~~~~~~~~~~~~~~~
&& ev->xclient.message_type == qt_qt_scrolldone )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared-mt/qapplication_x11.o'
failed
make[2]: *** [.obj/release-shared-mt/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2
2019.09.15 23:38:27 [ 2] me@here: /dev/shm/local/qt
$
but it compiled just fine
I just did a straight ./configure;make
Debian Sid, g++9.2
So you used /usr/local/ as the initial folder to decompress, the file, right? And installed it in the standard folders? Do you have many other (development or not) libraries installed? I do not have many. My ./configure output from yesterday pointed libraries not found in the system. I have not installed many things in my Debian.
I have imagined this, but it would not be bad, as long as i keep the virtual machine RAM low enough, so it does not reduce much the memory for the programs i run, which, sometimes gets too low or full.
How do i find debianish distributions with that possibility? Distros that have Qt3 installed or still possible to install?
So you used /usr/local/ as the initial folder to decompress, the file, right?
nope
just some random dir
Quote:
Originally Posted by dedec0
And installed it in the standard folders?
I didn't install, just compiled it ( it would have installed where I unpacked it, and I didn't pass --prefix to ./configure
Quote:
Originally Posted by dedec0
Do you have many other (development or not) libraries installed?
yes Lots
Something I have been meaning to fix
I've started to use LXC to compile projects
so I will be getting rid of build depends from the host.
Quote:
Originally Posted by dedec0
I do not have many. My ./configure output from yesterday pointed libraries not found in the system. I have not installed many things in my Debian.
I didn't review what was/wasn't found, I was fully expecting the ./configure to fail, and then I expected the build to fail.
I'm still surprised it built
If you just used some random dir, then my use of /dev/shm should be fine.
If you have lots of libraries and development libraries, could that be the reason of my failure? LXC... another time i look what this is.
If you could copy your output of ./configure and of make too, i could compare them. Right now, i just repeated my last try, which is exactly what i did to make the post. I did this:
1. Delete dir /dev/shm/local/qt-x11-free-3.3.8/
2. Keep the symlink /dev/shm/local/qt, which is now broken
3. cd /dev/shm/local/; tar xf ../qt-x11-free-3.3.8.tar.bz2
4. The environment variables kept the same (this means they are changed as Qt INSTALL file asks to be)
5. ./configure (no argument, different of what i did before)
6. make (which failed)
The output of that failed at the same error of yesterday, but has much less lines (explained by a configure with no "-verbose" argument, probably). I copy this output here (simplified in some parts, so it fits on a post... it was not as small as i imagined, although it felt much faster and smaller while it ran):
Code:
2019.09.16 07:38:26 [ 0] me@here: /dev/shm/local
$ /dev/shm/local
2019.09.16 07:38:27 [ 0] me@here: /dev/shm/local
$ rm -fr qt-x11-free-3.3.8/ > /dev/zero
2019.09.16 07:38:44 [ 0] me@here: /dev/shm/local
$ ls -a
. .. qt
2019.09.16 07:38:55 [ 0] me@here: /dev/shm/local
$ tar xf ../qt-x11-free-3.3.8.tar.bz2
2019.09.16 07:39:13 [ 0] me@here: /dev/shm/local
$ ls
qt qt-x11-free-3.3.8
2019.09.16 07:39:41 [ 0] me@here: /dev/shm/local
$ cd qt
2019.09.16 07:39:47 [ 0] me@here: /dev/shm/local/qt
$ vim ~/.bashrc; source ~/.bashrc
2019.09.16 07:58:13 [ 0] me@here: /dev/shm/local/qt
$ ls
total 184K
0 bin 8,0K FAQ 4,0K MANIFEST 4,0K README-QT.TXT
12K changes-3.3.8 0 include 0 mkspecs 0 src
0 config.tests 8,0K INSTALL 0 pics 0 tools
108K configure 0 lib 4,0K PLATFORMS 0 translations
0 doc 20K LICENSE.GPL 0 plugins 0 tutorial
0 examples 8,0K LICENSE.QPL 0 qmake
0 extensions 4,0K Makefile 4,0K README
2019.09.16 07:59:13 [ 0] me@here: /dev/shm/local/qt
$ ./configure
This is the Qt/X11 Open Source Edition.
[...]
Creating qmake. Please wait...
[...]
g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o
rm -f /dev/shm/local/qt-x11-free-3.3.8/bin/qmake
ln -s ../qmake/qmake /dev/shm/local/qt-x11-free-3.3.8/bin/qmake
This target is using the GNU C++ compiler (linux-g++).
Recent versions of this compiler automatically include code for
exceptions, which increase both the size of the Qt library and the
amount of memory taken by your applications.
You may choose to re-run configure with the -no-exceptions
option to compile Qt without exceptions. This is completely binary
compatible, and existing applications should continue to work.
Build type: linux-g++
Platform notes:
- Also available for Linux: linux-kcc linux-icc linux-cxx
Configuration ....... nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml sql release dll largefile stl ipv6 png no-gif zlib bigcodecs x11sm xshape xkb
STL support ......... yes
PCH support ......... no
IPv6 support ........ yes
Thread support ...... no
NIS support ......... no
CUPS support ........ no
Large File support .. partial
GIF support ......... no
MNG support ......... plugin (qt)
JPEG support ........ plugin (qt)
PNG support ......... yes (qt)
zlib support ........ yes
OpenGL support ...... no
NAS sound support ... no
Session management .. yes
XShape support ...... yes
Xinerama support .... no
Tablet support ...... no
Xcursor support ..... no
XRandR support ...... no
XRender support ..... no
Xft support ......... no
XKB Support ......... yes
Finding project files. Please wait...
241 projects found.
Creating makefiles. Please wait...
for /dev/shm/local/qt-x11-free-3.3.8/src/qt.pro
for /dev/shm/local/qt-x11-free-3.3.8/src/moc/moc.pro
for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/styles/styles.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/imageformats/imageformats.pro
for /dev/shm/local/qt-x11-free-3.3.8/examples/examples.pro
for /dev/shm/local/qt-x11-free-3.3.8/examples/fonts/fonts.pro
for /dev/shm/local/qt-x11-free-3.3.8/examples/sql/overview/overview.pro
for /dev/shm/local/qt-x11-free-3.3.8/examples/sql/sql.pro
for /dev/shm/local/qt-x11-free-3.3.8/extensions/extensions.pro
for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/examples/grapher/grapher.pro
for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/examples/trivial/trivial.pro
for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/src/qnp.pro
for /dev/shm/local/qt-x11-free-3.3.8/tutorial/tutorial.pro
for /dev/shm/local/qt-x11-free-3.3.8/tools/linguist/linguist.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/tools/tools.pro
for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/styles/windows/windows.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/imageformats/mng/mng.pro
for /dev/shm/local/qt-x11-free-3.3.8/examples/helpdemo/helpdemo.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/examples/mdi/mdi.pro
for /dev/shm/local/qt-x11-free-3.3.8/tutorial/t14/t14.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/tutorial/t1/t1.pro
for /dev/shm/local/qt-x11-free-3.3.8/config.tests/unix/largefile/largefiletest.pro
for /dev/shm/local/qt-x11-free-3.3.8/config.tests/unix/endian/endiantest.pro
[...]
for /dev/shm/local/qt-x11-free-3.3.8/tools/makeqpf/makeqpf.pro
for /dev/shm/local/qt-x11-free-3.3.8/tools/qvfb/qvfb.pro
for /dev/shm/local/qt-x11-free-3.3.8/qmake/examples/precompile/precompile.pro
Qt is now configured for building. Just run /usr/bin/make.
To reconfigure, run /usr/bin/make confclean and configure.
2019.09.16 07:59:51 [ 0] me@here: /dev/shm/local/qt
$ make
make[1]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
make[2]: 'qmake' is up to date.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qbuffer.o ../tools/qbuffer.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qptrcollection.o ../tools/qptrcollection.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qcstring.o ../tools/qcstring.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdatastream.o ../tools/qdatastream.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdatetime.o ../tools/qdatetime.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qdatetime.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfile.o ../tools/qfile.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qfile.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdir.o ../tools/qdir.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qdir.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfileinfo.o ../tools/qfileinfo.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qfileinfo.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgarray.o ../tools/qgarray.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgdict.o ../tools/qgdict.cpp
../tools/qgdict.cpp: In member function ‘QDataStream& QGDict::read(QDataStream&)’:
../tools/qgdict.cpp:950:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
look_ptr( (void *)k, d, op_insert );
^
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qglist.o ../tools/qglist.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qglobal.o ../tools/qglobal.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qglobal.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgvector.o ../tools/qgvector.cpp
[...]
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qtextcodec.o ../codecs/qtextcodec.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../codecs/qtextcodec.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qutfcodec.o ../codecs/qutfcodec.cpp
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./moc_yacc.o moc_yacc.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from moc.y:58:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
moc.y: In function ‘int yyparse()’:
moc.y:908:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
decl_specifier: storage_class_specifier { $$ = ""; }
^~
moc.y:910:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| fct_specifier { $$ = ""; }
^~
moc.y:911:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| FRIEND { skipFunc = TRUE; $$ = ""; }
^~
moc.y:912:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| TYPEDEF { skipFunc = TRUE; $$ = ""; }
^~
moc.y:918:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
decl_specs_opt: /* empty */ { $$ = ""; }
^~
moc.y:936:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
type_specifier: CONST { $$ = "const"; }
^~~~~~~
moc.y:937:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| VOLATILE { $$ = "volatile"; }
^~~~~~~~~~
moc.y:950:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
simple_type_name: CHAR { $$ = "char"; }
^~~~~~
moc.y:951:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| SHORT { $$ = "short"; }
^~~~~~~
moc.y:952:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| INT { $$ = "int"; }
^~~~~
moc.y:953:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| LONG { $$ = "long"; }
^~~~~~
moc.y:954:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| SIGNED { $$ = "signed"; }
^~~~~~~~
moc.y:955:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| UNSIGNED { $$ = "unsigned"; }
^~~~~~~~~~
moc.y:956:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| FLOAT { $$ = "float"; }
^~~~~~~
moc.y:957:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| DOUBLE { $$ = "double"; }
^~~~~~~~
moc.y:958:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| VOID { $$ = "void"; }
^~~~~~
moc.y:974:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
class_key: opt_template_spec CLASS { $$ = "class"; }
^~~~~~~
moc.y:975:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| opt_template_spec STRUCT { $$ = "struct"; }
^~~~~~~~
moc.y:1041:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
abstract_decl_opt: /* empty */ { $$ = ""; }
^~
moc.y:1061:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
declarator: dname { $$ = ""; }
^~
moc.y:1106:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
ptr_operators_opt: /* empty */ { $$ = ""; }
^~
moc.y:1122:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
cv_qualifier_list_opt: /* empty */ { $$ = ""; }
^~
moc.y:1131:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
cv_qualifier: CONST { $$ = "const"; }
^~~~~~~
moc.y:1132:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| VOLATILE { $$ = "volatile"; }
^~~~~~~~~~
moc.y:1170:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
| storage_class_specifier { $$ = ""; }
^~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfile_unix.o ../tools/qfile_unix.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qfile_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdir_unix.o ../tools/qdir_unix.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qdir_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
g++ -c -pipe -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfileinfo_unix.o ../tools/qfileinfo_unix.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from ../tools/qfileinfo_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
test -d ../../bin/ || mkdir -p ../../bin/
g++ -o ../../bin/moc ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o ./qdir_unix.o ./qfileinfo_unix.o
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
cd src && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src'
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng -I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qtaddons_x11.o kernel/qtaddons_x11.cpp
/dev/shm/local/qt-x11-free-3.3.8/bin/moc kernel/qapplication_x11.cpp -o .moc/release-shared/qapplication_x11.moc
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng -I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**, Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&, int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (qt_use_rtl_extensions && type == QEvent::KeyPress)
^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
} else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|| ev->type == ClientMessage
~~~~~~~~~~~~~~~~~~~~~~~~~
&& ev->xclient.message_type == qt_qt_scrolldone )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared/qapplication_x11.o' failed
make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2
2019.09.16 08:00:07 [ 2] me@here: /dev/shm/local/qt
$
(do you prefer i break the terminal output above to 80 columns, like i did before? Since we use 'code' tags, i find it hard to read the output in the browser)
Yes. Debian 9 (stretch... i prefer numbers instead of remembering names for every version of every distro).
Quote:
Originally Posted by Firerat
it looks like you are missing headers
have you complied anything on that system yet?
Just a few things, at most.
Quote:
Originally Posted by Firerat
try
Code:
sudo apt install build-essential
This is already installed, newest version, 12.3:
Code:
2019.09.16 13:20:02 [ 0] root@debian: /dev/shm/
# apt install build-essential
Reading package list... Ready
Building dependency tree
Reading status information... Ready
build-essential is already the newest version (12.3).
#
Quote:
Originally Posted by Firerat
if a make fails and there is much noise in the output
Code:
make -j1
you should only see the one error then.
Output of 'make -j1' using what the previous 'make' has done:
Code:
2019.09.16 13:28:18 [ 0] me@debian: /dev/shm/local/qt
$ make -j1
make[1]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
make[2]: 'qmake' is up to date.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
cd src && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src'
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS \
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA \
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG \
-DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE \
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC \
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng \
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ \
-o .obj/release-shared/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from ../include/qmap.h:46:0,
from kernel/qmime.h:43,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from kernel/qmime.h:43:0,
from kernel/qevent.h:45,
from kernel/qobject.h:45,
from kernel/qwidget.h:43,
from kernel/qdesktopwidget.h:40,
from kernel/qapplication.h:42,
from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**, Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
^
In file included from kernel/qt_x11_p.h:66:0,
from kernel/qinputcontext_p.h:63,
from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&, int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (qt_use_rtl_extensions && type == QEvent::KeyPress)
^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
} else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|| ev->type == ClientMessage
~~~~~~~~~~~~~~~~~~~~~~~~~
&& ev->xclient.message_type == qt_qt_scrolldone )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared/qapplication_x11.o' failed
make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2
2019.09.16 13:28:23 [ 2] me@debian: /dev/shm/local/qt
$
2877 if [ "$CFG_STL" = "no" ]; then
2878 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL"
2879 else
2880 QMAKE_CONFIG="$QMAKE_CONFIG stl"
2881 fi
the tests for stl are in
config.tests/unix/stl/
I am unsure of what i should understand from your post, and i do not know what STL is. I rerun ./configure with no arguments, and STL is enabled. So i './configure -help' -ed and rerun configure with STL disabled. It compiled! Look:
Code:
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial
Enjoy! - the Trolltech team
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.