OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000960OMNeT++Installer / Productizingpublic2016-05-30 10:252017-02-06 10:20
Reportereshur 
Assigned Torhornig 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformCentOSOSx86_64OS Version6.7 (final)
Product Version5.0 
Target VersionFixed in Version5.1pre3 
Summary0000960: omnetpp is configured but not make
Descriptionomnetpp is configured but not make
Steps To Reproduce0)# rpm -qa | grep 4.6.2

PyQt4-4.6.2-9.el6.x86_64
qt-postgresql-4.6.2-28.el6_5.x86_64
qt-sqlite-4.6.2-28.el6_5.x86_64
qt-devel-4.6.2-28.el6_5.x86_64
qt-mysql-4.6.2-28.el6_5.x86_64
phonon-backend-gstreamer-4.6.2-28.el6_5.x86_64
qt-4.6.2-28.el6_5.x86_64
qt-odbc-4.6.2-28.el6_5.x86_64
qt-x11-4.6.2-28.el6_5.x86_64



1)$ unzip omnetpp



2)$ ./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 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 -std=c++11... no
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... swig
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 winsock with CFLAGS="" LIBS="-lwsock32"... no
checking for qmake-qt4... qmake-qt4
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector" LIBS="-lQtGui -lQtCore -lQtOpenGL"... yes
checking for OpenSceneGraph with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losg -losgGA -losgViewer -losgQt -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losgEarth -losgEarthUtil"... yes
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-ltk8.6 -ltcl8.6"... no
checking for Tcl/Tk 8.5 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-ltk8.5 -ltcl8.5"... yes
checking for wish... wish
checking for java... java
checking for java... no
checking for JNI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -fno-strict-aliasing -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux"... yes
checking for mpic++... mpic++
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/include/openmpi-1.10-x86_64 -pthread -m64" LIBS=" -Wl,-rpath,$(OMNETPP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. -pthread -m64 -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64/openmpi-1.10/lib -Wl,--enable-new-dtags -L/usr/lib64/openmpi-1.10/lib -lmpi_cxx -lmpi"... yes
checking for PCAP with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lpcap"... yes
checking for PTHREAD with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lpthread"... yes
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/include/libxml2" LIBS="-lxml2"... yes
checking for Expat XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lexpat"... no
configure: Using LibXML for XML parsing
checking for zlib with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lz"... yes
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/local/akaroa/include" LIBS="-L/usr/local/akaroa/lib -lakaroa -lfl"... no
configure: WARNING: Optional package Akaroa not found
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating test/core/runtest
Configuring the IDE...

WARNING: The configuration script could not detect the following packages:

    Akaroa (optional)

Scroll up to see the warning messages (use shift+PgUp), and search config.log
for more details. While you can use OMNeT++ in the current configuration,
be aware that some functionality may be unavailable or incomplete.

NOTE: Some packages like MPI may need to be loaded explicitly using a
"module load <MODULENAME>" command prior to running ./configure.
Enter "module avail" to see the list of available modules on your system.

Your PATH contains /opt/eshur/stu/omnet/omnetpp-5.0/bin. Good!




3)$ make >/tmp/omnetpp.txt 2>/tmp/omnetpp.txt
...
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_EN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/lib64/qt4/bin/rcc: File does not exist '../../../../src/qtenv/icons.qrc'
In file included from ../../../../src/qtenv/loginspector.h:25,
                 from ../../../../src/qtenv/mainwindow.cc:40:
../../../../src/qtenv/textviewerwidget.h:21:25: error: QElapsedTimer: No such file or directory
...

Additional InformationIt is ready to execute required commands and to send result.
TagsNo tags attached.
Attached Filesgz file icon omnetpp.txt.gz [^] (3,135 bytes) 2016-05-30 10:25

- Relationships

-  Notes
(0001219)
rhornig (administrator)
2016-05-30 10:39

OMNeT++ is built against QT 4.8.6 so that's why it is failing building against qt 4.6. It would probably be good to check for the proper version in the configure script.
(0001220)
eshur (reporter)
2016-05-31 09:48

1) install Qt-4.8.6 in /usr/local/Trolltech/Qt-4.8.6

2) $ unzip omnetpp

3) modify configure.user set
QT_CFLAGS="-I/usr/local/Trolltech/Qt-4.8.6/include"
QT_LIBS="-L/usr/local/Trolltech/Qt-4.8.6/lib"

4)$ ./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 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 -std=c++11... no
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... swig
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 winsock with CFLAGS="" LIBS="-lwsock32"... no
checking for qmake-qt4... qmake-qt4
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector" LIBS="-lQtGui -lQtCore -lQtOpenGL"... yes
checking for OpenSceneGraph with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losg -losgGA -losgViewer -losgQt -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losgEarth -losgEarthUtil"... yes
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-ltk8.6 -ltcl8.6"... no
checking for Tcl/Tk 8.5 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-ltk8.5 -ltcl8.5"... yes
checking for wish... wish
checking for java... java
checking for java... no
checking for JNI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -fno-strict-aliasing -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux"... yes
checking for mpic++... mpic++
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/include/openmpi-1.10-x86_64 -pthread -m64" LIBS=" -Wl,-rpath,$(OMNETPP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. -pthread -m64 -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64/openmpi-1.10/lib -Wl,--enable-new-dtags -L/usr/lib64/openmpi-1.10/lib -lmpi_cxx -lmpi"... yes
checking for PCAP with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lpcap"... yes
checking for PTHREAD with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lpthread"... yes
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/include/libxml2" LIBS="-lxml2"... yes
checking for Expat XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lexpat"... no
configure: Using LibXML for XML parsing
checking for zlib with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-lz"... yes
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/local/akaroa/include" LIBS="-L/usr/local/akaroa/lib -lakaroa -lfl"... no
configure: WARNING: Optional package Akaroa not found
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating test/core/runtest
Configuring the IDE...

WARNING: The configuration script could not detect the following packages:

    Akaroa (optional)

Scroll up to see the warning messages (use shift+PgUp), and search config.log
for more details. While you can use OMNeT++ in the current configuration,
be aware that some functionality may be unavailable or incomplete.

NOTE: Some packages like MPI may need to be loaded explicitly using a
"module load <MODULENAME>" command prior to running ./configure.
Enter "module avail" to see the list of available modules on your system.

Your PATH contains /opt/eshur/stu/omnet/omnetpp-5.0/bin. Good!

5) make
...
===== Compiling qtenv ====
make[2]: Entering directory `/opt/eshur/stu/omnet/omnetpp-5.0/src/qtenv'
Invoking qmake-qt4 and building qtenv using qt4
OPP_CFLAGS=" -DHAVE_SWAPCONTEXT -DWITH_QTENV -DWITH_OSG -DWITH_TKENV -DWITH_MPI -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -I/usr/local/Trolltech/Qt-4.8.6/include -I/usr/include/QtOpenGL -Wno-ignored-attributes -Wno-inconsistent-missing-override" OPP_DEFINES="-DHAVE_SWAPCONTEXT -DWITH_QTENV -DWITH_OSG -DWITH_TKENV -DWITH_MPI -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER" qmake-qt4 "QMAKE_CXX=@echo $<; g++" "QMAKE_CC=@echo $<; gcc" "QMAKE_AR=ar cr" "CONFIG+=release" -o /opt/eshur/stu/omnet/omnetpp-5.0/out/gcc-release/src/qtenv/Makefile && (cd /opt/eshur/stu/omnet/omnetpp-5.0/out/gcc-release/src/qtenv && make)
/usr/lib64/qt4/bin/rcc: File does not exist '../../../../src/qtenv/icons.qrc'
make[3]: Entering directory `/opt/eshur/stu/omnet/omnetpp-5.0/out/gcc-release/src/qtenv'
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/mainwindow.ui -o ui_mainwindow.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/runselectiondialog.ui -o ui_runselectiondialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/stopdialog.ui -o ui_stopdialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/logfinddialog.ui -o ui_logfinddialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/logfilterdialog.ui -o ui_logfilterdialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/preferencesdialog.ui -o ui_preferencesdialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/rununtildialog.ui -o ui_rununtildialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/filteredobjectlistdialog.ui -o ui_filteredobjectlistdialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/comboselectiondialog.ui -o ui_comboselectiondialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/layersdialog.ui -o ui_layersdialog.h
/usr/lib64/qt4/bin/uic ../../../../src/qtenv/fileeditor.ui -o ui_fileeditor.h
../../../../src/qtenv/mainwindow.cc
In file included from ../../../../src/qtenv/loginspector.h:25,
                 from ../../../../src/qtenv/mainwindow.cc:40:
../../../../src/qtenv/textviewerwidget.h:21:25: error: QElapsedTimer: No such file or directory
In file included from ../../../../src/qtenv/logbuffer.h:22,
                 from ../../../../src/qtenv/qtenv.h:27,
                 from ../../../../src/qtenv/mainwindow.cc:27:
...
(0001221)
rhornig (administrator)
2016-06-02 11:21

You have installed QT 4.8.6 into /usr/local/Trolltech/Qt-4.8.6 while the configure script found qt in /usr/lib64/qt4 i.e. it is still using the old version not the one you have installed. If you type "which qmake-qt4" you will see which qt is actually detected.
(0001222)
eshur (reporter)
2016-06-07 08:26

1) In file
./configure add
...
# M4sh Initialization. ##
## -------------------- ##

export QTDIR=/usr/local/Trolltech/Qt-4.8.6
export QTLIB=/usr/local/Trolltech/Qt-4.8.6/lib
export QTINC=/usr/local/Trolltech/Qt-4.8.6/include
export QT_PLUGIN_PATH=/usr/local/Trolltech/Qt-4.8.6/plugins/:/home/eshur/.kde/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/
export PATH=/opt/eshur/stu/omnet/omnetpp-5.0/bin:/usr/local/Trolltech/Qt-4.8.6/bin:/usr/bin:/usr/local/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/home/eshur/bin

env >/tmp/env1.txt

# Be more Bourne compatible
...

2) In /usr/local/Trolltech/Qt-4.8.6/bin
exist qmake but not exist qmake-qt4

3) The errors is are here.

What my further actions?
(0001223)
eshur (reporter)
2016-06-08 12:45

Im upgrade OS Version - CentOS x86_64 6.8 (final). The errors is are here.

Whether use of QT5 is planned? In what terms?
(0001225)
eshur (reporter)
2016-11-17 06:25

Im upgrade OS Version - Debian 8.6. Problem resolved.
(0001226)
rhornig (administrator)
2016-11-17 10:03

Great. We are working on OMNeT++ 5.1 which has moved to Qt5 (more specifically we need Qt5.5 or later). We also enhanced the the configure script to be able to detect and use a user-built QT version. Earlier versions were detecting always the system Qt first. (You should have uninstalled the development version of the system QT packages. Add the user QT's bin directory to the path and then re-run configure to be able to detect the user QT libs.)
(0001231)
eshur (reporter)
2016-12-01 07:43

Thanks.

Please, close this case.
(0001232)
rhornig (administrator)
2016-12-01 10:00

Added support for user compiled QT version

- Issue History
Date Modified Username Field Change
2016-05-30 10:25 eshur New Issue
2016-05-30 10:25 eshur File Added: omnetpp.txt.gz
2016-05-30 10:39 rhornig Note Added: 0001219
2016-05-30 10:39 rhornig Assigned To => rhornig
2016-05-30 10:39 rhornig Status new => confirmed
2016-05-31 09:48 eshur Note Added: 0001220
2016-06-02 11:21 rhornig Note Added: 0001221
2016-06-07 08:26 eshur Note Added: 0001222
2016-06-08 12:45 eshur Note Added: 0001223
2016-11-17 06:25 eshur Note Added: 0001225
2016-11-17 10:03 rhornig Note Added: 0001226
2016-12-01 07:43 eshur Note Added: 0001231
2016-12-01 10:00 rhornig Note Added: 0001232
2016-12-01 10:00 rhornig Status confirmed => closed
2016-12-01 10:00 rhornig Resolution open => fixed
2016-12-01 10:00 rhornig Fixed in Version => 5.1
2017-02-06 10:20 rhornig Status closed => feedback
2017-02-06 10:20 rhornig Resolution fixed => reopened
2017-02-06 10:20 rhornig Status feedback => resolved
2017-02-06 10:20 rhornig Fixed in Version 5.1 => 5.1pre3
2017-02-06 10:20 rhornig Resolution reopened => fixed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker