Error occured when installing OMNET++ on ubuntu 18.04

1,310 views
Skip to first unread message

mariemal...@gmail.com

unread,
May 24, 2018, 11:10:27 AM5/24/18
to OMNeT++ Users

Hello everyone,

I am starting the installation of OMNET++ 5.2.1 on ubuntu 18.04 and i have an error after "make" like this figure :


Could you please help me, I will be very grateful

Best Regards,

Mariem ALLOUCH.

Attila Török

unread,
May 24, 2018, 11:17:00 AM5/24/18
to OMNeT++ Users
Hi!

This is the least informative part of the error message.
Please attach all of the error messages printed before (above) this one, those will actually tell us something.

Attila

--
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.

mariemal...@gmail.com

unread,
May 25, 2018, 4:21:55 AM5/25/18
to OMNeT++ Users
Thanks Attila,

This is the whole result of "make":

mariem@mariem-pc:~/projet/omnetpp-5.2.1$ make
make -s MODE=release
***** Configuration: MODE=release, TOOLCHAIN_NAME=clang, LIB_SUFFIX=.so ****
===== Checking environment =====
===== Compiling utils ====
===== Compiling common ====
YACC: expression.y
expression.y: avertissement: 46 conflits par décalage/réduction [-Wconflicts-sr]
LEX: expression.lex
YACC: matchexpression.y
lcgrandom.cc
filereader.cc
linetokenizer.cc
stringpool.cc
stringtokenizer.cc
fnamelisttokenizer.cc
expression.cc
lex.expressionyy.cc
expression.tab.cc
matchexpression.cc
matchexpressionlexer.cc
matchexpression.tab.cc
patternmatcher.cc
unitconversion.cc
displaystring.cc
fileglobber.cc
fileutil.cc
fileutil.cc:275:13: warning: '~PushDir' has a non-throwing exception specification but can still throw [-Wexceptions]
            throw opp_runtime_error("Cannot change back to directory '%s'", olddir.c_str());
            ^
fileutil.cc:271:10: note: destructor has a implicit non-throwing exception specification
PushDir::~PushDir()
         ^
1 warning generated.
stringutil.cc
commonutil.cc
exception.cc
bigdecimal.cc
enumstr.cc
stringtokenizer2.cc
colorutil.cc
statistics.cc
sqlite3.c
formattedprinter.cc
csvwriter.cc
jsonwriter.cc
sqliteresultfileschema.cc
sqlitescalarfilewriter.cc
sqlitevectorfilewriter.cc
omnetppscalarfilewriter.cc
omnetppvectorfilewriter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/common/liboppcommon.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcommon.so
===== Compiling layout ====
geometry.cc
graphcomponent.cc
heapembedding.cc
startreeembedding.cc
forcedirectedparametersbase.cc
forcedirectedparameters.cc
forcedirectedembedding.cc
graphlayouter.cc
basicspringembedderlayout.cc
forcedirectedgraphlayouter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/layout/libopplayout.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/libopplayout.so
===== Compiling eventlog ====
Generating eventlogentries.csv eventlogentries.h eventlogentries.cc eventlogentryfactory.cc from eventlogentries.txt
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 shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/eventlog/liboppeventlog.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppeventlog.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/eventlog/eventlogtool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/eventlogtool
===== Compiling 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
omnetppresultfileloader.cc
sqliteresultfileloader.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
teenode.cc
indexedvectorfilereader.cc
xyarray.cc
fields.cc
sqlitevectorreader.cc
vectorreaderbyfiletype.cc
sqliteresultfileutils.cc
datatable.cc
exporter.cc
exportutils.cc
csvrecexporter.cc
csvspreadexporter.cc
jsonexporter.cc
omnetppscalarfileexporter.cc
sqlitescalarfileexporter.cc
omnetppvectorfileexporter.cc
sqlitevectorfileexporter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/scave/liboppscave.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppscave.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/scave/scavetool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/scavetool
===== Compiling nedxml ====
YACC: ned1.y
LEX: ned1.lex
YACC: ned2.y
LEX: ned2.lex
YACC: msg2.y
LEX: msg2.lex
nedelements.cc
nedelement.cc
nederror.cc
nedexception.cc
nedvalidator.cc
neddtdvalidator.cc
neddtdvalidatorbase.cc
nedsyntaxvalidator.cc
nedcrossvalidator.cc
nedfilebuffer.cc
nedparser.cc
nedyylib.cc
ned2.tab.cc
lex.ned2yy.cc
nedtools.cc
nedutil.cc
ned2generator.cc
ned1generator.cc
xmlgenerator.cc
nedxmlparser.cc
nedsaxhandler.cc
saxparser_libxml.cc
ned1.tab.cc
lex.ned1yy.cc
msg2.tab.cc
lex.msg2yy.cc
msgcppgenerator.cc
nedresourcecache.cc
nedtypeinfo.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/nedxml/liboppnedxml.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppnedxml.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/nedxml/nedtool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/nedtool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_msgc
===== Compiling sim ====
YACC: expr.y
LEX: expr.lex
MSGC: sim_std.msg
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
cmodule.cc:96:13: warning: '~cModule' has a non-throwing exception specification but can still throw [-Wexceptions]
            throw cRuntimeError("Cannot delete a compound module from one of its submodules!");
            ^
cmodule.cc:81:10: note: destructor has a implicit non-throwing exception specification
cModule::~cModule()
         ^
1 warning generated.
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
csimplemodule.cc:218:9: warning: '~cSimpleModule' has a non-throwing exception specification but can still throw [-Wexceptions]
        throw cRuntimeError(this, "Cannot delete itself, only via deleteModule()");
        ^
csimplemodule.cc:214:16: note: destructor has a implicit non-throwing exception specification
cSimpleModule::~cSimpleModule()
               ^
1 warning generated.
csimulation.cc
csimulation.cc:130:9: warning: '~cSimulation' has a non-throwing exception specification but can still throw [-Wexceptions]
        throw cRuntimeError(this, "Cannot delete the active simulation manager object");
        ^
csimulation.cc:126:14: note: destructor has a implicit non-throwing exception specification
cSimulation::~cSimulation()
             ^
1 warning generated.
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.expryy.cc
minixpath.cc
onstartup.cc
simtime.cc
task.cc
util.cc
gettime.cc
expr.tab.cc
nedsupport.cc
sim_std_m.cc
cstatisticbuilder.cc
statisticparsing.cc
resultfilters.cc
resultrecorders.cc
ccommbuffer.cc
cparsimcomm.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 shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/sim/liboppsim.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppsim.so
===== Compiling 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
stopwatch.cc
matchableobject.cc
matchablefield.cc
akaroarng.cc
xmldoccache.cc
eventlogwriter.cc
objectprinter.cc
eventlogfilemgr.cc
resultfileutils.cc
intervals.cc
omnetppoutscalarmgr.cc
omnetppoutvectormgr.cc
fileoutvectormgr_merged.cc
sqliteoutscalarmgr.cc
sqliteoutvectormgr.cc
visitor.cc
envirutils.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/envir/liboppenvir.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppenvir.so
main.cc
Creating static library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/envir/liboppmain.a
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppmain.a
===== Compiling cmdenv ====
cmdenv.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/cmdenv/liboppcmdenv.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcmdenv.so
===== Compiling opp_run ====
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/clang-release/src/envir/opp_run
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_run
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_run_release
===== Compiling aloha ====
Host.cc
Server.cc
Creating executable: out/clang-release//aloha
===== Compiling canvas ====
CarAnimator.cc
Creating executable: out/clang-release//canvas
===== Compiling cqn ====
Queue.cc
Switch.cc
Creating executable: out/clang-release//cqn
===== Compiling dyna ====
MSGC: DynaPacket.msg
Client.cc
Server.cc
ServerProcess.cc
Switch.cc
DynaPacket_m.cc
Creating executable: out/clang-release//dyna
===== Compiling embedding ====
main.cc
model/AbstractFifo.cc
model/Fifo.cc
model/Sink.cc
model/Source.cc
Creating executable: out/clang-release//embedding
===== Compiling embedding2 ====
main.cc
model/Host.cc
model/nedfiles.cc
model/Server.cc
Creating executable: out/clang-release//embedding2
===== Compiling fifo ====
AbstractFifo.cc
Fifo.cc
Sink.cc
Source.cc
Creating executable: out/clang-release//fifo
===== Compiling hypercube ====
MSGC: HCPacket.msg
HCGenerator.cc
HCRouter.cc
HCSink.cc
HCPacket_m.cc
Creating executable: out/clang-release//hypercube
===== Compiling histograms ====
HistogramDemo.cc
Creating executable: out/clang-release//histograms
===== Compiling neddemo ====
Node.cc
Creating executable: out/clang-release//neddemo
===== Compiling queueinglib ====
MSGC: Job.msg
Allocate.cc
Classifier.cc
Clone.cc
Deallocate.cc
Delay.cc
Fork.cc
Job.cc
JobList.cc
Join.cc
Merge.cc
PassiveQueue.cc
Queue.cc
ResourceBasedQueue.cc
ResourcePool.cc
Router.cc
SelectionStrategies.cc
Server.cc
Sink.cc
Source.cc
Job_m.cc
Creating shared library: out/clang-release//libqueueinglib.so
===== Compiling queueinglibext ====
SinkExt.cc
Creating shared library: out/clang-release//libqueueinglibext.so
===== Compiling routing ====
MSGC: node/Packet.msg
builder/netbuilder.cc
node/App.cc
node/BurstyApp.cc
node/L2Queue.cc
node/Routing.cc
node/Packet_m.cc
Creating executable: out/clang-release//routing
===== Compiling tictoc ====
MSGC: tictoc13.msg
MSGC: tictoc14.msg
MSGC: tictoc15.msg
MSGC: tictoc16.msg
MSGC: tictoc17.msg
MSGC: tictoc18.msg
txc1.cc
txc10.cc
txc11.cc
txc12.cc
txc13.cc
txc14.cc
txc15.cc
txc16.cc
txc17.cc
txc18.cc
txc2.cc
txc3.cc
txc4.cc
txc5.cc
txc6.cc
txc7.cc
txc8.cc
txc9.cc
tictoc13_m.cc
tictoc14_m.cc
tictoc15_m.cc
tictoc16_m.cc
tictoc17_m.cc
tictoc18_m.cc
Creating executable: out/clang-release//tictoc
===== Compiling sockets ====
MSGC: HttpMsg.msg
MSGC: NetPkt.msg
MSGC: TelnetPkt.msg
Cloud.cc
ExtHttpClient.cc
ExtTelnetClient.cc
HttpClient.cc
HttpServer.cc
QueueBase.cc
SocketRTScheduler.cc
TelnetClient.cc
TelnetServer.cc
HttpMsg_m.cc
NetPkt_m.cc
TelnetPkt_m.cc
Creating executable: out/clang-release//sockets
===== Compiling osg-intro ====
fallback.cc
OsgScene.cc
Creating executable: out/clang-release//osg-intro
===== Compiling osg-earth ====
ChannelController.cc
fallback.cc
MobileNode.cc
OsgEarthScene.cc
RambleNode.cc
WaypointTrackerNode.cc
Creating executable: out/clang-release//osg-earth
/usr/bin/ld : ne peut trouver -losgEarthFeatures
/usr/bin/ld : ne peut trouver -losgEarthSymbology
/usr/bin/ld : ne peut trouver -losgEarthAnnotation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:101: recipe for target 'out/clang-release//osg-earth' failed
make[2]: *** [out/clang-release//osg-earth] Error 1
Makefile:127: recipe for target 'osg-earth' failed
make[1]: *** [osg-earth] Error 2
Makefile:28: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2

Best Regards,

Mariem ALLOUCH.

Attila Török

unread,
May 25, 2018, 9:40:51 AM5/25/18
to OMNeT++ Users
Thanks. Try installing the libosgearthutil5 package ( sudo apt install libosgearthutil5 ) and starting the build again.
Attila

mariemal...@gmail.com

unread,
May 25, 2018, 10:24:44 AM5/25/18
to OMNeT++ Users
I have an other error :

make -s MODE=release
***** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so ****

===== Checking environment =====
===== Compiling utils ====
===== Compiling common ====
lcgrandom.cc
filereader.cc
linetokenizer.cc
stringpool.cc
stringtokenizer.cc
fnamelisttokenizer.cc
expression.cc
lex.expressionyy.cc
expression.tab.cc
matchexpression.cc
matchexpressionlexer.cc
matchexpression.tab.cc
patternmatcher.cc
unitconversion.cc
displaystring.cc
fileglobber.cc
fileutil.cc
fileutil.cc: In destructor ‘omnetpp::common::PushDir::~PushDir()’:
fileutil.cc:275:91: warning: throw will always call terminate() [-Wterminate]

 hrow opp_runtime_error("Cannot change back to directory '%s'", olddir.c_str());
                                                                              ^
fileutil.cc:275:91: note: in C++11 destructors default to noexcept

stringutil.cc
commonutil.cc
exception.cc
bigdecimal.cc
enumstr.cc
stringtokenizer2.cc
colorutil.cc
statistics.cc
formattedprinter.cc
csvwriter.cc
jsonwriter.cc
sqliteresultfileschema.cc
sqlitescalarfilewriter.cc
sqlitevectorfilewriter.cc
omnetppscalarfilewriter.cc
omnetppvectorfilewriter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/common/liboppcommon.so

Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcommon.so
===== Compiling layout ====
geometry.cc
graphcomponent.cc
heapembedding.cc
startreeembedding.cc
forcedirectedparametersbase.cc
forcedirectedparameters.cc
forcedirectedembedding.cc
graphlayouter.cc
basicspringembedderlayout.cc
forcedirectedgraphlayouter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/layout/libopplayout.so

Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/libopplayout.so
===== Compiling eventlog ====
Generating eventlogentries.csv eventlogentries.h eventlogentries.cc eventlogentryfactory.cc from eventlogentries.txt
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 shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/eventlog/liboppeventlog.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppeventlog.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/eventlog/eventlogtool
indexfile.cc: In static member function ‘static bool omnetpp::scave::IndexFile::isExistingVectorFile(const char*)’:
indexfile.cc:228:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
     fread(buf, strlen(signature), 1, f);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

scaveutils.cc
scaveexception.cc
enumtype.cc
teenode.cc
indexedvectorfilereader.cc
xyarray.cc
fields.cc
sqlitevectorreader.cc
vectorreaderbyfiletype.cc
sqliteresultfileutils.cc
datatable.cc
exporter.cc
exportutils.cc
csvrecexporter.cc
csvspreadexporter.cc
jsonexporter.cc
omnetppscalarfileexporter.cc
sqlitescalarfileexporter.cc
omnetppvectorfileexporter.cc
sqlitevectorfileexporter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/scave/liboppscave.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppscave.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/scave/scavetool

Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/scavetool
===== Compiling nedxml ====
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/nedxml/liboppnedxml.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppnedxml.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/nedxml/nedtool

Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/nedtool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_msgc
===== Compiling sim ====
cmodule.cc: In destructor ‘virtual omnetpp::cModule::~cModule()’:
cmodule.cc:96:94: warning: throw will always call terminate() [-Wterminate]

 w cRuntimeError("Cannot delete a compound module from one of its submodules!");
                                                                              ^
cmodule.cc:96:94: note: in C++11 destructors default to noexcept
csimplemodule.cc: In destructor ‘virtual omnetpp::cSimpleModule::~cSimpleModule()’:
csimplemodule.cc:218:82: warning: throw will always call terminate() [-Wterminate]

     throw cRuntimeError(this, "Cannot delete itself, only via deleteModule()");
                                                                              ^
csimplemodule.cc:218:82: note: in C++11 destructors default to noexcept
csimulation.cc
csimulation.cc: In destructor ‘virtual omnetpp::cSimulation::~cSimulation()’:
csimulation.cc:130:87: warning: throw will always call terminate() [-Wterminate]

 hrow cRuntimeError(this, "Cannot delete the active simulation manager object");
                                                                              ^
csimulation.cc:130:87: note: in C++11 destructors default to noexcept
cstatistic.cc
cstatistic.cc: In member function ‘void omnetpp::cStatistic::freadvarsf(FILE*, const char*, ...)’:
cstatistic.cc:158:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
         fgets(line, 101, f);
         ~~~~~^~~~~~~~~~~~~~
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/sim/liboppsim.so

Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppsim.so
===== Compiling envir ====
appreg.cc
args.cc
startup.cc
evmain.cc
logformatter.cc
envirbase.cc
envirbase.cc: In member function ‘virtual void omnetpp::envir::EnvirBase::attachDebugger()’:
envirbase.cc:1682:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
     system(cmd.c_str());
     ~~~~~~^~~~~~~~~~~~~
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/envir/liboppenvir.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppenvir.so
main.cc
Creating static library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/envir/liboppmain.a

Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppmain.a
===== Compiling cmdenv ====
cmdenv.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/cmdenv/liboppcmdenv.so

Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcmdenv.so
===== Compiling opp_run ====
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-release/src/envir/opp_run

Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_run
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_run_release
===== Compiling aloha ====
Creating executable: out/gcc-release//aloha
===== Compiling canvas ====
Creating executable: out/gcc-release//canvas
===== Compiling cqn ====
Creating executable: out/gcc-release//cqn
===== Compiling dyna ====
Creating executable: out/gcc-release//dyna
===== Compiling embedding ====
===== Compiling embedding2 ====
===== Compiling fifo ====
Creating executable: out/gcc-release//fifo
===== Compiling hypercube ====
Creating executable: out/gcc-release//hypercube
===== Compiling histograms ====
Creating executable: out/gcc-release//histograms
===== Compiling neddemo ====
Creating executable: out/gcc-release//neddemo
===== Compiling queueinglib ====
Creating shared library: out/gcc-release//libqueueinglib.so
===== Compiling queueinglibext ====
Creating shared library: out/gcc-release//libqueueinglibext.so
===== Compiling routing ====
Creating executable: out/gcc-release//routing
===== Compiling tictoc ====
Creating executable: out/gcc-release//tictoc
===== Compiling sockets ====
Creating executable: out/gcc-release//sockets
===== Compiling osg-intro ====
Creating executable: out/gcc-release//osg-intro
===== Compiling osg-earth ====
Creating executable: out/gcc-release//osg-earth
===== Compiling osg-indoor ====
Creating executable: out/gcc-release//osg-indoor
===== Compiling osg-satellites ====
Creating executable: out/gcc-release//osg-satellites
make -s MODE=debug
***** Configuration: MODE=debug, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so ****

===== Checking environment =====
===== Compiling utils ====
===== Compiling common ====
lcgrandom.cc
filereader.cc
linetokenizer.cc
stringpool.cc
stringtokenizer.cc
fnamelisttokenizer.cc
expression.cc
lex.expressionyy.cc
expression.tab.cc
matchexpression.cc
matchexpressionlexer.cc
matchexpression.tab.cc
patternmatcher.cc
unitconversion.cc
displaystring.cc
fileglobber.cc
fileutil.cc
fileutil.cc: In destructor ‘omnetpp::common::PushDir::~PushDir()’:
fileutil.cc:275:91: warning: throw will always call terminate() [-Wterminate]

 hrow opp_runtime_error("Cannot change back to directory '%s'", olddir.c_str());
                                                                              ^
fileutil.cc:275:91: note: in C++11 destructors default to noexcept

stringutil.cc
commonutil.cc
exception.cc
bigdecimal.cc
enumstr.cc
stringtokenizer2.cc
colorutil.cc
statistics.cc
formattedprinter.cc
csvwriter.cc
jsonwriter.cc
sqliteresultfileschema.cc
sqlitescalarfilewriter.cc
sqlitevectorfilewriter.cc
omnetppscalarfilewriter.cc
omnetppvectorfilewriter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/common/liboppcommon_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcommon_dbg.so

===== Compiling layout ====
geometry.cc
graphcomponent.cc
heapembedding.cc
startreeembedding.cc
forcedirectedparametersbase.cc
forcedirectedparameters.cc
forcedirectedembedding.cc
graphlayouter.cc
basicspringembedderlayout.cc
forcedirectedgraphlayouter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/layout/libopplayout_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/libopplayout_dbg.so
===== Compiling 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 shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/eventlog/liboppeventlog_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppeventlog_dbg.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/eventlog/eventlogtool
csvrecexporter.cc: In member function ‘virtual void omnetpp::scave::CsvRecordsExporter::writeAsString(const std::vector<double>&, int, int)’:
csvrecexporter.cc:338:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (size_t i = startIndex; i < endIndex; i++) { // endIndex is exclusive
                                 ~~^~~~~~~~~~

csvspreadexporter.cc
jsonexporter.cc
omnetppscalarfileexporter.cc
sqlitescalarfileexporter.cc
omnetppvectorfileexporter.cc
sqlitevectorfileexporter.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/scave/liboppscave_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppscave_dbg.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/scave/scavetool

Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/scavetool
===== Compiling nedxml ====
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/nedxml/liboppnedxml_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppnedxml_dbg.so
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/nedxml/nedtool
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/nedtool
===== Compiling sim ====

carray.cc
cdelaychannel.cc
cdataratechannel.cc
cboolparimpl.cc
cchannel.cc
cobjectfactory.cc
ccomponent.cc
In file included from /home/mariem/projet/omnetpp-5.2.1/include/omnetpp/ccomponent.h:20:0,
                 from ccomponent.cc:18:
ccomponent.cc: In destructor ‘virtual omnetpp::cComponent::~cComponent()’:
/home/mariem/projet/omnetpp-5.2.1/include/omnetpp/simkerneldefs.h:57:75: warning: throw will always call terminate() [-Wterminate]
                                  #expr, __FUNCTION__, __FILE__, __LINE__), 0)))
                                                                         ^
ccomponent.cc:91:5: note: in expansion of macro ‘ASSERT’
     ASSERT(signalTable == nullptr);  // note: releaseLocalListeners() gets called in subclasses, ~cModule and ~cChannel
     ^~~~~~
/home/mariem/projet/omnetpp-5.2.1/include/omnetpp/simkerneldefs.h:57:75: note: in C++11 destructors default to noexcept
                                  #expr, __FUNCTION__, __FILE__, __LINE__), 0)))
                                                                         ^
ccomponent.cc:91:5: note: in expansion of macro ‘ASSERT’
     ASSERT(signalTable == nullptr);  // note: releaseLocalListeners() gets called in subclasses, ~cModule and ~cChannel
     ^~~~~~
cmodule.cc: In destructor ‘virtual omnetpp::cModule::~cModule()’:
cmodule.cc:96:94: warning: throw will always call terminate() [-Wterminate]

 w cRuntimeError("Cannot delete a compound module from one of its submodules!");
                                                                              ^
cmodule.cc:96:94: note: in C++11 destructors default to noexcept
csimplemodule.cc: In destructor ‘virtual omnetpp::cSimpleModule::~cSimpleModule()’:
csimplemodule.cc:218:82: warning: throw will always call terminate() [-Wterminate]

     throw cRuntimeError(this, "Cannot delete itself, only via deleteModule()");
                                                                              ^
csimplemodule.cc:218:82: note: in C++11 destructors default to noexcept
In file included from /home/mariem/projet/omnetpp-5.2.1/include/omnetpp/ccomponent.h:20:0,
                 from /home/mariem/projet/omnetpp-5.2.1/include/omnetpp/cmodule.h:20,
                 from /home/mariem/projet/omnetpp-5.2.1/include/omnetpp/csimplemodule.h:19,
                 from csimplemodule.cc:27:
/home/mariem/projet/omnetpp-5.2.1/include/omnetpp/simkerneldefs.h:57:75: warning: throw will always call terminate() [-Wterminate]
                                  #expr, __FUNCTION__, __FILE__, __LINE__), 0)))
                                                                         ^
csimplemodule.cc:226:13: note: in expansion of macro ‘ASSERT’
             ASSERT(!afterCleanupTransferTo || afterCleanupTransferTo->usesActivity());
             ^~~~~~
/home/mariem/projet/omnetpp-5.2.1/include/omnetpp/simkerneldefs.h:57:75: note: in C++11 destructors default to noexcept
                                  #expr, __FUNCTION__, __FILE__, __LINE__), 0)))
                                                                         ^
csimplemodule.cc:226:13: note: in expansion of macro ‘ASSERT’
             ASSERT(!afterCleanupTransferTo || afterCleanupTransferTo->usesActivity());
             ^~~~~~
csimulation.cc
csimulation.cc: In destructor ‘virtual omnetpp::cSimulation::~cSimulation()’:
csimulation.cc:130:87: warning: throw will always call terminate() [-Wterminate]

 hrow cRuntimeError(this, "Cannot delete the active simulation manager object");
                                                                              ^
csimulation.cc:130:87: note: in C++11 destructors default to noexcept
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/sim/liboppsim_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppsim_dbg.so
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/envir/liboppenvir_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppenvir_dbg.so
main.cc
Creating static library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/envir/liboppmain_dbg.a
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppmain_dbg.a

===== Compiling cmdenv ====
cmdenv.cc
Creating shared library: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/cmdenv/liboppcmdenv_dbg.so
Copying to: /home/mariem/projet/omnetpp-5.2.1/lib/liboppcmdenv_dbg.so
===== Compiling opp_run ====
Creating executable: /home/mariem/projet/omnetpp-5.2.1/out/gcc-debug/src/envir/opp_run_dbg
Copying to: /home/mariem/projet/omnetpp-5.2.1/bin/opp_run_dbg
===== Compiling aloha ====
Creating executable: out/gcc-debug//aloha
===== Compiling canvas ====
Creating executable: out/gcc-debug//canvas
===== Compiling cqn ====
Creating executable: out/gcc-debug//cqn
===== Compiling dyna ====
Creating executable: out/gcc-debug//dyna
===== Compiling embedding ====
===== Compiling embedding2 ====
===== Compiling fifo ====
Creating executable: out/gcc-debug//fifo
===== Compiling hypercube ====
Creating executable: out/gcc-debug//hypercube
===== Compiling histograms ====
Creating executable: out/gcc-debug//histograms
===== Compiling neddemo ====
Creating executable: out/gcc-debug//neddemo
===== Compiling queueinglib ====
Creating shared library: out/gcc-debug//libqueueinglib.so
===== Compiling queueinglibext ====
Creating shared library: out/gcc-debug//libqueueinglibext.so
/usr/bin/x86_64-linux-gnu-ld : ne peut trouver -lqueueinglib_dbg
collect2: error: ld returned 1 exit status
Makefile:89: recipe for target 'out/gcc-debug//libqueueinglibext.so' failed
make[2]: *** [out/gcc-debug//libqueueinglibext.so] Error 1
Makefile:127: recipe for target 'queueinglibext' failed
make[1]: *** [queueinglibext] Error 2

Makefile:28: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2

Mariem

Attila Török

unread,
May 25, 2018, 10:36:40 AM5/25/18
to OMNeT++ Users
This is strange...
You could try cleaning everything up using make cleanall , then, just to be sure, building in both debug and release mode - which just means omitting MODE=release argument for make (the two modes can coexist).
Attila

mariemal...@gmail.com

unread,
May 25, 2018, 11:03:28 AM5/25/18
to OMNeT++ Users
Thank you very much Attila. There is no error after make but when i start OMNET++, i have an error :



Mariem
...

mariemal...@gmail.com

unread,
May 25, 2018, 11:08:47 AM5/25/18
to OMNeT++ Users
The log file contain :

!SESSION 2018-05-25 17:56:12.793 -----------------------------------------------
eclipse.buildId=5.2.1.171211-da8f6bc
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2018-05-25 17:56:29.849
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 25 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-05-25 17:56:29.880
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
    at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
    at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
    at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
    at org.eclipse.osgi.container.Module.doStop(Module.java:634)
    at org.eclipse.osgi.container.Module.stop(Module.java:498)
    at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
    at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 21 more
!SESSION 2018-05-25 17:57:01.328 -----------------------------------------------
eclipse.buildId=5.2.1.171211-da8f6bc
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2018-05-25 17:57:19.983
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 25 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-05-25 17:57:19.995
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
    at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
    at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
    at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
    at org.eclipse.osgi.container.Module.doStop(Module.java:634)
    at org.eclipse.osgi.container.Module.stop(Module.java:498)
    at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
    at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 21 more
!SESSION 2018-05-25 17:57:52.764 -----------------------------------------------
eclipse.buildId=5.2.1.171211-da8f6bc
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2018-05-25 17:58:01.217
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 25 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-05-25 17:58:01.232
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
    at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
    at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
    at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
    at org.eclipse.osgi.container.Module.doStop(Module.java:634)
    at org.eclipse.osgi.container.Module.stop(Module.java:498)
    at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
    at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 21 more
!SESSION 2018-05-25 17:58:31.726 -----------------------------------------------
eclipse.buildId=5.2.1.171211-da8f6bc
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2018-05-25 17:58:43.665
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 25 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-05-25 17:58:43.680
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
    at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
    at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
    at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)
    at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
    at org.eclipse.osgi.container.Module.doStop(Module.java:634)
    at org.eclipse.osgi.container.Module.stop(Module.java:498)
    at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
    at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 21 more

Mariem

rabia ouar

unread,
May 22, 2019, 9:07:02 AM5/22/19
to OMNeT++ Users
good morning  Mariem
i have the same error with you i want ask you if did you found a solution

Eduardo Cooper

unread,
May 22, 2019, 5:28:48 PM5/22/19
to OMNeT++ Users
This means you need a specific java idk, most likely jdk-8, and you probably have java version 11 right now. Download java jdk-8 as instructed here 
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04  and then set it as default like in here: https://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk
Most likely, you will end up doing these commands (but do check first if these are what you need):
sudo apt install openjdk-8-jdk
update-java-alternatives –list
sudo update-java-alternatives –set java-1.8.0-openjdk-amd64
...

Eduardo Cooper

unread,
May 22, 2019, 9:15:24 PM5/22/19
to OMNeT++ Users
Actually, this might be better than what I posted before:
sudo apt install openjdk-8-jdk
update-alternatives --list  java 
sudo update-alternatives --config java
Hope it helps!

Eduardo Cooper

unread,
May 26, 2019, 1:36:33 PM5/26/19
to OMNeT++ Users
Well, guys, did it work or not? 


On Thursday, May 24, 2018 at 11:10:27 AM UTC-4, mariemal...@gmail.com wrote:

rabia ouar

unread,
May 26, 2019, 7:52:52 PM5/26/19
to omn...@googlegroups.com
No it doesn't work, when i run the IDE i have the same error 

--
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.

Eduardo Cooper

unread,
May 26, 2019, 10:17:51 PM5/26/19
to OMNeT++ Users
When you see this part of the error log:
"eclipse.buildId=5.2.1.171211-da8f6bc
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64
"
what is the java version?

On Sunday, May 26, 2019 at 7:52:52 PM UTC-4, rabia ouar wrote:
No it doesn't work, when i run the IDE i have the same error 
Le 26 mai 2019 18:36, "Eduardo Cooper" <ezav...@gmail.com> a écrit :
Well, guys, did it work or not? 

On Thursday, May 24, 2018 at 11:10:27 AM UTC-4, mariemal...@gmail.com wrote:

Hello everyone,

I am starting the installation of OMNET++ 5.2.1 on ubuntu 18.04 and i have an error after "make" like this figure :


Could you please help me, I will be very grateful

Best Regards,

Mariem ALLOUCH.

--
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 omn...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages