Hi Ayaz/Renuka,
I have installed Omnet++ in Windows XP 64 bit
edition.Installation was fine.I tried going through the Omnet++
tutorial and was working out the "tictoc" tutorial.I noticed a problem
here written as below.
In the "tictoc" directory I created the tictoc.ned and
txc1.cc.As
suggested when I try to run "opp_makemake" , I could not.This I found
was because neither make or nmake supports a 64bit Windows.So i found
a dmake utility that could be used for a 64 bit machine.And it did
create a Makefile.
But when I run dmake on this Makefile , now it says -
C:\tictoc>dmake
dmake: makefile: line 28: Warning: -- Macro `O' redefined after use
dmake: makefile: line 51: Error: -- Expecting macro or rule defn,
found neither
I do not understand what is wrong with the Makefile here.
--------------------------------------------------------------------------------------------------------------------------
#
# OMNeT++/OMNEST Makefile for tictoc
#
# This file was generated with the command:
# opp_makemake -f
#
# Name of target to be created (-o option)
TARGET = tictoc$(EXE_SUFFIX)
# User interface (uncomment one) (-u option)
USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(CMDENV_LIBS)
#USERIF_LIBS = $(CMDENV_LIBS)
#USERIF_LIBS = $(TKENV_LIBS)
# C++ include paths (with -I)
INCLUDE_PATH = -I.
# Additional object and library files to link with
EXTRA_OBJS =
# Additional libraries (-L, -l options)
LIBS =
# Output directory
PROJECT_OUTPUT_DIR = out
PROJECTRELATIVE_PATH =
O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH)
# Object files for local .cc and .msg files
OBJS = $O/txc1.o
# Message files
MSGFILES =
#------------------------------------------------------------------------------
# Pull in OMNeT++ configuration (Makefile.inc or
configuser.vc)
ifneq ("$(OMNETPP_CONFIGFILE)","")
CONFIGFILE = $(OMNETPP_CONFIGFILE)
else
ifneq ("$(OMNETPP_ROOT)","")
CONFIGFILE = $(OMNETPP_ROOT)/Makefile.inc
else
CONFIGFILE = $(shell opp_configfilepath)
endif
endif
ifeq ("$(wildcard $(CONFIGFILE))","")
$(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++
bin directory to the path so that opp_configfilepath can be found, or
set the OMNETPP_CONFIGFILE variable to point to Makefile.inc)
endif
include $(CONFIGFILE)
# Simulation kernel and user interface libraries
OMNETPP_LIB_SUBDIR = $(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME)
OMNETPP_LIBS = -L"$(OMNETPP_LIB_SUBDIR)" -L"$(OMNETPP_LIB_DIR)" $
(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)
COPTS = $(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)
MSGCOPTS = $(INCLUDE_PATH)
#------------------------------------------------------------------------------
# User-supplied makefile fragment(s)
# >>>
# <<<
#------------------------------------------------------------------------------
# Main target
all: $(TARGET)
$(TARGET) : $O/$(TARGET)
$(LN) $O/$(TARGET) .
$O/$(TARGET): $(OBJS) $(wildcard $(EXTRA_OBJS)) Makefile
@$(MKPATH) $O
$(CXX) $(LDFLAGS) -o $O/$(TARGET) $(OBJS) $(EXTRA_OBJS) $
(WHOLE_ARCHIVE_ON) $(LIBS) $(WHOLE_ARCHIVE_OFF) $(OMNETPP_LIBS)
.PHONY:
.SUFFIXES: .cc
$O/%.o: %.cc
@$(MKPATH) $(dir $@)
$(CXX) -c $(COPTS) -o $@ $<
%_m.cc %_m.h: %.msg
$(MSGC) -s _m.cc $(MSGCOPTS) $?
msgheaders: $(MSGFILES:.msg=_m.h)
clean:
-rm -rf $O
-rm -f tictoc tictoc.exe libtictoc.so libtictoc.a libtictoc.dll
libtictoc.dylib
-rm -f ./*_m.cc ./*_m.h
cleanall: clean
-rm -rf $(PROJECT_OUTPUT_DIR)
depend:
$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $
(MSG_CC_FILES) ./*.cc
# DO NOT DELETE THIS LINE -- make depend depends on it.
------------------------------------------------------------------------------------------------------------------------
In case you work on Windows 32 or 64 bit, sometime or the other you
would use a Makefile for compilations.
In that case this problem will come up.If any of you have encountered
a similar case, would you share how you have solved this.
Thanks for the help!
Regards,
Shameek Ghosh.
On Sep 27, 12:24 am, ayaz khan afridi <
enggnust...@gmail.com> wrote:
> yes it is...but i didnt use it...coz m using mixim......On Mon, Sep 27, 2010 at 8:58 AM, Renuka Arya <
renuka.a...@gmail.com> wrote:
> > Hi Ayaz
> > I downloaded MIXIM and trying to get familiar with it..
> > I found somewhere that there is a framework INETMANET specifically dealing
> > with routing protocols in MANET..
> > U have ever used it?
> > I'm having problem in importing it itself
>
> > thanks
> > Renuka
>
> > On Sun, Sep 26, 2010 at 11:28 PM, ayaz khan afridi <
enggnust...@gmail.com>wrote:
>
> >> hi,
> >> np u welcome...
>
> >> On Mon, Sep 27, 2010 at 2:02 AM, Renuka Arya <
renuka.a...@gmail.com>wrote:
>
> >>> Hi Ayaz
>
> >>> Thanks a lot for the info.I'll try downloading and using it.
>
> >>> On Sun, Sep 26, 2010 at 4:01 AM, ayaz khan afridi <
enggnust...@gmail.com
> >>> > wrote:
>
> >>>> hi,
> >>>> thats goood...same was the case with me when i was initially installing
> >>>> mobilitframework(for wireless and mobile communication) still i m getting
> >>>> errors...but it works anyhow..:)....nd one more thing...u will need
> >>>> MIXIM(also for wireless and mobile communication) for ur project ...because
> >>>> mobility framework not getting updated since 2007 so u will need MIXIM
> >>>> framework there are some basic examples which could be modified for ADHOC
> >>>> networks...and its very easy just download it and import it ur project
> >>>> space...hop this will make ur work easier...:)
>
> >>>> On Sun, Sep 26, 2010 at 9:10 AM, Renuka Arya <
renuka.a...@gmail.com>wrote:
>
> >>>>> Finally I got a solution to install Omnet++ on Windows 7 , 64 bit
> >>>>> machine.Actually the trick is installing java for 64 bit machine. The
> >>>>> procedure goes as follows:
> >>>>> 1) Go tohttp://
java.sun.com/javase/downloads/index.jsp--> click on
> >>>>> java download( The first square box) --> click download -->Select Platform
> >>>>> as " *Windows*"( u need to register for continuing) -- > click
> >>>>> Continue --> download *jdk-6u21-windows-i586.exe*<
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Si...> (
> >>>>> or the latest jdk).
> >>>>> *Note: *install this file in C:\*Program files(X86*) --> java
> >>>>> 2) Go tohttp://
java.sun.com/javase/downloads/index.jsp--> click on
> >>>>> java download( The first square box) --> click download -->Select Platform
> >>>>> as " *Window X64*"( u need to register for continuing) -- > click
> >>>>> Continue --> download *jdk-6u21-windows-x64.exe*<
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Si...>(
> >>>>> or the latest jdk).*Note:* install this file in C:\*Program files-*
> >>>>> ->java
> >>>>> 3)Restart your computer
> >>>>> 4) Next You can install the OMNET++ as the instruction given at the
> >>>>> website.
> >>>>> 5) It is possible that you might get some Java run time error when
> >>>>> start running OMNET++ by giving command $omnetpp. In that case u create
> >>>>> empty folders in sequence Omnetpp-4-1 --> ide -->*jre --> bin* and in
> >>>>>>> On Sun, Sep 26, 2010 at 3:27 AM, Renuka Arya <
renuka.a...@gmail.com>wrote:
>
> >>>>>>>> :)....Srsly this 64 bit machine is a pain..
>
> >>>>>>>> One more thing is there ...when I do Verifying the Installation
> >>>>>>>> using $ cd samples/dyna
>
> >>>>>>>> $ ./dyna It works fine
>
> >>>>>>>> On Sat, Sep 25, 2010 at 6:25 PM, ayaz khan afridi <
> >>>>>>>>
enggnust...@gmail.com> wrote:
>
> >>>>>>>>> i think u shud switch to 32bit :)
>
> >>>>>>>>> On Sun, Sep 26, 2010 at 3:22 AM, Renuka Arya <
> >>>>>>>>>
renuka.a...@gmail.com> wrote:
>
> >>>>>>>>>> That means there is no way of using OMNET++ on 64-bit machine..
>
> >>>>>>>>>> Trying so hard since morning...no success
>
> >>>>>>>>>> Renuka
>
> >>>>>>>>>> On Sat, Sep 25, 2010 at 6:18 PM, ayaz khan afridi <
> >>>>>>>>>>
enggnust...@gmail.com> wrote:
>
> >>>>>>>>>>> ya i guess..because i have 32bit win7....and its working fine....
>
> >>>>>>>>>>> On Sun, Sep 26, 2010 at 3:14 AM, Renuka Arya <
> >>>>>>>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>>>>>>> .
> >>>>>>>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>>>>>>> --
> >>>>>>>>>>>>>>> You received this message because you are subscribed to the
> >>>>>>>>>>>>>>> Google Groups "omnetpp" group.
> >>>>>>>>>>>>>>> To post to this group, send email to
> >>>>>>>>>>>>>>>
omn...@googlegroups.com.
> >>>>>>>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>>>>>> .
> >>>>>>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>>>>>> --
> >>>>>>>>>>>>>> You received this message because you are subscribed to the
> >>>>>>>>>>>>>> Google Groups "omnetpp" group.
> >>>>>>>>>>>>>> To post to this group, send email to
omn...@googlegroups.com
> >>>>>>>>>>>>>> .
> >>>>>>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>>>>> .
> >>>>>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>>>>> --
> >>>>>>>>>>>>> You received this message because you are subscribed to the
> >>>>>>>>>>>>> Google Groups "omnetpp" group.
> >>>>>>>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>>>> .
> >>>>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> You received this message because you are subscribed to the
> >>>>>>>>>>>> Google Groups "omnetpp" group.
> >>>>>>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>>> .
> >>>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>>> --
> >>>>>>>>>>> You received this message because you are subscribed to the
> >>>>>>>>>>> Google Groups "omnetpp" group.
> >>>>>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>>> .
> >>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>>> --
> >>>>>>>>>> You received this message because you are subscribed to the Google
> >>>>>>>>>> Groups "omnetpp" group.
> >>>>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>>> .
> >>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>>> --
> >>>>>>>>> You received this message because you are subscribed to the Google
> >>>>>>>>> Groups "omnetpp" group.
> >>>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>>> .
> >>>>>>>>> For more options, visit this group at
> >>>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>>>> --
> >>>>>>>> You received this message because you are subscribed to the Google
> >>>>>>>> Groups "omnetpp" group.
> >>>>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>>>> .
> >>>>>>>> For more options, visit this group at
> >>>>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>>> --
> >>>>>> You received this message because you are subscribed to the Google
> >>>>>> Groups "omnetpp" group.
> >>>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>>> To unsubscribe from this group, send email to
> >>>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>>> .
> >>>>>> For more options, visit this group at
> >>>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "omnetpp" group.
> >>>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to
> >>>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>
http://groups.google.com/group/omnetpp?hl=en.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "omnetpp" group.
> >>>> To post to this group, send email to
omn...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>>> .
> >>>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >>> .
> >>
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> >> .
> >
omnetpp+u...@googlegroups.com<
omnetpp%2Bunsu...@googlegroups.com>
> > .