Omnet++ "/usr/bin/ld: cannot find -loppmaind" on make

1,032 views
Skip to first unread message

XXLRay

unread,
Feb 23, 2016, 9:16:43 AM2/23/16
to omn...@googlegroups.com
I use Omnetpp-4.6 in Ubuntu 14.04.4.

First of all: I did .configure !

No matter which sample I try I always get the following error message after make:

~/omnetpp-4.6/samples/dyna$ make
Creating executable: out/gcc-debug//dyna
/usr/bin/ld: cannot find -loppmaind
/usr/bin/ld: cannot find -lopptkenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -lopplayoutd
/usr/bin/ld: cannot find -loppcmdenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -loppsimd
collect2: error: ld returned 1 exit status

Here is what I did:

$ cd ~/omnetpp-4.6
$ ./configure
$ make cleanall && make MODE=release -j2
$ cd ./samples/dyna
$ opp_makemake -f
Creating Makefile in /home/anyuser/omnetpp-4.6/samples/dyna...
Makefile created, running "make depend" to add dependencies...
Creating dependencies...
$ make
Client.cc
Server.cc
ServerProcess.cc
Switch.cc
DynaPacket_m.cc
Creating executable: out/gcc-debug//dyna
/usr/bin/ld: cannot find -loppmaind
/usr/bin/ld: cannot find -lopptkenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -lopplayoutd
/usr/bin/ld: cannot find -loppcmdenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -loppsimd
collect2: error: ld returned 1 exit status
make: *** [out/gcc-debug//dyna] Error 1

Any help would be much appreciated.

XXLRay

unread,
Feb 24, 2016, 2:37:45 AM2/24/16
to OMNeT++ Users
No ideas? Did I leave out any important information?

Alfonso Ariza Quintana

unread,
Feb 24, 2016, 4:25:08 AM2/24/16
to omn...@googlegroups.com
have your configured your path?

have configure ended successfully?



Date: Tue, 23 Feb 2016 06:16:43 -0800
From: xxl...@web.de
To: omn...@googlegroups.com
Subject: [Omnetpp-l] Omnet++ "/usr/bin/ld: cannot find -loppmaind" on make

I use Omnetpp-4.6 in Ubuntu 14.04.4.

First of all: I did .configure !

No matter which sample I try I always get the following error message after make:

~/omnetpp-4.6/samples/dyna$ make
Creating executable: out/gcc-debug//dyna
/usr/bin/ld: cannot find -loppmaind
/usr/bin/ld: cannot find -lopptkenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -lopplayoutd
/usr/bin/ld: cannot find -loppcmdenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -loppsimd
collect2: error: ld returned 1 exit status

Here is what I did:

$ cd ~/omnetpp-4.6
$ make cleanall && make MODE=release -j2
$ ./configure

$ cd ./samples/dyna
$ opp_makemake -f
Creating Makefile in /home/hanke/omnetpp-4.6/samples/dyna...

Makefile created, running "make depend" to add dependencies...
Creating dependencies...
$ make
Client.cc
Server.cc
ServerProcess.cc
Switch.cc
DynaPacket_m.cc
Creating executable: out/gcc-debug//dyna
/usr/bin/ld: cannot find -loppmaind
/usr/bin/ld: cannot find -lopptkenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -lopplayoutd
/usr/bin/ld: cannot find -loppcmdenvd
/usr/bin/ld: cannot find -loppenvird
/usr/bin/ld: cannot find -loppsimd
collect2: error: ld returned 1 exit status
make: *** [out/gcc-debug//dyna] Error 1

Any help would be much appreciated.

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

XXLRay

unread,
Feb 24, 2016, 5:19:31 AM2/24/16
to OMNeT++ Users, aari...@hotmail.com
Thanks for the answer. .configure ended with (please tell me if I shall post the whole output):

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

    Akaroa (optional)

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

Your PATH contains /home/anyuser/omnetpp-4.6/bin. Good!

So I guess it was successful ans the following seems to show that the path is set (I added "export PATH=$PATH:$HOME/omnetpp-4.6/bin" to my ~/.bashrc and sourced it).

$ which opp_makemake
/home/anyuser/omnetpp-4.6/bin/opp_makemake

XXLRay

unread,
Feb 24, 2016, 5:41:38 AM2/24/16
to OMNeT++ Users, aari...@hotmail.com
find ~/omnetpp-4.6 -iname "loppmaind" doesn't return anything by the way if that helps to identify the problem.

XXLRay

unread,
Feb 24, 2016, 9:34:24 AM2/24/16
to OMNeT++ Users, aari...@hotmail.com
Now that the command is finished "sudo find / -iname "loppmaind*" 2>&1 | grep -v "Permission"" didn't bring up anything either. Any hints where the libraries should be located?

XXLRay

unread,
Feb 26, 2016, 10:55:48 AM2/26/16
to OMNeT++ Users, aari...@hotmail.com
Could anybody tell me where the libraries should normally be located? This would probably help me to identify what is going wrong.

Alfonso Ariza Quintana

unread,
Feb 29, 2016, 6:22:42 AM2/29/16
to omn...@googlegroups.com

the libraries are located in the bin directory of your omnet instalation directory


Date: Fri, 26 Feb 2016 07:55:48 -0800
From: xxl...@web.de
To: omn...@googlegroups.com
CC: aari...@hotmail.com
Subject: Re: [Omnetpp-l] Omnet++ "/usr/bin/ld: cannot find -loppmaind" on make


Could anybody tell me where the libraries should normally be located? This would probably help me to identify what is going wrong.

XXLRay

unread,
Mar 3, 2016, 3:37:11 AM3/3/16
to OMNeT++ Users, aari...@hotmail.com
Is this how the content of the directory should look like?:

$ ls ~/omnetpp-4.6/lib/
gcc               liboppcommond.so  liboppenvir.so      libopplayoutd.so  liboppmaind.a     liboppscaved.so  liboppsim.so
liboppcmdenvd.so  liboppcommon.so   liboppeventlogd.so  libopplayout.so   liboppnedxmld.so  liboppscave.so   libopptkenvd.so
liboppcmdenv.so   liboppenvird.so   liboppeventlog.so   liboppmain.a      liboppnedxml.so   liboppsimd.so    libopptkenv.so

Daniel Pfefferkorn

unread,
Mar 3, 2016, 8:13:55 AM3/3/16
to omn...@googlegroups.com
Looks about right. (I do have the same files)

What is the content of the sub directory "gcc"?
Actually, the files in /lib are just links to gcc/libfile

Example:
liboppmaind.a -> /dir/to/omnetpp/lib/gcc/liboppmaind.a

Hope that helps!

-- Daniel
> --
> 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
> <mailto:omnetpp+u...@googlegroups.com>.

XXLRay

unread,
Mar 4, 2016, 6:47:16 AM3/4/16
to OMNeT++ Users
Looks pretty much like you explained it:

$ ls ~/omnetpp-4.6/lib/gcc
liboppcmdenvd.so  liboppenvird.so     libopplayoutd.so  liboppnedxmld.so  liboppsimd.so
liboppcmdenv.so   liboppenvir.so      libopplayout.so   liboppnedxml.so   liboppsim.so
liboppcommond.so  liboppeventlogd.so  liboppmain.a      liboppscaved.so   libopptkenvd.so
liboppcommon.so   liboppeventlog.so   liboppmaind.a     liboppscave.so    libopptkenv.so


So I guess there's some issue with my path variable.

Daniel Pfefferkorn

unread,
Mar 4, 2016, 10:05:53 AM3/4/16
to omn...@googlegroups.com
My PATH only contains /PATH/TO/OMNETPP/bin and it works...

XXLRay

unread,
Mar 11, 2016, 8:58:27 AM3/11/16
to OMNeT++ Users
Well, I added the .../lib to my path variable and this seems to do the trick.
Reply all
Reply to author
Forward
0 new messages