[Omnetpp-l] Optional component Akaroa not optional anymore?

122 views
Skip to first unread message

Stephan Janosch

unread,
Mar 16, 2009, 4:40:10 AM3/16/09
to omne...@omnetpp.org
Good Morning (or any other daytime you are in)!

I have one or more questions concerning Akaroa as an optional component
for building Omnet 4.

First of all, I found no way to diable Akaroa in the building process.
Akaroa is declared optional. So there should be a way building Omnet
without Akaroa. Did I oversee this way?

If I look into configure.user I see this

#
# Compiler and linker options for Akaroa (optional component)
#
# With MinGW I use the following:
# AKAROA_CFLAGS="-I/d/home/tools/akaroa-2.7.4/include"
# AKAROA_LIBS="-L/d/home/tools/akaroa-2.7.4/lib -lakaroa"
# If commented out, the configure script will try to autodetect it
#
#AKAROA_CFLAGS=
#AKAROA_LIBS=

So there is no option to disable usage of Akaroa. The paralellized
simulation can be deactivated easily with this statement.

#
# Set to "yes" to enable the parallel distributed simulation feature.
#
WITH_PARSIM=yes

But there is NO

WITH_AKAROA=yes

to disable Akaroa. So the same way diable-ing parallel simulation does
not work for Akaroa. So i tried:

janosch-desktop:~/omnetpp$ ./configure --without-AKAROA

I called configure to disable Akaroa, but this statement gets ignored at
my plattform.

Let's look into the Readme-Files.

README-UNIX: says

sudo apt-get install build-essential gcc g++ bison flex perl tcl8.4
tcl8.4-dev \ tk8.4 tk8.4-dev blt blt-dev libxml2 libxml2-dev \
zlib1g zlib1g-dev libx11-dev

No Akaroa there. And no explanation where to get it. Of course I found
it somewhere with google looking for the filename of the akaroa sources,
but the same question could be asked by other people. So I had no real
trouble build Omnet4, but I just want to make clear, if the building
process works without Akaroa.

So the final question is: Can we/I still disable Akaroa for building
Omnet 4 or was I unable to find the right switch?

Some words about my plattform:
Ubuntu 8.10 (32 bit)
GNU Make 3.81
gcc-Version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)

Best regards,
Stephan Janosch

BTW: There is no chapter or short hint in the Omnet manual about the
installation or the supported plattforms or the doc/Readme's. An
advanced user might not need these infos, but for absolute Omnet newbies
these infos might be usefull. Perhaps some words in chapter 2.3.2 of the
manual could be helpful to find Readme-*.

janosch.vcf

Rudolf Hornig

unread,
Mar 16, 2009, 8:18:02 AM3/16/09
to omne...@omnetpp.org

2009/3/16 Stephan Janosch <jan...@informatik.htw-dresden.de>

Good Morning (or any other daytime you are in)!

I have one or more questions concerning Akaroa as an optional component for building Omnet 4.

First of all, I found no way to diable Akaroa in the building process. Akaroa is declared optional. So there should be a way building Omnet without Akaroa. Did I oversee this way?

If you do not have akaroa installed on your machine, the configuration script will not detect it, but omnet will compile without any problem. Thats why it is called optional.
 


If I look into configure.user I see this

 #
 # Compiler and linker options for Akaroa (optional component)
 #
 # With MinGW I use the following:
 #  AKAROA_CFLAGS="-I/d/home/tools/akaroa-2.7.4/include"
 #  AKAROA_LIBS="-L/d/home/tools/akaroa-2.7.4/lib -lakaroa"
 # If commented out, the configure script will try to autodetect it
 #
 #AKAROA_CFLAGS=
 #AKAROA_LIBS=

So there is no option to disable usage of Akaroa. The paralellized simulation can be deactivated easily with this statement.

No direct option exist to disable expicitly but:
- solution 1: you do not install it. OMNeT++ will compile wihout it fine.
- solution 2: if you have akaroa installed, but want to explicitly disabled, there is a trick:

force  the akaroa lib/include files to something which is not exisiting. This will disable the autodetection and becuase the given files/libraries do not exist, OMNeT++ will compile without akaroa support.

in cofigure.user write:
AKAROA_CFLAGS="-Idummy"
AKAROA_LIBS="--ldummy"



 #
 # Set to "yes" to enable the parallel distributed simulation feature.
 #
 WITH_PARSIM=yes

But there is NO

 WITH_AKAROA=yes

to disable Akaroa. So the same way diable-ing parallel simulation does not work for Akaroa. So i tried:

janosch-desktop:~/omnetpp$ ./configure --without-AKAROA

I called configure to disable Akaroa, but this statement gets ignored at my plattform.

See the above solution.
 


Let's look into the Readme-Files.

README-UNIX: says

sudo apt-get install build-essential gcc g++ bison flex perl tcl8.4 tcl8.4-dev \ tk8.4 tk8.4-dev blt blt-dev libxml2 libxml2-dev \        zlib1g zlib1g-dev libx11-dev

No Akaroa there. And no explanation where to get it. Of course I found it somewhere with google looking for the filename of the akaroa sources, but the same question could be asked by other people. So I had no real trouble build Omnet4, but I just want to make clear, if the building process works without Akaroa.

Akaroa is not bundled in major linux distributions, so you have to download it source form and build it by hand. Thats why it is not included in the required package list.
And yes, the building process does work perfectly without akaroa installed.
 


So the final question is: Can we/I still disable Akaroa for building Omnet 4 or was I unable to find the right switch?

Yes you can. See above. But if you dont want to use akaroa, just do not install it :)

Rudolf



Some words about my plattform:
Ubuntu 8.10 (32 bit)
GNU Make 3.81
gcc-Version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)

Best regards,
Stephan Janosch

BTW: There is no chapter or short hint in the Omnet manual about the installation or the supported plattforms or the doc/Readme's. An advanced user might not need these infos, but for absolute Omnet newbies these infos might be usefull. Perhaps some words in chapter 2.3.2 of the manual could be helpful to find Readme-*.






_______________________________________________
Omnetpp-l mailing list
Omne...@omnetpp.org
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l


Stephan Janosch

unread,
Mar 17, 2009, 3:37:49 AM3/17/09
to omne...@omnetpp.org
Thank you Rudolf for clarifying this.

I never experienced such a smart behavior before.


janosch.vcf
Reply all
Reply to author
Forward
0 new messages