Problems with INET building!!!!

242 views
Skip to first unread message

Predrag Kovac

unread,
Jul 15, 2010, 9:26:31 AM7/15/10
to omn...@googlegroups.com
Hello,

I've just began to use OMNET++ with INET framework and I have some problems when building INET . Since I work under Windows, I have found out from installation instructions (from inet file INSTALL) that I have to install winpcap driver (and follow other instructions from INSTALL file).


According to installation instruction (from INSTALL and README inet files) I have done next steps:

   * install winpcap driver
   * re-run the omnetpp configuration script (./configure)
   * enable the pcap support by editing the src/makefrag     * import the project using: File | Import | General | Existing
     projects into Workspace.

   * build the project by pressing CTRL-B (Project | Build all)

After those steps the building was not successful:
../out/gcc-debug/src/
transport/udp/UDPPacket_m.o   -lpcap -L"c:/OMNeT++/omnetpp-4.1-src-windows/omnetpp-4.1/lib/gcc" -L"c:/OMNeT++/omnetpp-4.1-src-windows/omnetpp-4.1/lib" -loppenvird -loppsimd -lwsock32 -lstdc++  -enable-auto-import -shared-libgcc -L/usr/bin -L/usr/lib -Wl,-rpath,c:/OMNeT++/omnetpp-4.1-src-windows/omnetpp-4.1/lib -Wl,-rpath,. && g++ -shared  -o ../out/gcc-debug/src/libinet.dll @.tmp$$ && rm .tmp$$
c:/omnet++/omnetpp-4.1-src-windows/omnetpp-4.1/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lpcap
collect2: ld returned 1 exit status
make[1]: *** [../out/gcc-debug/src/libinet.dll] Error 1
make[1]: Leaving directory `/c/OMNeT++/workspace/inet/src'
make: *** [all] Error 2

Can you explain me how to fix that?

Thanks,
Best Regards,
Predrag Kovac

LIN Peng

unread,
Jul 15, 2010, 9:42:25 PM7/15/10
to omn...@googlegroups.com
you may try to add the include path of wincap in the inet project
property (check yourself wether it exists).
The error message shows you cannot link with wincap, maybe it doesn't
inlcude the wincap at all.


2010/7/15 Predrag Kovac <predra...@gmail.com>:

> --
> 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.
> For more options, visit this group at
> http://groups.google.com/group/omnetpp?hl=en.
>

Predrag Kovac

unread,
Jul 16, 2010, 2:09:25 PM7/16/10
to omn...@googlegroups.com
I've added C:\ProgramFiles\WinPcap as include PATH and there was the same situation.
Have you another suggestion?

2010/7/16 LIN Peng <stli...@gmail.com>

LIN Peng

unread,
Jul 16, 2010, 9:55:12 PM7/16/10
to omn...@googlegroups.com
Have you done clean before you build the project again?

Predrag Kovac

unread,
Jul 17, 2010, 3:27:49 AM7/17/10
to omn...@googlegroups.com
Yes, I've done.

2010/7/17 LIN Peng <stli...@gmail.com>
Have you done clean before you build the project again?

--
Reply all
Reply to author
Forward
0 new messages