inet-framework / inet

INET Framework for the OMNeT++ discrete event simulator
https://inet.omnetpp.org
Other
441 stars 488 forks source link

Rebuilding the project each time when running the simulation of INET on ArchLinux #898

Closed howhangliu closed 1 year ago

howhangliu commented 1 year ago

Dear INET contributors,

I hope this message finds you well. I'm currently facing an issue while attempting to install OMNeT++ and INET on Arch Linux (https://archlinux.org/).

The problem arises when running the INET simulation, as the entire INET project is rebuilt each time, leading to significant delays. For reference, I'm using Arch Linux version 2023.06.01, and OMNeT++ 6.0.1 and INET 4.5.0. I'm unsure if this is an operating system issue or if I misconfigured the INET project.

Thank you for taking the time to read this message and any assistance you can provide would be greatly appreciated. Best regards,

rhornig commented 1 year ago

The IDE just invokes make MODE=release before each run, so the issue is that for some reason the makefile builds INET each time. This can happen because a dependency is out of date. Now the question is, which dependency causes the rebuild?

I suggest adding --debug=basic to the make command line. This would print all out of date dependencies and lead closer to why the rebuild happens. Of course the constant rebuild is NOT a normal operation.

See if you can reproduce the same thing from command line prompt.

tofastnet commented 1 year ago

Hello, from my experience with the OMNeT++ IDE this usually happens when active Build Configurations are set to debug. Try right-clicking on inet in your Project Explorer --> Build Configurations --> Set Active select 2 release and rebuild your project. See if this workaround helps.

howhangliu commented 1 year ago

I appreciate everyone's response. I'm happy to report that the issue has been resolved, so I will be closing this matter.