Erik
Erik

Reputation: 1

Getting error: unable to find library -lveins_inet_dbg when building Simu5G project together with veins for Omnet++

I tried to setup simulation for vehicular networks with Omnet++ and Simu5G. I followed this instructions (http://simu5g.org/veins_integration.html) but I get building errors when I try to integrate veins in the last step.

My Specs:

The error messages:

Creating shared library: ../out/clang-debug/src/libsimu5g_dbg.so
ld.lld: error: unable to find library -lveins_inet_dbg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:423: ../out/clang-debug/src/libsimu5g_dbg.so] Error 1
make[1]: Leaving directory '/home/user/omnetpp-6.0/Omnetpp_Projects/simu5g/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug -j2 all" terminated with exit code 2. Build might be incomplete.

20:41:00 Build Failed. 2 errors, 9 warnings. (took 5m:12s.851ms)

I tried to clean and rebuild the workspace but the problem persists.

UPDATE

Error messages when building just veins-5.2 in my workspace (with inet-4.4.0 correctly imported and build, but without simu5g)

make[1]: Entering directory '/home/puma/omnetpp-6.0/Omnetpp_Projects/veins-veins-5.2/subprojects/veins_inet/src'
MSGC: veins_inet/VeinsInetSampleMessage.msg
veins_inet/VeinsInetSampleMessage.msg:27: Error: cannot resolve import 'inet.common.INETDefs'
veins_inet/VeinsInetSampleMessage.msg:28: Error: cannot resolve import 'inet.common.packet.chunk.Chunk'
veins_inet/VeinsInetSampleMessage.msg:34: Error: 'VeinsInetSampleMessage': unknown base class 'inet::FieldsChunk'
opp_msgtool: error in 1 file(s)
make[1]: Leaving directory '/home/puma/omnetpp-6.0/Omnetpp_Projects/veins-veins-5.2/subprojects/veins_inet/src'
make[1]: *** [Makefile:131: veins_inet/VeinsInetSampleMessage_m.h] Error 1
make: *** [Makefile:36: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.

Upvotes: 0

Views: 350

Answers (2)

Neha Nagapurkar
Neha Nagapurkar

Reputation: 1

Make sure that project name of "inet" is without any version number. Renaming (folder) "inet4.4" to "inet" solved my issue.

enter image description here

Upvotes: 0

Jerzy D.
Jerzy D.

Reputation: 7012

According to Veins 5.2 Compatibility INET 4.4.0 is not supported by Veins 5.2. Try to use INET 4.3.5.

Upvotes: 0

Related Questions