OMNeT 5.3 Installation Problem in Ubuntu 16.04

987 views
Skip to first unread message

Ali Arslan

unread,
Apr 18, 2018, 12:50:28 PM4/18/18
to OMNeT++ Users
Hi,

I am trying to install Omnet++ 5.3 on Ubuntu 16.04
When I type "make" on terminal, I am getting this errors :

cdynamicexpression.cc: In function ‘intpar_t omnetpp::safeAdd(intpar_t, intpar_t)’:
cdynamicexpression.cc:389:42: error: ‘__builtin_add_overflow’ was not declared in this scope
     if (__builtin_add_overflow(a, b, &res))
                                          ^
cdynamicexpression.cc: In function ‘intpar_t omnetpp::safeMul(intpar_t, intpar_t)’:
cdynamicexpression.cc:401:42: error: ‘__builtin_mul_overflow’ was not declared in this scope
     if (__builtin_mul_overflow(a, b, &res))
                                          ^
Makefile:100: recipe for target '/opt/omnetpp-5.3/out/gcc-release/src/sim/cdynamicexpression.o' failed
make[2]: *** [/opt/omnetpp-5.3/out/gcc-release/src/sim/cdynamicexpression.o] Error 1
make[2]: *** Bitmemiş işler için bekliyor....
Makefile:117: recipe for target 'sim' failed
make[1]: *** [sim] Error 2
Makefile:28: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2


It took a lot of my times but I could not solve...
How Can I fix this problem?

Attila Török

unread,
Apr 18, 2018, 2:29:40 PM4/18/18
to OMNeT++ Users
Hi!

Try installing clang and building with that:

sudo apt-get install clang

Then ./configure and make again.

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

Ali Arslan

unread,
Apr 18, 2018, 4:17:44 PM4/18/18
to omn...@googlegroups.com

Thanks Atilla. I did it. But now, I am getting different errors :

Creating executable: out/clang-release//osg-earth
/usr/bin/ld: cannot find -losgEarthFeatures
/usr/bin/ld: cannot find -losgEarthSymbology
/usr/bin/ld: cannot find -losgEarthAnnotation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:108: recipe for target 'out/clang-release//osg-earth' failed
make[2]: *** [out/clang-release//osg-earth] Error 1
Makefile:133: recipe for target 'osg-earth' failed
make[1]: *** [osg-earth] Error 2

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

 
Edit ::::::

Then, I solved my problems through this link : https://groups.google.com/forum/#!topic/omnetpp/XdLE8-7XoZ8

Thank you ver very very much Atilla. You are the King of the Omnet!





Attila Török

unread,
Apr 19, 2018, 11:33:22 AM4/19/18
to OMNeT++ Users
Try installing some more osgearth-related packages, or if you don't need it, disabling osgearth integration by setting the value of WITH_OSGEARTH to no in configure.user, then starting again from ./configure.

2018-04-18 22:17 GMT+02:00 Ali Arslan <qut...@gmail.com>:

Thanks Atilla. I did it. But now, I am getting different errors :

Creating executable: out/clang-release//osg-earth
/usr/bin/ld: cannot find -losgEarthFeatures
/usr/bin/ld: cannot find -losgEarthSymbology
/usr/bin/ld: cannot find -losgEarthAnnotation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:108: recipe for target 'out/clang-release//osg-earth' failed
make[2]: *** [out/clang-release//osg-earth] Error 1
Makefile:133: recipe for target 'osg-earth' failed
make[1]: *** [osg-earth] Error 2
Makefile:28: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2


Mohammad Haidari

unread,
Sep 15, 2019, 10:53:42 AM9/15/19
to OMNeT++ Users
Hi, I am trying to install Omnet++ 5.3 on Ubuntu 14.04 When I type "make" on terminal give the same error ,i try both of your guides  and but don't work and give this error again.
plz help me.
Reply all
Reply to author
Forward
0 new messages