Git Product home page Git Product logo

Comments (8)

riebl avatar riebl commented on May 27, 2024

I can see from your console dump that INET is compiled in release mode (as out/gcc-release/src/libINET.so library). As the output by opp_run tells you one should not mix OMNeT++ libraries (such as Veins, INET and Artery) when they are not all built in the same mode, i.e. release or debug.
For example, you can force INET to be built in debug mode by calling make MODE=debug in extern/inet.

from artery.

micleb avatar micleb commented on May 27, 2024

I executed make MODE=debug in extern/inet. The compilation was successful.

But cmake --build build --target run_example is still not working (same output)

[...]

[ 14%] Building INET (external dependency)
*** COMPILING with:
g++ -c -std=c++11 -O2 -DNDEBUG=1 -MMD -MP -MF .d  -fPIC  -fno-stack-protector -DHAVE_SWAPCONTEXT -DWITH_MPI -DXMLPARSER=libxml -DPREFER_QTENV -DWITH_QTENV -DWITH_TKENV -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_OSG -DWITH_OSGEARTH -Wno-overloaded-virtual -include inet/common/precompiled_release.h  -DINET_EXPORT -I. -I/home/user/ITS/omnetpp-5.1.1/include
*** LINKING with:
g++ -shared -fPIC -o ../out/gcc-release/src/libINET.so -Wl,--no-as-needed -Wl,--whole-archive  -Wl,--no-whole-archive -loppenvir -loppsim -ldl -lstdc++  -lOpenThreads -losg -losgText -losgDB -losgEarth -losgEarthUtil -Wl,-rpath,/home/user/ITS/omnetpp-5.1.1/lib -Wl,-rpath,/lib -Wl,-rpath,.  -Wl,--export-dynamic -L/home/user/ITS/omnetpp-5.1.1/lib

[...]

from artery.

micleb avatar micleb commented on May 27, 2024

@riebl Any idea how to fix that ?

Like I said in my previous post, I tried make MODE=debug in the inet folder (it worked) but when I try to compile run_example the default mode is "release"

I also tried make run_example mode=debug in the build directory, but the error is still there

from artery.

riebl avatar riebl commented on May 27, 2024

@micleb I still don't know why this problem occurs on your system. You can try to build Veins in release mode explicitly as well, similar to INET.
I have the feeling that something with the generated veins-targets.cmake and INET-targets.cmake files in your build directory is odd, e.g. one of them is missing the release configuration und thus falling back to the debug build.

from artery.

riebl avatar riebl commented on May 27, 2024

@micleb Did you manage to get Artery running in the meantime?

from artery.

dnguyenkth avatar dnguyenkth commented on May 27, 2024

Hi, I also got the same problem a while ago. I got the error on 9ec5eba and don't know if the error persists after that. However, then i tried cloning down the 655d46a commit (from march) and I didn't get the same error. So it seems to be caused by some CMake change after that. Hope it helps in discovering the issue.

from artery.

riebl avatar riebl commented on May 27, 2024

@dnguyenkth Thanks for your additional insights. You may try to remove all *-targets.cmake files from your build directory when this problem occurs.
It seems that those files, which are generated by Artery's opp_cmake, are not updated when dependencies such as Veins or INET have been built with another mode option. Removing them forces CMake to run opp_cmake again.

from artery.

dnguyenkth avatar dnguyenkth commented on May 27, 2024

I get it to build without any problem on the latest commit 577e2bd, so I guess this is solved now :)

from artery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.