Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)

1,027 views
Skip to first unread message

amrcg

unread,
Sep 8, 2021, 6:51:47 AM9/8/21
to OMNeT++ Users
Hello,

I'm trying to install FLoRa, but I get the following linker errors:

Creating shared library: ../out/clang-debug/src/libflora_dbg.dll
lld-link: error: duplicate symbol: inet::SharingTagSet::setTag(int, inet::IntrusivePtr<inet::TagBase const> const&)
defined at ../../inet4.3/src\inet/common/packet/tag\SharingTagSet.h:163
          ../out/clang-debug/src/LoRa/LoRaGWMac.o
defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::SharingRegionTagSet::operator=(inet::SharingRegionTagSet const&)
defined at ../../inet4.3/src\inet/common/packet/tag\SharingRegionTagSet.h:283
          ../out/clang-debug/src/LoRa/LoRaMacFrame_m.o
defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::numInitStages() const
defined at ../../inet4.3/src\inet/common/lifecycle\OperationalMixin.h:51
          ../out/clang-debug/src/LoRa/LoRaGWMac.o
defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::isUp() const
defined at ../../inet4.3/src\inet/common/lifecycle\OperationalMixin.h:76
          ../out/clang-debug/src/LoRa/LoRaGWMac.o
defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::isDown() const
defined at ../../inet4.3/src\inet/common/lifecycle\OperationalMixin.h:77
          ../out/clang-debug/src/LoRa/LoRaGWMac.o
defined at libINET_dbg.dll
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:140: ../out/clang-debug/src/libflora_dbg.dll] Error 1
make[1]: Leaving directory '/c/omnetpp-6.0pre12/samples/flora/src'
make: *** [Makefile:5: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.

13:15:11 Build Failed. 2 errors, 314 warnings. (took 51s.525ms)

I'm using OMNET++ 6 pre 12 in Windows. I've checked that FloRa has a project reference to INET 4.3. The latter builds and runs without problems.
Do you have an ideia about what might be happening?
By the way, I’ve tried to install FloRa both from the Help menu in OMNET++, and by downloading the package. The result is the same.

Thank you in advance.

Best regards,
António Grilo

Mahmood A. Al-shareeda

unread,
Sep 8, 2021, 7:04:27 AM9/8/21
to omn...@googlegroups.com
Hi  Grilo,

Follow all steps in the following video link. 


 

Best Regards,
Mahmood A. Al-shareeda

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/b50dfa2a-19ac-411d-966c-83ab593f3153n%40googlegroups.com.

Alfonso Ariza Quintana

unread,
Sep 8, 2021, 8:03:13 AM9/8/21
to omn...@googlegroups.com
I have included the Flora code in inetmanet, if you have problems, you can use inetmanet with the latest 6.0-pre version

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de amrcg <amr...@gmail.com>
Enviado: miércoles, 8 de septiembre de 2021 12:51
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)
 

amrcg

unread,
Sep 9, 2021, 8:25:55 AM9/9/21
to OMNeT++ Users
Hello Alfonso,

I have tried to install INETMANET, but even this gives errors. I'm sending the console output in the attached file. Despite this, I have tried running the examples, but this also fails. For example, when I run the hosttohost example, a dialog appears with inconsistency warnings of the style: "Clock: Feature is enabled but folder /inetmanet-4.x-master/src/inet/applications/clock is excluded from C++ build in at least one configuration". Then the simulator canvas opens. When I run the simulation, I get the following error: "check_and_cast(): Cannot cast (inet::Request*)LLC_OPEN to type 'inet::Packet * -- in module (inet::OmnittedIeee802dQoSClassifier)', etc."
As to FLoRa, the project has an error mark in examples/flora, and the examples don't run (e.g., LoRaNetworkTest.ned not found).
Do you know what might be happening?
inetmanet_console.txt

Mahmood A. Al-shareeda

unread,
Sep 9, 2021, 8:43:45 AM9/9/21
to OMNeT++ Users
 Since linker errors in your Windows environment, therefore, using a virtual machine with a Linux instance installed is suggested.

amrcg

unread,
Sep 9, 2021, 9:02:11 AM9/9/21
to OMNeT++ Users
Dear Mahmood ,
Yes, that is a possibility. But since OMNET++ is supposed to be supported in Windows, it would be a pity not to solve those issues. In case I'm unable to solve this, I will surely use a virtual machine.
Regards,
António

Alfonso Ariza Quintana

unread,
Sep 9, 2021, 11:11:50 AM9/9/21
to omn...@googlegroups.com
I am using omnet++ Version: 6.0pre12, Build id: 210727-c1ec2ec2fa with linux

And the latest version of code from
https://github.com/aarizaq/inetmanet-4.x
The INET framework is an open-source communication networks simulation package, written for the OMNEST/OMNeT++ simulation system. The INET framework contains models for numerous wired and wireless protocols, a detailed physical layer model, application models and more. See the CREDITS file for the ...
I have built the framework directly from the IDE and I can not reproduce the problem. The libraries libINET_dbg.so and libINET.so are created without problems

Enviado: jueves, 9 de septiembre de 2021 14:25
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)
 
--
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.

amrcg

unread,
Sep 9, 2021, 1:31:13 PM9/9/21
to OMNeT++ Users
Alfonso,

The problem has to do with MS Windows compatibility. Right now, INET is compatible, but INETMANET is not.

Regards,
António

Alfonso Ariza Quintana

unread,
Sep 10, 2021, 6:52:39 AM9/10/21
to omn...@googlegroups.com
I will check with windows this evening, now the computer that I use in my office only has Linux.



Enviado: jueves, 9 de septiembre de 2021 19:31

Alfonso Ariza Quintana

unread,
Sep 10, 2021, 7:32:17 AM9/10/21
to omn...@googlegroups.com
I have just fixed the node formats of the lora nodes, Inet has changed in the latest version the format of the nodes and I have not actualized the Lora nodes. Now you can run the example, at least in Linux, I will check in windows.


Enviado: jueves, 9 de septiembre de 2021 19:31

Alfonso Ariza Quintana

unread,
Sep 10, 2021, 1:34:56 PM9/10/21
to omn...@googlegroups.com
I can build the code in windows also, you will need to check the features, 

Enviado: jueves, 9 de septiembre de 2021 14:25
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)
 
--
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.
Message has been deleted
Message has been deleted

Mahmood A. Al-shareeda

unread,
Sep 11, 2021, 5:04:33 AM9/11/21
to OMNeT++ Users

Hi FLoRa users,

For simplicity,   FLoRa installation in Windows and Linux are briefly described in the following two videos, respectively.

In the following link for the first video: How to install FLoRa (OMNeT++ 6.0 pre 12) on Windows.

In the following for the second video: How to install FLoRa  (OMNeT++ 6.0 pre 11) on Ubuntu 20.04
https://www.youtube.com/watch?v=4F-3o1ZaxH4&list=PLExIbkpRI1eWGIvHG3WMRPhcJLZzFbQlD&index=3&ab_channel=MahmoodA.Al-shareeda

All links are available to the description of these videos.
Note: Eng subs will be added soon

Best Regards,
Mahmood A. Al-shareeda


On Saturday, 11 September 2021 at 4:30:43 am UTC+8 amrcg wrote:
Dear Alfonso,

I have tried to build, and there were 5 errors. I'm sending the dialog box that was opened when I tried to build. Do you have any idea about the possible reason? You told me to check the features. What does that precisely mean?
Thank you in advance.

Regards,
António 

Message has been deleted

Alfonso Ariza Quintana

unread,
Sep 13, 2021, 3:39:59 AM9/13/21
to omn...@googlegroups.com
In Project->properties->OMNeT++->Project features

Select the options that you want and apply, it is possible that you need to repeat them several times until they disappear, this will generate the correct project configuration. The problem is that exists a discrepancy between the selected features and the project configuration.

Enviado: viernes, 10 de septiembre de 2021 22:30

Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)
Dear Alfonso,

I have tried to build, and there were 5 errors. I'm sending the dialog box that was opened when I tried to build. Do you have any idea about the possible reason? You told me to check the features. What does that precisely mean?
Thank you in advance.

Regards,
António 

On Friday, September 10, 2021 at 6:34:56 PM UTC+1 Alfonso Ariza Quintana wrote:

Alfonso Ariza Quintana

unread,
Sep 13, 2021, 10:38:54 AM9/13/21
to omn...@googlegroups.com
I suspect that the problem is the size of the DDL file, try to remove any unnecessary feature, and build it, I have tested and removing some features like clock and icancloud is enough, you can remove any unnecessary

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Alfonso Ariza Quintana <aari...@hotmail.com>
Enviado: viernes, 10 de septiembre de 2021 19:34
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: RE: [Omnetpp-l] Error building FLoRa 1.0.0 (OMNET++ 6 pre 12 + INET 4.3, in Windows)
 
Reply all
Reply to author
Forward
0 new messages