"gcc-debug" are missing from C:\omnetpp-5.0\lib. Issue

2,484 views
Skip to first unread message

maj...@temple.edu

unread,
Mar 27, 2017, 5:13:49 PM3/27/17
to OMNeT++ Users
Dears,

I'm trying to get started with OMNeT++ to learn how to simulate some networking schemes ..
I've went through the installation process, but there seems to be some errors after I execute the "make' command but I still can run the "omnetcpp" and get the IDE. It then prompt me to select a workspace ..


Once it starts, in the "Project Explorer" I see the following:



When I Right-Click the "inet" project and hit "Build Project", I keep getting the following box:


Now, I have MinGW installed and the GCC compiler and the Path in present as (C:\MinGW\bin) in the Environment Variables.

You can see below the execution of the two commands ("./configure") and ("make"):

/c/omnetpp-5.0$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
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 clang accepts -g... yes
checking for clang option to accept ISO C89... unsupported
checking for clang++... clang++
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking for clang++... clang++
checking for ranlib... ranlib
checking whether clang++ supports -std=c++11... yes
checking whether clang++ supports -fno-stack-protector... yes
checking whether clang++ supports -Wl,--no-as-needed... yes
checking whether clang++ supports -Wl,--as-needed... yes
checking for swapcontext... no
checking if shared libs need -fPIC... no
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:    clang++ ... -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"... no
configure: WARNING: no dlopen(): dynamic loading of libs not possible
checking for winsock with CFLAGS="" LIBS="-lwsock32"... yes
checking for qmake-qt4... qmake-qt4
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-re                                                                          gister -fno-stack-protector" LIBS="-lQtGui -lQtCore -lQtOpenGL"... no
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-re                                                                          gister -fno-stack-protector -I/mingw32/include/qt4" LIBS="-lQtGui4 -lQtCore4 -lQtOpenGL4"... yes
checking for OpenSceneGraph with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-de                                                                          precated-register -fno-stack-protector " LIBS="-losg -losgGA -losgViewer -losgQt -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecat                                                                          ed-register -fno-stack-protector " LIBS="-losgEarth -losgEarthUtil"... yes
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprec                                                                          ated-register -fno-stack-protector " LIBS="-ltk8.6 -ltcl8.6"... no
checking for Tcl/Tk 8.5 with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprec                                                                          ated-register -fno-stack-protector " LIBS="-ltk8.5 -ltcl8.5"... no
checking how to run the C++ preprocessor... clang++ -E
checking for X... no
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprec                                                                          ated-register -fno-stack-protector  " LIBS=" -ltk86 -ltcl86"... yes
checking for wish... wish
checking for java... java
checking for java... java
configure: WARNING: JAVA_HOME variable not set.
checking for JNI with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-re                                                                          gister -fno-stack-protector "... no
checking for mpic++... not found
checking for mpicxx... not found
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-re                                                                          gister -fno-stack-protector " LIBS="  -Wl,--enable-auto-import -L/usr/bin -L/usr/lib -L/mingw32/lib -Wl,-rpath,$(OMNET                                                                          PP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. -lmpi"... no
configure: WARNING: Optional package MPI (needed for parallel simulation) not found.
checking for WinPCAP with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecate                                                                          d-register -fno-stack-protector" LIBS=""... yes
checking for PCAP with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-r                                                                          egister -fno-stack-protector " LIBS="-lpcap"... yes
checking for PTHREAD with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecate                                                                          d-register -fno-stack-protector  " LIBS="-lpthread"... yes
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno                                                                          -deprecated-register -fno-stack-protector  " LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno                                                                          -deprecated-register -fno-stack-protector  -I/usr/include/libxml2" LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno                                                                          -deprecated-register -fno-stack-protector  -I/mingw32/include/libxml2" LIBS="-lxml2"... yes
checking for Expat XML parser with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-                                                                          deprecated-register -fno-stack-protector  " LIBS="-lexpat"... yes
configure: Using LibXML for XML parsing
checking for zlib with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated-r                                                                          egister -fno-stack-protector  " LIBS="-lz"... yes
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/include -Wno-deprecated                                                                          -register -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

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

    MPI (optional)  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.

Your PATH contains C:/omnetpp-5.0/bin. Good!

/c/omnetpp-5.0$ make
make MODE=release
make[1]: Entering directory '/c/omnetpp-5.0'
***** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.dll ****
===== Checking environment =====
===== Compiling utils ====
make[2]: Entering directory '/c/omnetpp-5.0/src/utils'
Creating executable: C:/omnetpp-5.0/out/gcc-release/src/utils/opp_lcg32_seedtool.exe
Creating executable: C:/omnetpp-5.0/out/gcc-release/src/utils/abspath.exe
Copying scripts to bin directory...
make[2]: Leaving directory '/c/omnetpp-5.0/src/utils'
===== Compiling common ====
make[2]: Entering directory '/c/omnetpp-5.0/src/common'
lcgrandom.cc
filereader.cc
linetokenizer.cc
stringpool.cc
stringtokenizer.cc
fnamelisttokenizer.cc
expression.cc
LEX: expression.lex
YACC: expression.y
matchexpression.cc
YACC: matchexpression.y
matchexpression.y:22.1-12: warning: deprecated directive, use ‘%pure-parser’ [-Wdeprecated]
 %pure_parser
 ^^^^^^^^^^^^
matchexpression.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
matchexpressionlexer.cc
patternmatcher.cc
unitconversion.cc
displaystring.cc
fileglobber.cc
fileutil.cc
stringutil.cc
commonutil.cc
exception.cc
bigdecimal.cc
enumstr.cc
stringtokenizer2.cc
colorutil.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppcommon.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/common'
===== Compiling layout ====
make[2]: Entering directory '/c/omnetpp-5.0/src/layout'
geometry.cc
graphcomponent.cc
heapembedding.cc
startreeembedding.cc
forcedirectedparametersbase.cc
forcedirectedparameters.cc
forcedirectedembedding.cc
graphlayouter.cc
basicspringembedderlayout.cc
forcedirectedgraphlayouter.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/libopplayout.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/layout'
===== Compiling eventlog ====
make[2]: Entering directory '/c/omnetpp-5.0/src/eventlog'
ievent.cc
ieventlog.cc
eventlogfacade.cc
eventlogtablefacade.cc
sequencechartfacade.cc
eventlog.cc
eventlogindex.cc
messagedependency.cc
event.cc
eventlogentry.cc
eventlogentries.cc
filteredevent.cc
filteredeventlog.cc
eventlogentryfactory.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppeventlog.dll
eventlogtool.cc
Creating executable: C:/omnetpp-5.0/out/gcc-release/src/eventlog/eventlogtool.exe
make[2]: Leaving directory '/c/omnetpp-5.0/src/eventlog'
===== Compiling scave ====
make[2]: Entering directory '/c/omnetpp-5.0/src/scave'
arraybuilder.cc
channel.cc
commonnodes.cc
compoundfilter.cc
dataflowmanager.cc
datasorter.cc
diffquot.cc
filewriter.cc
filternodes.cc
customfilter.cc
stddev.cc
idlist.cc
mergernodes.cc
nodetype.cc
nodetyperegistry.cc
resultfilemanager.cc
slidingwinavg.cc
vectorfilereader.cc
vectorfilewriter.cc
windowavg.cc
xyplotnode.cc
indexedvectorfile.cc
vectorfileindexer.cc
indexfile.cc
scaveutils.cc
scaveexception.cc
enumtype.cc
export.cc
teenode.cc
indexedvectorfilereader.cc
xyarray.cc
fields.cc
indexedvectorfilereader2.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppscave.dll
scavetool.cc
Creating executable: C:/omnetpp-5.0/out/gcc-release/src/scave/scavetool.exe
make[2]: Leaving directory '/c/omnetpp-5.0/src/scave'
===== Compiling nedxml ====
make[2]: Entering directory '/c/omnetpp-5.0/src/nedxml'
perl dtdclassgen.pl C:/omnetpp-5.0/doc/ned2/ned2.dtd
nedelements.cc
nedelement.cc
nederror.cc
nedexception.cc
nedvalidator.cc
neddtdvalidator.cc
neddtdvalidatorbase.cc
nedsyntaxvalidator.cc
nedcrossvalidator.cc
nedfilebuffer.cc
nedparser.cc
nedyylib.cc
YACC: ned2.y
ned2.y: warning: 7 shift/reduce conflicts [-Wconflicts-sr]
LEX: ned2.lex
ned2.lex:225: warning, rule cannot be matched
nedtools.cc
nedutil.cc
ned2generator.cc
ned1generator.cc
xmlgenerator.cc
nedxmlparser.cc
nedsaxhandler.cc
saxparser_libxml.cc
YACC: ned1.y
ned1.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
LEX: ned1.lex
YACC: msg2.y
msg2.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
LEX: msg2.lex
msgcppgenerator.cc
nedresourcecache.cc
nedtypeinfo.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppnedxml.dll
nedtool.cc
Creating executable: C:/omnetpp-5.0/out/gcc-release/src/nedxml/nedtool.exe
make[2]: Leaving directory '/c/omnetpp-5.0/src/nedxml'
===== Compiling sim ====
make[2]: Entering directory '/c/omnetpp-5.0/src/sim'
carray.cc
cdelaychannel.cc
cdataratechannel.cc
cboolparimpl.cc
cchannel.cc
cobjectfactory.cc
ccomponent.cc
ccomponenttype.cc
cconfiguration.cc
cconfigoption.cc
ccanvas.cc
ccoroutine.cc
cdefaultlist.cc
cdensityestbase.cc
cfutureeventset.cc
cdetect.cc
cdisplaystring.cc
cdoubleparimpl.cc
cdynamicexpression.cc
cenvir.cc
cenum.cc
cevent.cc
cexception.cc
cfsm.cc
cnedmathfunction.cc
cgate.cc
chistogram.cc
cksplit.cc
clcg32.cc
clistener.cc
clog.cc
clongparimpl.cc
cmersennetwister.cc
cmessage.cc
cpacket.cc
cmsgpar.cc
cmodule.cc
ceventheap.cc
chasher.cc
cfingerprint.cc
ctimestampedvalue.cc
cmatchexpression.cc
cpatternmatcher.cc
cmessageprinter.cc
cnullenvir.cc
envirext.cc
cnedfunction.cc
cnedvalue.cc
cobject.cc
coutvector.cc
cnamedobject.cc
cosgcanvas.cc
cpar.cc
cparimpl.cc
cownedobject.cc
cproperties.cc
cproperty.cc
crandom.cc
cresultfilter.cc
cresultlistener.cc
cresultrecorder.cc
clifecyclelistener.cc
cpsquare.cc
cqueue.cc
cpacketqueue.cc
cscheduler.cc
csimplemodule.cc
csimulation.cc
cstatistic.cc
cstddev.cc
cstlwatch.cc
cstringparimpl.cc
cstringpool.cc
cstringtokenizer.cc
cclassdescriptor.cc
ctopology.cc
cvarhist.cc
cvisitor.cc
cwatch.cc
cxmlelement.cc
cxmlparimpl.cc
distrib.cc
nedfunctions.cc
errmsg.cc
globals.cc
cregistrationlist.cc
LEX: expr.lex
YACC: expr.y
minixpath.cc
onstartup.cc
simtime.cc
task.cc
util.cc
nedsupport.cc
MSGC: sim_std.msg
sim_std_m.cc
resultfilters.cc
resultrecorders.cc
ccommbuffer.cc
cparsimcomm.cc
MSGC: sim_std_osg.msg
sim_std_osg_m.cc
netbuilder/cexpressionbuilder.cc
netbuilder/cneddeclaration.cc
netbuilder/cnedloader.cc
netbuilder/cdynamicchanneltype.cc
netbuilder/cdynamicmoduletype.cc
netbuilder/cnednetworkbuilder.cc
parsim/cmemcommbuffer.cc
parsim/cparsimpartition.cc
parsim/cplaceholdermod.cc
parsim/cproxygate.cc
parsim/cparsimsynchr.cc
parsim/cparsimprotocolbase.cc
parsim/cnosynchronization.cc
parsim/cnullmessageprot.cc
parsim/clinkdelaylookahead.cc
parsim/cidealsimulationprot.cc
parsim/cispeventlogger.cc
parsim/ccommbufferbase.cc
parsim/cfilecomm.cc
parsim/cfilecommbuffer.cc
parsim/cnamedpipecomm-win.cc
parsim/cnamedpipecomm.cc
parsim/parsimutil.cc
parsim/creceivedexception.cc
parsim/cmpicomm.cc
parsim/cmpicommbuffer.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppsim.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/sim'
===== Compiling envir ====
make[2]: Entering directory '/c/omnetpp-5.0/src/envir'
appreg.cc
args.cc
startup.cc
evmain.cc
logformatter.cc
envirbase.cc
fsutils.cc
sectionbasedconfig.cc
inifilereader.cc
scenario.cc
valueiterator.cc
fileoutvectormgr.cc
fileoutscalarmgr.cc
filesnapshotmgr.cc
indexedfileoutvectormgr.cc
akoutvectormgr.cc
speedometer.cc
matchableobject.cc
matchablefield.cc
akaroarng.cc
cxmldoccache.cc
eventlogwriter.cc
objectprinter.cc
eventlogfilemgr.cc
runattributes.cc
intervals.cc
statisticparser.cc
visitor.cc
envirutils.cc
main.cc
Creating static library: C:/omnetpp-5.0/lib/gcc/liboppmain.a
clang++ -shared  -Wl,--enable-auto-import -L/usr/bin -L/usr/lib -L/mingw32/lib -Wl,-rpath,C:/o                                                                                                  mnetpp-5.0/lib -Wl,-rpath,C:/omnetpp-5.0/tools/win32/lib -Wl,-rpath,. -o C:/omnetpp-5.0/out/gc                                                                                                  c-release/src/envir/liboppenvir.dll C:/omnetpp-5.0/out/gcc-release/src/envir/appreg.o C:/omnet                                                                                                  pp-5.0/out/gcc-release/src/envir/args.o C:/omnetpp-5.0/out/gcc-release/src/envir/startup.o C:/                                                                                                  omnetpp-5.0/out/gcc-release/src/envir/evmain.o C:/omnetpp-5.0/out/gcc-release/src/envir/logfor                                                                                                  matter.o C:/omnetpp-5.0/out/gcc-release/src/envir/envirbase.o C:/omnetpp-5.0/out/gcc-release/s                                                                                                  rc/envir/fsutils.o C:/omnetpp-5.0/out/gcc-release/src/envir/sectionbasedconfig.o C:/omnetpp-5.                                                                                                  0/out/gcc-release/src/envir/inifilereader.o C:/omnetpp-5.0/out/gcc-release/src/envir/scenario.                                                                                                  o C:/omnetpp-5.0/out/gcc-release/src/envir/valueiterator.o C:/omnetpp-5.0/out/gcc-release/src/                                                                                                  envir/fileoutvectormgr.o C:/omnetpp-5.0/out/gcc-release/src/envir/fileoutscalarmgr.o C:/omnetp                                                                                                  p-5.0/out/gcc-release/src/envir/filesnapshotmgr.o C:/omnetpp-5.0/out/gcc-release/src/envir/ind                                                                                                  exedfileoutvectormgr.o C:/omnetpp-5.0/out/gcc-release/src/envir/akoutvectormgr.o C:/omnetpp-5.                                                                                                  0/out/gcc-release/src/envir/speedometer.o C:/omnetpp-5.0/out/gcc-release/src/envir/matchableob                                                                                                  ject.o C:/omnetpp-5.0/out/gcc-release/src/envir/matchablefield.o C:/omnetpp-5.0/out/gcc-releas                                                                                                  e/src/envir/akaroarng.o C:/omnetpp-5.0/out/gcc-release/src/envir/cxmldoccache.o C:/omnetpp-5.0                                                                                                  /out/gcc-release/src/envir/eventlogwriter.o C:/omnetpp-5.0/out/gcc-release/src/envir/objectpri                                                                                                  nter.o C:/omnetpp-5.0/out/gcc-release/src/envir/eventlogfilemgr.o C:/omnetpp-5.0/out/gcc-relea                                                                                                  se/src/envir/runattributes.o C:/omnetpp-5.0/out/gcc-release/src/envir/intervals.o C:/omnetpp-5                                                                                                  .0/out/gcc-release/src/envir/statisticparser.o C:/omnetpp-5.0/out/gcc-release/src/envir/visito                                                                                                  r.o C:/omnetpp-5.0/out/gcc-release/src/envir/envirutils.o -Wl,--out-implib,C:/omnetpp-5.0/out/                                                                                                  gcc-release/src/envir/liboppenvir.a 2>/dev/null
Makefile:87: recipe for target 'envir-implib' failed
make[2]: [envir-implib] Error 1 (ignored)
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppenvir.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/envir'
===== Compiling cmdenv ====
make[2]: Entering directory '/c/omnetpp-5.0/src/cmdenv'
cmdenv.cc
Creating DLL: C:/omnetpp-5.0/lib/gcc/liboppcmdenv.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/cmdenv'
===== Compiling tkenv ====
make[2]: Entering directory '/c/omnetpp-5.0/src/tkenv'
perl tcl2c.pl tclcode.cc clearlooksimg.tcl *.tcl
tkenv.cc
tkcmd.cc
tklib.cc
inspector.cc
logbuffer.cc
inspectorfactory.cc
genericobjectinspector.cc
watchinspector.cc
canvasinspector.cc
moduleinspector.cc
loginspector.cc
gateinspector.cc
figurerenderers.cc
outputvectorinspector.cc
histograminspector.cc
componenthistory.cc
canvasrenderer.cc
layouterenv.cc
arrow.cc
tkutil.cc
tkImgPNG.c
tkImgPNGInit.c
Copying Tcl extensions to lib/
Creating DLL: C:/omnetpp-5.0/lib/gcc/libopptkenv.dll
make[2]: Leaving directory '/c/omnetpp-5.0/src/tkenv'
===== Compiling qtenv ====
make[2]: Entering directory '/c/omnetpp-5.0/src/qtenv'
Invoking qmake-qt4 and building qtenv using qt4
OPP_CFLAGS="-std=c++11 -DWITH_QTENV -DWITH_OSG -DWITH_TKENV -DHAVE_PCAP -DXMLPARSER=libxml -DW                                                                                                  ITH_PARSIM -DWITH_NETBUILDER  -O2 -DNDEBUG=1 -O0   -isystem /usr/include -isystem /mingw32/inc                                                                                                  lude -Wno-deprecated-register -fno-stack-protector  -I/mingw32/include/qt4 -I/usr/include/QtOp                                                                                                  enGL -Wno-ignored-attributes -Wno-inconsistent-missing-override" OPP_DEFINES="-DWITH_QTENV -DW                                                                                                  ITH_OSG -DWITH_TKENV -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER" qmake-qt4                                                                                                   "QMAKE_CXX=@echo $<; clang++" "QMAKE_CC=@echo $<; clang" "QMAKE_AR=ar cr" "CONFIG+=release" -                                                                                                  o C:/omnetpp-5.0/out/gcc-release/src/qtenv/Makefile && (cd C:/omnetpp-5.0/out/gcc-release/src/                                                                                                  qtenv && make)
make[3]: Entering directory '/c/omnetpp-5.0/out/gcc-release/src/qtenv'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory '/c/omnetpp-5.0/out/gcc-release/src/qtenv'
Makefile:37: recipe for target 'qmake' failed
make[2]: *** [qmake] Error 2
make[2]: Leaving directory '/c/omnetpp-5.0/src/qtenv'
Makefile:100: recipe for target 'qtenv' failed
make[1]: *** [qtenv] Error 2
make[1]: Leaving directory '/c/omnetpp-5.0'
Makefile:23: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2



Note: I have also installed Linux Kali Sana as a virtual machine in the VMware Workstation Player, and then installed the OMNeT++ and everything worked with no problem. It's the Windows 10 machine (host) that has this problem. 
Any help (as trivial as it may be) would be greatly appreciated.

Thanks!

Alfonso Ariza Quintana

unread,
Mar 28, 2017, 4:00:14 AM3/28/17
to omn...@googlegroups.com

 

If you has problems with the qt env, you can enable the tk env, in the file configure.user

--
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+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Michael Kirsche

unread,
Mar 28, 2017, 4:02:03 AM3/28/17
to OMNeT++ Users
So you have a separate MinGW installation?
If yes...
OMNeT++ for Windows comes with a MinGW installation that includes every necessary packet, no need to install a separate MinGW version.
You only need to unpack the Windows archive, start the "mingwenv.cmd" and run ./configure and make from there. No need for any path settings whatsoever.

If no (extra MinGW), did you make sure that the installation was completely and successfully unpacked?

maj...@temple.edu

unread,
Mar 28, 2017, 2:00:39 PM3/28/17
to OMNeT++ Users, aari...@hotmail.com

I think it's already enabled, see the "configure.user" file settings below:

# configure.user
#
# This file contains additional input for 'configure'. It is read (sourced)
# during the configuration process. You are free to edit the settings in here.
#
# The settings in this file are all optional in the sense that they all
# have reasonable default values in the configure script.
#

#
# Edit here if you want to use a different compiler from the one autodetected
# by configure. Turns off the compiler autodetection.
#
#CC=gcc
#CXX=g++

#
# Set to "yes" if you want to use clang/clang++ instead of gcc/g++ when both
# compiler is installed.
#
PREFER_CLANG=yes

#
# Compiler optimization switches. There are two sets of switches,
# and the MODE variable ("debug" or "release") decides which one gets used.
# (Note: For maximum debugging info use switch -ggdb or -gstabs+3 when using gcc and gdb)
# With gcc, do NOT use --omit-frame-pointer (it crashes when coroutines and
# C++ exceptions (throw/catch) are used together)!
#
#CFLAGS_DEBUG='-g -Wall'
#CFLAGS_RELEASE='-O2 -DNDEBUG=1'

#
# Linker switches used for linking.
#
#LDFLAGS=""

#
# Set to "yes" to enable the Tcl/Tk based graphical runtime environment (Tkenv)
#
WITH_TKENV=yes

#
# Set to "yes" to enable the Qt based graphical runtime environment (Qtenv)
#
WITH_QTENV=yes

#
# Set to "yes" to use Qtenv as the default graphical runtime environment (instead of Tkenv)
#
PREFER_QTENV=no

#
# Set to "yes" to enable OpenSceneGraph and osgEarth support in Qtenv
#
WITH_OSG=yes

#
# Set to "yes" to enable simulation executables to load NED files dynamically.
#
WITH_NETBUILDER=yes

#
# Set to "yes" to enable the parallel distributed simulation feature.
#
WITH_PARSIM=yes

#
# Set to "yes" to enable SystemC support. (Available only in the commecial version (OMNEST))
# Please note that SystemC is not supported on MAC OS X and on the MinGW compiler on Windows.
#
WITH_SYSTEMC=no

#
# Set to no if you want to create static OMNeT++ libraries. Can be overriden
# with "make SHARED_LIBS=no" but then simulation models also need to be built
# with "make SHARED_LIBS=no"
#
SHARED_LIBS=yes

#
# Set to "yes" to compile with C++ 11 support enabled (-std=c++11)
#
USE_CXX11=yes

#
# Compiler and linker options for Tcl/Tk
#
# You can explicitly tell 'configure' which compile switches (TK_CFLAGS)
# and linker switches (TK_LIBS) are needed to build an application with Tcl/Tk.
# Normally these settings are autodetected by 'configure', so you only need to
# edit here if autodetection doesn't work.
#
# With gcc, settings typically look like this:
#
# exaple:TK_CFLAGS="-I/usr/local/include"
# example:TK_LIBS="-L/usr/local/lib -ltk8.6 -ltcl8.6"
#
# /usr/local/include should be replaced with the directory where tcl.h and tk.h
# live. If they are in two different directories, use two -I switches.
#
# /usr/local/lib should be replaced with the directory that contains the Tcl/Tk
# library files (something like libtcl86.so, libtk8.6.a etc; search for libtcl*
# and libtk* to find them.) The -l options contain the library names: the
# library file names, with the leading 'lib' and trailing '.so*' or '.a*' cut
# off. Sometimes you need to explicitly link with the X11 libraries too, in that
# case add -lX11 to TK_LIBS.
#
# With MinGW I use the following:
# Note that we are using the "bin" directory as the LIB dir.
# i.e. directly linking to the DLLs instead of the importlibs in the "lib" directory.
#
#TK_CFLAGS="-I/c/Tools/Tcl-8.6.0/include"
#TK_LIBS="-L/c/Tools/Tcl-8.6.0/bin -ltk84 -ltcl84"
# or:
#TK_CFLAGS="-I$MSYS/include/tcl8.6"
#TK_LIBS="-L$MSYS/bin -ltk86 -ltcl86"

#
# It is possible to have the Tcl files embedded into the compiled OMNeT++
# libraries and executables. This can be useful if you want to ship
# self-contained standalone executables which do not rely on external
# Tcl scripts. This option is available for Tkenv.
#
EMBED_TCL_CODE=yes

# Select which Qt version you prefer to use.
# Possible values: 4, 5. Any other value will disable building Qtenv
QT_VERSION=4

#
# Compiler and linker options for Qt
#
# You can explicitly tell 'configure' which linker switches (QT_LIBS) are 
# needed to build an application with Qt support. Normally these settings 
# are autodetected by 'configure', so you only need to edit here if 
# autodetection doesn't work.
#
#QT_CFLAGS=
#QT_LIBS=

#
# OpenSceneGraph libraries we want to use. Leave empty for autodetection
# or specify some invalid value (like "no" to explicitly disable OpenSceneGraph)
# At least the following libraries must be found: osg osgGA osgViewer osgQt OpenThreads
#
#OSG_LIBS=

# osgEarth libraries to be used. Leave empty for autodetection.
# At least the following libraries are required: osgEarth osgEarthUtil
#
#OSGEARTH_LIBS=

#
# ZLib is a compression library needed by libxml2 and Tkenv's png support.
#
# On MinGW we use the following (dynamically linking against the DLL)
#
#ZLIB_CFLAGS="-I/c/Tools/zlib-1.2.3/include"
#ZLIB_LIBS="-L/c/Tools/zlib-1.2.3/bin -lzlib1"
# or:
#ZLIB_CFLAGS="-I$MSYS/include"
#ZLIB_LIBS="-L$MSYS/lib -lz"

#
# Compiler flags used to compile JNI code.
# -fno-strict-aliasing is needed for gcc when using -O2 otherwise Java
# native calls don't work
#
#JAVA_CFLAGS=-fno-strict-aliasing

#
# Compiler and linker options for MPI (optional component).
# On LAM/MPI, typing `mpic++ -showme' can give you a hint about MPI_LIBS.
#
# If commented out, the configure script will try to autodetect it
#
#MPI_CFLAGS="-I /usr/include"
#MPI_LIBS="-pthread -llammpio -llammpi++ -llamf77mpi -lmpi -llam -laio -laio -lutil"
#MPI_LIBS="-lmpi++ -lmpi"   #SGI

#
# Compiler and linker options for Expat (optional component)
#
# With MinGW I use the following:
#   EXPAT_CFLAGS="-I/d/home/tools/expat-1.95.2/Source/lib"
#   EXPAT_LIBS="-L/d/home/tools/expat-1.95.2/libs -lexpat"
# If commented out, the configure script will try to autodetect it
#
#EXPAT_CFLAGS=
#EXPAT_LIBS=

#
# Compiler and linker options for LIBXML (optional component)
#
# With MinGW I use the following:
#  LIBXML_CFLAGS="-I/c/Tools/libxml2-2.6.20.win32/include -I/c/Tools/iconv-1.9.1.win32/include"
#  LIBXML_LIBS="-L/c/Tools/libxml2-2.6.20.win32/bin -lxml2 -L/c/Tools/iconv-1.9.1.win32/lib -liconv"
# or:
#  LIBXML_CFLAGS="-I$MSYS/include"
#  LIBXML_LIBS="-L$MSYS/bin -lxml2 -L$MSYS/bin -liconv"
# If commented out, the configure script will try to autodetect it
#

#
# Compiler and linker options for Akaroa (optional component)
#
# With MinGW I use the following:
#  AKAROA_CFLAGS="-I/d/home/tools/akaroa-2.7.4/include"
#  AKAROA_LIBS="-L/d/home/tools/akaroa-2.7.4/lib -lakaroa"
# If commented out, the configure script will try to autodetect it
#
#AKAROA_CFLAGS=
#AKAROA_LIBS=

#
# The following OMNETPP_* variables don't need to be touched unless
# you want to relocate parts of the package (e.g. put libraries to
# /usr/lib, include files to /usr/include/omnetpp, and so on).
#
#OMNETPP_SRC_DIR="$OMNETPP_ROOT/src"
#OMNETPP_SAMPLES_DIR="$OMNETPP_ROOT/samples"
#OMNETPP_BIN_DIR="$OMNETPP_ROOT/bin"
#OMNETPP_INCL_DIR="$OMNETPP_ROOT/include"
#OMNETPP_LIB_DIR="$OMNETPP_ROOT/lib"

#
# Some more OMNeT++ variables. They select the programs opp_makemake-generated
# makefiles will use. (They get default values if commented out.)
#
#MSGC="$OMNETPP_BIN_DIR/opp_msgc"
#SMC="$OMNETPP_BIN_DIR/opp_smc"

#
#
# Override the following setting if you have additional icons somewhere else.
#
# OMNETPP_IMAGE_PATH="./images;./bitmaps;$OMNETPP_ROOT/images"



maj...@temple.edu

unread,
Mar 28, 2017, 2:04:27 PM3/28/17
to OMNeT++ Users
Yes I do have a separate MinGW installation .. I'll try to remove it and redo the installation process of OMNeT++ 5.0.
and yes it was successfully unpacked (I used 7zip to unpack).

maj...@temple.edu

unread,
Mar 28, 2017, 3:39:55 PM3/28/17
to OMNeT++ Users
So I've just followed this toturial to completely remove MinGW:

Then, reinstalled OMNeT++ 5.0. Unfortunately the problem still the same. I keep getting the following dialog when I build the inet project:


Any other ideas?

On Tuesday, March 28, 2017 at 4:02:03 AM UTC-4, Michael Kirsche wrote:

Michael Kirsche

unread,
Mar 29, 2017, 4:16:10 AM3/29/17
to omn...@googlegroups.com
These steps from the installation manual were all performed correctly on your system?

  1. Unpack the omnetpp-5.0-src-windows.zip file with e.g., 7-Zip
  2. start the mingwenv.cmd from the unpacked folder
  3. push any key and wait for the MinGW toolchain to be unpacked
  4. run ./configure when prompted from the mingwenv.cmd prompt -> no errors only warnings about possibly not installed packets (like Akaroa, MPI or PCAP) should show up, path settings should be correct
  5. run make -j2 (instead of 2 you can set it to the number of CPU cores your system has available)
  6. the make process should finish without warnings, in the C:\omnetpp-5.0\out directory, you will find two new subdirectories gcc-debug and gcc-release
  7. run omnetpp from the same shell and then compile INET
This works out of the box for hundreds of people on various Windows systems.
If the omnetpp libraries are not successfully compiled, then please post the compiler error again.

janis...@googlemail.com

unread,
Mar 30, 2017, 6:04:23 AM3/30/17
to OMNeT++ Users
I'm getting the same error on Linux - it's really annoying to click 'ok' all the time. Nothing seems to be wrong in the first place, also debugging with GDB works fine. Building omnet and the inet framework works without errors.

I'm running Debian Jessie, omnetpp-5.0, local install of GCC 6.3.0.

I'm guessing this is somehow toolchain related. How is the check for the libraries actually implemented? Would also be nice to disable the check as it does not work properly.

Michael Kirsche

unread,
Mar 30, 2017, 6:36:04 AM3/30/17
to OMNeT++ Users
Does the error also appear with the latest release candidate 3 for OMNeT 5.1??
Could you test this?

janis...@googlemail.com

unread,
Mar 30, 2017, 9:23:24 AM3/30/17
to OMNeT++ Users
Ok I tried this ... gives me a new error. /ide/plugins/org.omnetpp.ide.nativelibs.linux.x86_64_5.1.0.170323-7432760/libopplibs.so fails to link with libstdc++ from GCC 6.3.0. Why is libopplibs.so pre-compiled and not built from source?

ld libopplibs.so

    linux-vdso.so.1 (0x00007ffc9aff2000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6c618b6000)
    libstdc++.so.6 => /home/xblax/local/gcc-6.3.0/lib64/libstdc++.so.6 (0x00007f6c615a5000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6c612a4000)
    libgcc_s.so.1 => /home/xblax/local/gcc-6.3.0/lib64/libgcc_s.so.1 (0x00007f6c6108e000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6c60ce3000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f6c62093000)

ld libopplibs.so

ld: warning: cannot find entry symbol _start; not setting start address
libopplibs.so: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::out_of_range::out_of_range(char const*)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned long, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::swap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
libopplibs.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const@GLIBCXX_3.4.21'

Maybe this happens because I compiled libstd++ with GCC 4 ABI compability? But this should not break symbols ...


Michael Kirsche

unread,
Mar 30, 2017, 11:15:51 AM3/30/17
to OMNeT++ Users
Aren't those libraries under the IDE directory for the Eclipse-based IDE?

I am compiling the OMNeT++ 5.1rc3 version both under GCC 5.4 and GCC 6.3.1 without problems, never got a linking error with one of the libraries from the IDE folder.

janis...@googlemail.com

unread,
Mar 31, 2017, 4:09:42 AM3/31/17
to omn...@googlegroups.com
Yes those libraries are for the Eclipse-based IDE. Apparently the link error was due to the stdc++ ABI change since GCC 5 - I compiled GCC 6.3 only with the old ABI to avoid incompatibilities with my Debian Jessie system. Recompiled GCC 6 and stdc++ with dual ABI support and Omnet 5.1rc3 is working now without errors. These incompatibilities could be avoided if all libraries were built from source.

Also the original error (missing debug libraries) is gone with Omnet++ 5.1rc3.

Rudolf Hornig

unread,
Mar 31, 2017, 6:00:46 AM3/31/17
to OMNeT++ Users
A little clarification: Precompiling the IDE native library (opplibs) has its own pros and cons:

pros:
- you would not have ABI compatibility problems on non standard or very old Linux systems

cons:
- building the IDE requires several additional dependencies that are not present on the user machine, like swig, the whole Eclipse + CDT SDK (which is around 250MB itself) + JDK + maven.
- would add an additional 10 minutes to the build time (on a fast machine)
- would probably introduce a lot more way how the IDE build process can break

So at the end, we have decided to pre-build the opplibs shared lib, and live with the rare incompatibility problem. (The best solution would be not to have a native library at all, but a lot of code is shared between 

BTW, you can rebuild only the libopplibs.so file only (provided you have swig on your system that is the same version that was used to build the IDE), by

$ make MODE=release ui

then copy the resulting file into the appropriate ide/plugins directory...
Rudolf
Reply all
Reply to author
Forward
0 new messages