[UPDATED] Problem with installing OMNET++5.2 QT5

2,871 views
Skip to first unread message

Julian Blüml

unread,
Nov 13, 2017, 8:37:13 AM11/13/17
to omn...@googlegroups.com
Hello,

I was trying to install omnet++5.2 on my machine (linux Mint18 64Bit)
I followed all the instructions of the guide installed all packages and so on.
But when running ./configure i have a problem with qt5

This is the output:

$ ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... no
checking for icc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for clang++... no
checking for clang... no
checking for icpc... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... g++
checking for ranlib... ranlib
checking whether g++ supports -fno-stack-protector... yes
checking whether g++ supports -Wl,--no-as-needed... yes
checking whether g++ supports -Wl,--as-needed... yes
checking for swapcontext... yes
checking if shared libs need -fPIC... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... test failed
checking for flags needed to link with static libs containing simple modules... --whole-archive
configure: NOTE: Use the following syntax when linking with static libraries
configure: containing simple modules and other dynamically registered components:
configure:    g++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-archive ...
checking whether linker supports -rpath... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for make... make
checking for perl... perl
checking for swig... not found
checking for math with CFLAGS="" LIBS=""... yes
checking for standard C++ lib with CFLAGS="" LIBS="-lstdc++"... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking for dlopen with CFLAGS="" LIBS="-ldl"... yes
checking for qmake... /usr/bin/qmake
checking for moc... /usr/bin/moc
checking for uic... /usr/bin/uic
checking for rcc... /usr/bin/rcc
checking for Qt5 with CFLAGS=" -std=c++11  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport" LIBS="-lQt5Gui -lQt5Core -lQt5Widgets -lQt5PrintSupport -lQt5OpenGL -L/usr/lib/x86_64-linux-gnu -Wl,-rpath=/usr/lib/x86_64-linux-gnu"... no
checking for Qt5 with CFLAGS=" -std=c++11  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport" LIBS="-lQtGui5 -lQtCore5 -lQtWidgets5 -lQtPrintSupport5 -lQtOpenGL5"... no
checking for Qt5 with CFLAGS=" -std=c++11  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport  -fPIC -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport" LIBS=" -framework QtGui -framework QtCore -framework QtWidgets -framework QtPrintSupport -framework QtOpenGL"... no
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.

when running qmake --version this is the output:

$ qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

which tells me that a correct version is installed, but still the makefile is not made...

I hope you guys can help me :)
Thank you in advace!

Attila Török

unread,
Nov 13, 2017, 8:55:29 AM11/13/17
to OMNeT++ Users
Hi!

Which packages did you install exactly?
Could you attach your config.log file?

Attila

2017-11-13 14:37 GMT+01:00 Julian Blüml <bluem...@gmail.com>:
Hello,

please ignore my last question, after submitting I found out that I left out some basic information!

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Julian Blüml

unread,
Nov 13, 2017, 11:18:10 AM11/13/17
to OMNeT++ Users
I installed:

$ sudo apt-get install build-essential gcc g++ bison flex perl qt5-default tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-3.0-0

Thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
config.log

Attila Török

unread,
Nov 13, 2017, 11:26:33 AM11/13/17
to OMNeT++ Users
Try installing libqt5opengl5-dev as well.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

Julian Blüml

unread,
Nov 13, 2017, 11:35:59 AM11/13/17
to OMNeT++ Users
Thank you very much you are my hero :P
now it seems as it will work i will try to install it now, hope it will work!

Muhammad Jamil

unread,
Aug 6, 2020, 2:32:16 AM8/6/20
to OMNeT++ Users
hello i am facing serious issue in omnettpp intalation
this message appears when i enter ./configure command: 
configure: error: Cannot build Qt apps, probably due to missing or too old Qt pa                                                                                                                ckages. Make sure Qt development packages are installed and newer than Qt 5.4. Y                                                                                                                ou can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.use                                                                                                                r.
Please help me resolving this issue
To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.

twisha dhingra

unread,
Aug 6, 2020, 2:45:55 AM8/6/20
to omn...@googlegroups.com
Hi

You can disable Qtenv by:
1) Open cmd and move to Omnetpp location
2) Open configure file using notepad....notepad configure
) In this file you can search for WITH_QTENV, which you can set to no.

Hope this helps.
Thanks

Muhammad Jamil

unread,
Aug 6, 2020, 2:51:37 AM8/6/20
to OMNeT++ Users
This is not working.this generate other issues
Reply all
Reply to author
Forward
0 new messages