Imported NED type not found: 'org.car2x.veins.subprojects.veins_inet.VeinsInetManager'

1,141 views
Skip to first unread message

Tiago Silva

unread,
Apr 14, 2018, 8:11:49 PM4/14/18
to OMNeT++ Users
Hello!
I'm new with SimuLTE and sorry if this is the wrong place to ask for help. I'm trying to install Veins-LTE following this tutorial: http://simulte.com/add_veins.html. However, when the projects are imported by Omnet++ **the example simulation cars** are presenting this error in: https://github.com/inet-framework/simulte/blob/9b1d71360f5c8034e038e30620500289722c0c52/simulations/cars/Highway.ned#L25
Due this, I can't run this simulation. As indicated by tutorial, I'm using:
- OMNeT++ v5.1.1;
- INET-Framework v3.6 (included in complete package tar.gz from tutorial) ;
- SUMO v0.30.0 .
I tried to install this using Windows and Linux VM. The same behaviour occurs.
Thanks in advance!
Captura de tela de 2018-04-14 20-16-51.png

Jia Guo

unread,
Apr 14, 2018, 8:17:20 PM4/14/18
to omn...@googlegroups.com
Hello Tiago, 

I used to have encountered the same problem. The following is the solution:

Import the project using: File | Import | General | Existing projects into Workspace. Then select the Veins directory and check the "Search for nested projects" box. This will add both "veins" and "veins_inet" projects. Click Finish. [1]



--
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.
<Captura de tela de 2018-04-14 20-16-51.png>

Tiago Silva

unread,
Apr 14, 2018, 11:30:25 PM4/14/18
to omn...@googlegroups.com
Hello, Jia!
Thank you! This step solve the problem. However, when I build the veins_inet project it presents some include errors... I fix this problem in files:

simulte_veins/veins-veins-4.6/subprojects/veins_inet/src/veins_inet/VeinsInetManager.cc
From:
#include "veins_inet/VeinsInetManager.h"
#include "veins/base/utils/Coord.h"
#include "veins_inet/VeinsInetMobility.h"
To:
#include "VeinsInetManager.h"
#include "veins/base/utils/Coord.h"
#include "VeinsInetMobility.h"

simulte_veins/veins-veins-4.6/subprojects/veins_inet/src/veins_inet/VeinsInetMobility.cc
From:
#include "veins_inet/VeinsInetMobility.h"
To:
#include "VeinsInetMobility.h"

With this, the compilation problem was solved. However, when I run the cars simulation the following error occur:

terminate called after throwing an instance of 'omnetpp::cRuntimeError'
  what():  ASSERT: Condition '(int)signalListenerCount.size() == lastSignalID+1' does not hold in function 'registerSignal' at ccomponent.cc:414

Simulation terminated with exit code: 134
Working directory: /home/tiago/teste/simulte_veins/simulte/simulations/cars
Command line: opp_run -m -n ..:../../src:../../../inet/src:../../../inet/examples:../../../inet/tutorials:../../../inet/showcases:../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet:../../../veins-veins-4.6/subprojects/veins_inet/examples/veins_inet --image-path=../../images:../../../inet/images -l ../../src/lte -l ../../../inet/src/INET -l ../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet omnetpp.ini

I verified the additional steps of http://simulte.com/add_veins.html and it's correct in the project:

"Import the project using: File | Import | General | Existing projects into Workspace. Then select the Veins directory and check the "Search for nested projects" box. This will add both "veins" and "veins_inet" projects. Click Finish.
Right-click on the "simulte" folder | Properties | Project References. Then tick the "veins_inet" box. Click OK."

Did you have this problem too?

Thanks in advance!

2018-04-14 21:17 GMT-03:00 Jia Guo <jia...@wmich.edu>:
Hello Tiago, 

I used to have encountered the same problem. The following is the solution:

Import the project using: File | Import | General | Existing projects into Workspace. Then select the Veins directory and check the "Search for nested projects" box. This will add both "veins" and "veins_inet" projects. Click Finish. [1]

On Apr 14, 2018, at 8:11 PM, Tiago Silva <tiago.s...@gmail.com> wrote:

Hello!
I'm new with SimuLTE and sorry if this is the wrong place to ask for help. I'm trying to install Veins-LTE following this tutorial: http://simulte.com/add_veins.html. However, when the projects are imported by Omnet++ **the example simulation cars** are presenting this error in: https://github.com/inet-framework/simulte/blob/9b1d71360f5c8034e038e30620500289722c0c52/simulations/cars/Highway.ned#L25
Due this, I can't run this simulation. As indicated by tutorial, I'm using:
- OMNeT++ v5.1.1;
- INET-Framework v3.6 (included in complete package tar.gz from tutorial) ;
- SUMO v0.30.0 .
I tried to install this using Windows and Linux VM. The same behaviour occurs.
Thanks in advance!

--
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.
<Captura de tela de 2018-04-14 20-16-51.png>

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



--
Att.
Tiago Alves Silva

aman gulia

unread,
Feb 22, 2019, 9:08:11 AM2/22/19
to OMNeT++ Users
Hi Tiago,

I am new to omnet++ and veins. I faced the same errors as you did when building the veins_inet project. I tried to fix it VeinsInetManager.cc and VeinsInetMobility.cc in the same way as you, by removing the additional directory 'veins_inet' from the path of VeinsInetManager.h and VeinsInetMobility.h.
After this change, I am able to build the project successfully however the Car simulation still gives error code 139. 
Were you able to resolve your issue? 
It seems to me that the fix of removing 'veins_inet' in VeinsInetManager.cc and VeinsInetMobility.cc isn't the right way to go about it. 
Any pointers to resolve my problem would be appreciated.

Below is the console log when Car Simulation is run on omnet++ IDE :

Starting...

$ cd /home/user/simulte_veins/simulte/simulations/cars
$ opp_run -m -n ..:../../src:../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet:../../../veins-veins-4.6/subprojects/veins_inet/examples/veins_inet:../../../../inet/src:../../../../inet/examples:../../../../inet/tutorials:../../../../inet/showcases --image-path=../../images:../../../../inet/images -l ../../src/lte -l ../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet -l ../../../../inet/src/INET omnetpp.ini

<!> Warning: opp_run: Cannot check library ../../src/lte: /home/user/simulte_veins/veins-veins-4.6/subprojects/veins_inet/out/gcc-debug/src/libveins_inet.so: undefined symbol: _ZN5Veins27TraCIScenarioManagerLaunchd10initializeEi

<!> Warning: opp_run: Cannot check library ../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet: /home/user/simulte_veins/veins-veins-4.6/subprojects/veins_inet/out/gcc-debug/src/libveins_inet.so: undefined symbol: _ZN5Veins27TraCIScenarioManagerLaunchd10initializeEi

Simulation terminated with exit code: 139
Working directory: /home/user/simulte_veins/simulte/simulations/cars
Command line: opp_run -m -n ..:../../src:../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet:../../../veins-veins-4.6/subprojects/veins_inet/examples/veins_inet:../../../../inet/src:../../../../inet/examples:../../../../inet/tutorials:../../../../inet/showcases --image-path=../../images:../../../../inet/images -l ../../src/lte -l ../../../veins-veins-4.6/subprojects/veins_inet/src/veins_inet -l ../../../../inet/src/INET omnetpp.ini

Environment variables:
PATH=/home/user/omnetpp-5.1.1/bin:;;:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD_LIBRARY_PATH=/home/user/omnetpp-5.1.1/lib::/home/user/simulte_veins/simulte/src:/home/user/simulte_veins/veins-veins-4.6/subprojects/veins_inet/src:/home/user/inet/src:
OMNETPP_IMAGE_PATH=/home/user/omnetpp-5.1.1/images
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.
<Captura de tela de 2018-04-14 20-16-51.png>

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

Christoph Sommer

unread,
Feb 23, 2019, 4:01:23 AM2/23/19
to OMNeT++ Users
aman gulia wrote:
> libveins_inet.so: undefined symbol: _ZN5Veins27TraCIScenarioManagerLaunchd10initializeEi

For some reason, your simulation is not configured to be based on the Veins project. This is why you saw missing include paths (during compilation) and this is why you are now seeing missing symbols (during linking): The symbol that is missing can be found in libveins, but your opp_run call only loads three libraries, as can be seen from the three "-l" switches (-l .../lte -l .../veins_inet -l .../INET) passed to opp_run. You might have misconfigured which projects depend on which or you might have changed which compiler and linker switches are exported/imported from the various projects in your workspace.

Maybe adding not just veins_lte, but also the Veins project as a "project reference" to your SimuLTE can serve as a crude workaround, but something is seriously wrong in your project configuration.

If setting up SimuLTE+Veins continues to give you trouble, you might also want to switch to using "Instant Veins", a virtual machine that already has all projects set up and configured correctly. This virtual machine exists in two versions: with and without SimuLTE. Make sure to download <https://veins.car2x.org/download/> the one with LTE support.

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Reply all
Reply to author
Forward
0 new messages