After run make, the make command output is ( in 'openflow/utilities/wireshark_dissectors/openflow' directory):
In file included from /usr/include/glib-2.0/glib/galloca.h:34:0, from /usr/include/glib-2.0/glib.h:32, from packet-openflow.c:19: /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: File or directory ot found compilation terminated. make: ** [packet-openflow.o] Erro 1
Solution:
openflow at ubuntu:~$ find /usr -name glibconfig.h /usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h On Ubuntu, adding `pkg-config --cflags glib-2.0` (note backquotes),
or the output of said command, to CFLAGS, should fix it. Otherwise, just make sure you pass in the correct include directory.
i.e.
-I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
add above 2 lines in Makefile (openflow/utilities/wireshark_dissectors/openflow), under CFLAGS
No comments:
Post a Comment