demirten / twamp-dissector

Twamp protocol dissector for Wireshark
MIT License
7 stars 1 forks source link

I can't compile the dissector #1

Open seebaas opened 9 years ago

seebaas commented 9 years ago

Hello,

Maybe it's my lack of experience but I cant compile the dissector. The file config.h seems to be missing. I can't find it. I've follow your guideline line by line. Can you please help me?

Thanks!

[root@estadisticas build]# make [ 33%] Generating plugin.c Scanning dependencies of target twamp [ 66%] Building C object CMakeFiles/twamp.dir/plugin.c.o [100%] Building C object CMakeFiles/twamp.dir/packet-twamp.c.o /home/wireshark/build/packet-twamp.c:8:20: error fatal: config.h: No existe el fichero o el directorio

include

                ^

compilación terminada. make[2]: * [CMakeFiles/twamp.dir/packet-twamp.c.o] Error 1 make[1]: * [CMakeFiles/twamp.dir/all] Error 2 make: *\ [all] Error 2

demirten commented 9 years ago

Did you install wireshark development package? It is also needed to define wireshark include dir, which is documented on README.md like below:

cmake -DWIRESHARK_INCLUDE_DIRS=/usr/include/wireshark ..
seebaas commented 9 years ago

Hello,

Thanks for your fast answer. I've installed the packages wireshark-dev libglib2.0-dev cmake Sorry my linux has spanish as default language. root@sebastian-Peppy:/home/sebastian/twamp-dissector# apt-get install wireshark-dev libglib2.0-dev cmake Leyendo lista de paquetes... Hecho Creando árbol de dependencias
Leyendo la información de estado... Hecho cmake is already the newest version. wireshark-dev is already the newest version. libglib2.0-dev is already the newest version.

then I've cloned the github repositories from wireshark web site using git clone https://code.wireshark.org/review/wireshark

then I've cloned your github repositories using git clone https://github.com/demirten/twamp-dissector.git

next I've run the cmake -DWIRESHARK_INCLUDE_DIRS="path to the wireshark source code"

finaly when I tried to run make the message is shown telling me that config.h is missing. So I listed the files in wireshark source code directory to check if it's there but i just can see the config.h.win32 file:

ot@sebastian-Peppy:/home/sebastian/wireshark# ls abi-descriptor.template help acinclude.m4 idl aclocal-fallback image aclocal-flags INSTALL adns_dll.dep INSTALL.configure adns_dll.rc ipmap.html asn1 log.h AUTHORS macosx-setup.sh autogen.sh macosx-support-lib-patches capchild Makefile.am capinfos.c Makefile.am.inc capture_info.c Makefile.common capture_info.h Makefile.nmake capture_opts.c Makefile.nmake.inc capture_opts.h make-version.pl capture_stop_conditions.c manuf capture_stop_conditions.h manuf.tmpl captype.c mergecap.c caputils mkcap.c cfile.c NEWS cfile.h packaging cfilters pcapio.c ChangeLog pcapio.h cmake pdml2html.xsl cmakeconfig.h.in plugins CMakeListsCustom.txt.example profiles CMakeLists.txt radius CMakeOptions.txt randpkt.c codecs rawshark.c colorfilters README color_filters.c README.aix color_filters.h README.bsd color.h README.cmake conditions.c README.DECT conditions.h README.hpux config.guess README.linux config.h.win32 README.macos config.nmake README.tru64 config.sub README.vmware configure.ac README.windows ConfigureChecks.cmake register.h COPYING reordercap.c CPackConfig.txt ringbuffer.c debian ringbuffer.h dfilter_macros services dfilters smi_modules dftest.c summary.c diameter summary.h doc sync_pipe.h docbook sync_pipe_write.c doxygen.cfg.in test doxygen_global.cfg text2pcap.c dtds text2pcap.h dumpcap.c text2pcap-scanner.l echld tfshark.c echld_test.c tools editcap.c tpncp epan trigcap.c extcap tshark.c extcap.c ui extcap.h wimaxasncp extcap_parser.c wireshark.appdata.xml extcap_parser.h wireshark.desktop file.c wireshark.dox file.h wireshark-mime-package.xml fileset.c wireshark.pc.in fileset.h wireshark-qt.cpp fix wiretap frame_tvbuff.c wka.tmpl frame_tvbuff.h ws_symbol_export.h globals.h wsutil

Did you used wireshark svn or git repositories?

Thanks for your time :)

demirten commented 9 years ago

You don't need the clone wireshark code.

After installing wireshark-dev package you will find config.h as /usr/include/wireshark/config.h

seebaas commented 9 years ago

Nice one :) I've misunderstood your guideline. Now I have his error. I've listed the sources acording your suggestion and that directory is missing

Do you know if that is something normal?

root@sebastian-Peppy:/home/sebastian/twamp-dissector# make Scanning dependencies of target twamp [ 33%] Building C object CMakeFiles/twamp.dir/plugin.c.o [ 66%] Building C object CMakeFiles/twamp.dir/packet-twamp.c.o /home/sebastian/twamp-dissector/packet-twamp.c:40:28: fatal error: epan/wmem/wmem.h: No such file or directory

include <epan/wmem/wmem.h>

                        ^

compilation terminated. make[2]: * [CMakeFiles/twamp.dir/packet-twamp.c.o] Error 1 make[1]: * [CMakeFiles/twamp.dir/all] Error 2 make: *\ [all] Error 2

I'm going to double check all the procedure to avoid previous mistakes.

thanks again :)

demirten commented 9 years ago

Please try copy&paste the commands from README document.

You need to create an empty directory (mkdir build), change into that directory and run cmake command.

bharath999 commented 6 years ago

Hi demirten,

Where exactly this build directory need to created.

I am getting an while doing this step

cmake -DWIRESHARK_INCLUDE_DIRS=/usr/include/wireshark ..

sysadmin@sysadmin-HP-ProBook-4430s:~/build$ cmake -DWIRESHARK_INCLUDE_DIRS=/usr/include/wireshark CMake Error: The source directory "/home/sysadmin/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. sysadmin@sysadmin-HP-ProBook-4430s:~/build$