Installation of Castalia 3.0 for OMNeT++ 4.1 on Windows 7 with cygwin

2,882 views
Skip to first unread message

wechda

unread,
Sep 3, 2010, 8:05:41 AM9/3/10
to Castalia Simulator
Hi

I have been reading the FAQ, manual and all related messages in this
group, but I cannot find an answer.

I have Windows 7 x64 running on my computer and OMNeT++ 4.1 installed
on it (normal installation)

Now I need to install the Castalia simulator for my project at the
university.

Since there is no installation routine for windows I tried it with
cygwin. I installed cygwin and then went to the "castalia-3.0" folder.
I typed the "./makemake" command as described in the manual.

But I only get the error:
"./makemake: line 28: opp_makemake: command not found"

Now I dont know what to do and I cannot find an answer to the error.

Please, it would be very nice to get some help on this.

As I understand from reading through this group and after I googled
for any windows-related-installation questions I think there are many
people out there who would be gratefull to get some help on this topic.

Athanassios Boulis

unread,
Sep 3, 2010, 10:48:54 AM9/3/10
to castalia-...@googlegroups.com

opp_makemake is an OMNeT tool, and it cannot be found in the Cygwin enviroment. 
It seems you have installed OMNeT for Windows ( you have not built OMNET from the source code in cygwin).
If you want to install Castalia in Cygwin, you also need to install OMNeT in Cygwin (as we describe in the Installation guide). 
Basically treat Cygwin as another Linux port, and follow the commands in the Installation guide.

Zhenfei

unread,
Sep 4, 2010, 5:40:00 AM9/4/10
to Castalia Simulator
The 1st thing is u need to install the castalia and OMNet in the same
OS. Cygwin is also a virtual OS, so that's why u failed to intall the
castalia. And, I'm not sure whether the OMNet can work well in ur
64bit Windows 7. For the Castalia is not designed for working in
windows, I suggest you to install the OMNet in Cygwin and then install
the Castalia.

wechda

unread,
Sep 4, 2010, 6:19:45 AM9/4/10
to Castalia Simulator
Thank you both for your reply. Seems to me, I did not quite understand
the concept of cygwin. You are right, I installed OMNeT for windows
and not in cygwin. It works perfectly.
I thought, cygwin is only an environment to "install" the software on
Windows. If I reinstall both OMNeT and Castalia with cygwin, will I be
able to use OMNeT in my normal windows environment or will it only run
in a window-mode inside of cygwin, like a virtual machine?

Zhenfei

unread,
Sep 4, 2010, 10:44:07 AM9/4/10
to Castalia Simulator
HI,

After u installing another OMNet in Cygwin and Castalia, the
situation on your computer is like this: There are 2 OS in your
computer, one is the real one (Win7) and the other is the virtual one
(Cygwin). All the system are independence with each other. That means,
the work in your Win7's OMNet won't change anything of the OMNet in ur
Cygwin.

BTW, u only can use ur Castalia in your Cygwin sys.

Hope it will help you!

wechda

unread,
Sep 9, 2010, 12:36:59 PM9/9/10
to Castalia Simulator
Thanks for your reply. I installed cygwin with some extra packages
like gcc, etc. I unpacked the omnetpp-4.1 and followed the
installation instructions. But now I have an error for which I cannot
find a solution.

After typing "./configure" and "make" I get an error in the make
process. It says "ERROR: @OMNETPP_BIN_DIR@ is not in the path!"

The instructions tells me something about an "export" command to set
the bin directory, but I dont understand, how to do that.

Does somebody know, what to do?

Zhenfei

unread,
Sep 10, 2010, 6:45:32 AM9/10/10
to Castalia Simulator
HI

I think it is just because you export the wrong path.

Could you tell me the exact path where ur omnetpp is?

Zhenfei

wechda

unread,
Sep 12, 2010, 7:12:24 PM9/12/10
to Castalia Simulator
The exact path under windows is D:\Documents\TUHH\Hauptstudium
\Studienarbeit\Programme\OMNeT\omnetpp-4.1

Zhenfei

unread,
Sep 13, 2010, 6:40:15 AM9/13/10
to Castalia Simulator
HI Wechda,

I think the cygwin can't export the path in D or other disk, at
least I don't know how.

One way to solve it is that: there is a folder in the cygwin
folder named home, and you can copy ur omnet in it, or in the home/<ur
username> .

Then it should be all right for setting the path, I tried it before
with success.

Good Luck!

Best Regards!
Zhenfei
> > > Does somebody know, what to do?- Hide quoted text -
>
> - Show quoted text -

wechda

unread,
Sep 16, 2010, 9:29:59 PM9/16/10
to Castalia Simulator
Hi

Thank you for your help. I installed VirtualBox with Ubuntu as a Guest
System and now OMnet works after installing it in Ubuntu.

wechda

unread,
Sep 16, 2010, 10:02:54 PM9/16/10
to Castalia Simulator
Okay I was happy a bit to early because now I am back at the point
where I started.

I have OMNet 4.1 installed on my Ubuntu 10.4 system. And now I want to
install Castalia 3.0. I downloaded it, unpacked it and when I type ./
makemake it says again "./makemake: line 28: opp_makemake: command not
found"

The installation instructions from the castalia homepage says "Go to
the Castalia/config directory and edit the Castalia.config file so
that the line" and some other stuff. But there is no config folder, so
I cannot add the lines.

Athanassios Boulis

unread,
Sep 17, 2010, 1:28:52 AM9/17/10
to castalia-...@googlegroups.com
The installation instructions in the pdf document are the correct ones.
(found in the installation page and documentation page) 

The html version found in the installation page is the old manual 
(probably you've noticed that it mentions Castalia 2.3). 
I have to replace this, thank you for drawing my attention to it.

Now concerning your error: seems that OMNeT is not installed
correctly or simply the path is not set properly, i.e., the command

$ export PATH=$PATH:~/omnetpp-4.1/bin

failed
Before building Castalia look at what your PATH contains:
> echo $PATH 
is omnetpp-4.1/bin  part of the path?

If not, you have to troubleshoot your OMNeT installation procedure,
and/or the way you set the PATH variable. In  the Castalia installation
guide we provide a link to OMNeT's installation troubleshooting.


Zhenfei

unread,
Sep 17, 2010, 5:46:44 AM9/17/10
to Castalia Simulator
HI Wechda,

After following the Athanassios's suggestion, I think you'd better
make sure ur castalia/bin is in the path. Also use:
echo $PATH to see it.

Good Luck.

wechda

unread,
Sep 17, 2010, 8:08:40 AM9/17/10
to Castalia Simulator
Thanks Athanassios, exporting the path did help. I could run makemake
and make and I think I have now installed both Omnet and Castalia -
finally :-)

The problem was obviously that I did not include all the "export path"
commands in the bash file but only temporally manually directly in the
terminal. So then of course they will not be saved when restarting the
terminal. That is, because I could not find the correct bash file to
include the export path commands. But I think I have to include them,
because everytime I want to use Castalia, it have to know the paths.
Am I correct?

It would be nice if you can tell me, where to export the path command
(which bash file) and which commands are necessary.

My Omnet Path is ~/omnet/src/omnetpp-4.1 and my Castalia path is ~/
omnet/src/Castalia-3.0

Athanassios Boulis

unread,
Sep 17, 2010, 8:30:26 AM9/17/10
to castalia-...@googlegroups.com

The Installation guide instructs:

Also add the above two export commands at the end of your .bash_profile file.

if the file does not exist you just create it under your home directory.
You can also put the export commands in your .bashrc file
Search the internet for differences between these two files.
Here's a good explanation:  .bash_profile vs .bashrc
it also describes an elegant way to include the commands only in your .bashrc
but let them be executed also by your .bash_profile.
This would be the best solution.

Norberto Barroca

unread,
Nov 19, 2010, 9:58:46 AM11/19/10
to castalia-...@googlegroups.com

I used another approach

 

I Install Castalia using mingwenv in the omnetpp4 directory.

Then I create in omnetpp4 a project with the name Castalia.

And I import the file system.

 

But I got some error such:

 

Description  Resource            Path      Location              Type

declared package "" does not match expected package "castalia.src"             SensorNetwork.ned      /Castalia/src      line 1                NED Consistency Problem

 

Can you help me?






Date: Fri, 17 Sep 2010 22:30:26 +1000
Subject: Re: [Castalia] Re: Installation of Castalia 3.0 for OMNeT++ 4.1 on Windows 7 with cygwin
From: athanassi...@nicta.com.au
To: castalia-...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
To post to this group, send email to castalia-...@googlegroups.com.
To unsubscribe from this group, send email to castalia-simula...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castalia-simulator?hl=en.

Norberto Barroca

unread,
Nov 19, 2010, 10:06:26 AM11/19/10
to castalia-...@googlegroups.com
Can someone create a complete Castalia Project in Linux and send to me so I ca try to import only the project and see if it run in windows?



From: norberto...@hotmail.com
To: castalia-...@googlegroups.com
Subject: RE: [Castalia] Re: Installation of Castalia 3.0 for OMNeT++ 4.1 on Windows 7 with cygwin
Date: Fri, 19 Nov 2010 14:58:46 +0000

Athanassios Boulis

unread,
Nov 19, 2010, 2:17:06 PM11/19/10
to castalia-...@googlegroups.com
Hi Noberto,
I am not sure what you ask. In particular I am not sure what you mean by the terms "project" and "import". 
It would also help to let us know which steps of the installation guide are you taking (step by step) and where/when things don't work.

Norberto Barroca

unread,
Nov 19, 2010, 7:10:28 PM11/19/10
to castalia-...@googlegroups.com

Athanassios Boulis

unread,
Nov 19, 2010, 7:34:44 PM11/19/10
to castalia-...@googlegroups.com
Seems you are trying to install Castalia in Windows (outside cygwin or mingwenv). How else could you use a graphical environment? As we clearly say in the installation guide, Castalia is not supported for Windows or for the OMNeT IDE in any OS. If you want to use it like that, then you have to do the porting.
Reply all
Reply to author
Forward
0 new messages