Compiling an OMNeT project with references to INET from command line

678 views
Skip to first unread message

Alberto Núñez

unread,
Mar 10, 2015, 1:21:59 PM3/10/15
to omn...@googlegroups.com

Hello,

I'm trying to compile an OMNeT project that contains references to the INET framework. It works perfectly from the IDE (omnetpp), but it crashes when it is compiled from the terminal (command line).

I think the problem is the auto-generated Makefile, which does not include references to the INET folders.

My question is: is there any way to generate a Makefile containing references to the INET framework by using the terminal? I use: opp_makemake -f --deep, but this doesn't work.


This is a portion of the Makefile generated from the IDE. The same Makefile does not contain these lines when it is generated from the terminal.

# C++ include paths (with -I)

INCLUDE_PATH = \

    -I../../inet/src/linklayer/ieee80211/radio \

    -I../../inet/src/networklayer/routing/aodv \

    -I../../inet/src/networklayer/common \

    -I../../inet/src \

    -I../../inet/src/networklayer/icmpv6 \

    -I../../inet/src/world/obstacles \

    -I../../inet/src/networklayer/xmipv6 \

    -I../../inet/src/networklayer/contract

...


Thanks in advance,


Alberto N.

Rudolf Hornig

unread,
Mar 11, 2015, 6:52:55 AM3/11/15
to omn...@googlegroups.com
SimuLTE and other projects depending on INET do this:


check the part under the makefiles target how to generate the makefile itself in the src directory

OS3 does this too: 


Unfortunately with inet 2.6 and earlier you have to add all the include directories in INET to this command line (as shown in the makefile). Starting with INET 2.99 it will be even easier as you have to add only inet's 'src' folder as an include directory.

Cana

unread,
Mar 11, 2015, 8:11:56 AM3/11/15
to omn...@googlegroups.com
Hi Rudolf!

Thanks a lot for your quick response. It is very helpful! ;)

Best regards,

Alberto N.

--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/qcblulJW9X0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages