erro fatal: glib.h: Não existe tal arquivo ou diretório "apesar de eu ter o libglib2.0-dev instalado

0

Eu mudei recentemente do openSuse para o Ubuntu, e estou tendo problemas para compilar um projeto meu ( link ) que funcionou perfeitamente no openSuse.

Em execução, recebo o seguinte:

laleksic@Lenovo-G560:~/Fakultet/URMulator$ make
gcc -g -w -std=c99 \
 'pkg-config --cflags --libs glib-2.0 libgvc gtk+-2.0 gtksourceview-2.0 goocanvas' \
 -IHeaders \
 -o Executable/urm \
  Sources/Main.c Sources/Register.c Sources/Instruction.c Sources/URM.c Sources/Graph.c Sources/GUI.c
Package goocanvas was not found in the pkg-config search path.
Perhaps you should add the directory containing 'goocanvas.pc' to the PKG_CONFIG_PATH environment variable
No package 'goocanvas' found
In file included from Sources/Main.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
In file included from Sources/Register.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
In file included from Sources/Instruction.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
In file included from Sources/URM.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
In file included from Sources/Graph.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
In file included from Sources/GUI.c:10:0:
Headers/Main.h:24:22: fatal error: glib.h: No such file or directory
compilation terminated.
Makefile:22: recipe for target 'Urmulator' failed
make: *** [Urmulator] Error 1

Eu tenho o libglib2.0-dev instalado, e o glib-2.0.pc está no lugar certo, então eu não entendo qual é o problema, e gostaria de receber ajuda. Obrigado.

Editar: Seguiu o conselho de fkraiem, agora recebendo um novo conjunto de erros. Eu tinha instalado o libgoocanvas-2.0 em vez do libgoocanvas. Isso corrige um pouco sobre os goocanvas, embora eu ainda tenha muitos erros. Uma lista muito longa para postar, apesar de tudo se resumir ao fato de que o compilador não reconhece nenhuma função gtk, glib ou goocanvas ...

gcc -g -w -std=c99 \
 'pkg-config --cflags --libs glib-2.0 libgvc gtk+-2.0 gtksourceview-2.0 goocanvas' \
 -IHeaders \
 -o Executable/urm \
 Sources/Main.c Sources/Register.c Sources/Instruction.c Sources/URM.c Sources/Graph.c Sources/GUI.c
/tmp/ccG4zuCY.o: In function 'RegisterListCreate':
/home/laleksic/Fakultet/URMulator/Sources/Register.c:15: undefined reference to 'g_list_append'
/tmp/ccG4zuCY.o: In function 'RegisterListDestroy':
/home/laleksic/Fakultet/URMulator/Sources/Register.c:65: undefined reference to 'g_list_free'
/tmp/ccG4zuCY.o: In function 'RegisterCreateAndAppend':
/home/laleksic/Fakultet/URMulator/Sources/Register.c:80: undefined reference to 'g_type_check_instance_cast'
...
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:353: undefined reference to 'gtk_box_pack_end'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:355: undefined reference to 'gtk_widget_show'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:356: undefined reference to 'gtk_widget_show'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:357: undefined reference to 'gtk_widget_show'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:359: undefined reference to 'gtk_widget_show'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:360: undefined reference to 'gtk_widget_show'
/home/laleksic/Fakultet/URMulator/Sources/GUI.c:366: undefined reference to 'gtk_main'
collect2: error: ld returned 1 exit status
Makefile:22: recipe for target 'Urmulator' failed
make: *** [Urmulator] Error 1
    
por Luka Aleksić 13.10.2016 / 20:22

0 respostas