[FUG-BR] Problemas_de_compilação
Carlos Eduardo G. Carvalho
cartola em openit.com.br
Quarta Agosto 30 18:24:11 BRT 2006
Oi Marcus, tentei usar as opções resultantes desses comandos para
definir as variáveis, mas continuo com o mesmo problema. Eu já tinha
definido a CPPFLAGS="-I/usr/X11R6/include/gimp-2.0
-I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/include/pango-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/include/cairo
-I/usr/local/include/atk-1.0" para que fossem encontrados vários
includes. Não tinha ainda definido a LDCONFIG, mas experimentei várias
opções tentando até usar gtk-1 e gtk-2 mas não consegui uma combinação
que resolvesse. Creio que o aplicativo usa gtk20, pois um include
solicitado só tem no 2.0. Não encontrei meio de contatos com os
desenvolvedores no site, então continuo futucando...
Obrigado, Abraços,
--
Carlos E. G. Carvalho OpenIT Solucoes Tecnologicas
Consultor Unix/Internet Tel. +55 21 2517-6000
http://www.OpenIT.com.br
http://www.MyFreeBSD.com.br
Em Ter, 2006-08-29 às 21:26 -0300, Marcus Alves Grando escreveu:
> Carlos E. G. Carvalho wrote:
> > Pessoal,
> >
> > estou tentando atualizar o port libpano12, pré-requisito para atualizar
> > outro port, o hugin, ambos ferramentas para montar imagens panorâmicas.
> >
> > Passei por alguns percalços que ajustei, mas empaquei num ponto em que
> > não consegui mais rastrear o erro. Abaixo a saída obtida na compilação.
> > Originalmente esta linha do gcc não continha o "-L../.libs" e dava outro
> > erro, não encontrando a libpano12.so, então compilei adicionando este -L
> > e entrou nessa função "_start" com "undefined reference to `main'".
> > Alguma dica ó gurus do C?
> >
>
> Deve estar faltando flags de compilação para achar a lib GTK.
>
> Passando pro CFLAGS=`gtk-config --cflags` e para o LDCONFIG=`gtk-config
> --libs` deve funcionar.
>
> Abraços
>
> > -----------------------
> > gcc -g -O2 -L.. -L../.libs -o panoinfo -lpano12
> > /usr/lib/crt1.o(.text+0x72): In function `_start':
> > : undefined reference to `main'
> > ../.libs/libpano12.so: undefined reference to `makePathToHost'
> > ../.libs/libpano12.so: undefined reference to `gtk_widget_grab_default'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_toggle_button_get_type'
> > ../.libs/libpano12.so: undefined reference to `readPrefs'
> > ../.libs/libpano12.so: undefined reference to `gtk_entry_set_text'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_radio_button_get_type'
> > ../.libs/libpano12.so: undefined reference to `gtk_object_get_type'
> > ../.libs/libpano12.so: undefined reference to `mymalloc'
> > ../.libs/libpano12.so: undefined reference to `ptools_isOK'
> > ../.libs/libpano12.so: undefined reference to `pt_set_size_source'
> > ../.libs/libpano12.so: undefined reference to `gtk_widget_show'
> > ../.libs/libpano12.so: undefined reference to `gtk_rc_parse'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_toggle_button_set_active'
> > ../.libs/libpano12.so: undefined reference to `SaveFileAs'
> > ../.libs/libpano12.so: undefined reference to `ptool_save_callback'
> > ../.libs/libpano12.so: undefined reference to `gtk_hbox_new'
> > ../.libs/libpano12.so: undefined reference to `pt_widget_destroy'
> > ../.libs/libpano12.so: undefined reference to `gtk_signal_connect_full'
> > ../.libs/libpano12.so: undefined reference to `readImage'
> > ../.libs/libpano12.so: undefined reference to `gimp_gtkrc'
> > ../.libs/libpano12.so: undefined reference to `makeTempPath'
> > ../.libs/libpano12.so: undefined reference to `gtk_frame_new'
> > ../.libs/libpano12.so: undefined reference to `gtk_dialog_new'
> > ../.libs/libpano12.so: undefined reference to `gtk_table_attach'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_radio_button_new_with_label'
> > ../.libs/libpano12.so: undefined reference to `infoDlgIntern'
> > ../.libs/libpano12.so: undefined reference to `gtk_container_add'
> > ../.libs/libpano12.so: undefined reference to `gtk_table_get_type'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_check_button_new_with_label'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_frame_set_shadow_type'
> > ../.libs/libpano12.so: undefined reference to `FindFile'
> > ../.libs/libpano12.so: undefined reference to `myfree'
> > ../.libs/libpano12.so: undefined reference to `gtk_window_set_position'
> > ../.libs/libpano12.so: undefined reference to `gdk_flush'
> > ../.libs/libpano12.so: undefined reference to `GetFullPath'
> > ../.libs/libpano12.so: undefined reference to `gtk_box_get_type'
> > ../.libs/libpano12.so: undefined reference to `gtk_label_new'
> > ../.libs/libpano12.so: undefined reference to `gtk_box_pack_end'
> > ../.libs/libpano12.so: undefined reference to `gtk_window_get_type'
> > ../.libs/libpano12.so: undefined reference to `PrintErrorIntern'
> > ../.libs/libpano12.so: undefined reference to `gtk_dialog_get_type'
> > ../.libs/libpano12.so: undefined reference to `gtk_label_get_type'
> > ../.libs/libpano12.so: undefined reference to `gtk_frame_get_type'
> > ../.libs/libpano12.so: undefined reference to `pt_find_file'
> > ../.libs/libpano12.so: undefined reference to `gtk_window_set_title'
> > ../.libs/libpano12.so: undefined reference to `gtk_entry_get_text'
> > ../.libs/libpano12.so: undefined reference to `gtk_box_pack_start'
> > ../.libs/libpano12.so: undefined reference to `ptool_load_callback'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_container_set_border_width'
> > ../.libs/libpano12.so: undefined reference to `gtk_init'
> > ../.libs/libpano12.so: undefined reference to `pt_main_destroy'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_radio_button_get_group'
> > ../.libs/libpano12.so: undefined reference to `g_malloc'
> > ../.libs/libpano12.so: undefined reference to `showScript'
> > ../.libs/libpano12.so: undefined reference to `gtk_main_quit'
> > ../.libs/libpano12.so: undefined reference to `MakeTempName'
> > ../.libs/libpano12.so: undefined reference to `gtk_entry_get_type'
> > ../.libs/libpano12.so: undefined reference to `gtk_main'
> > ../.libs/libpano12.so: undefined reference to `writePrefs'
> > ../.libs/libpano12.so: undefined reference to `gtk_label_set_text'
> > ../.libs/libpano12.so: undefined reference to `ProgressIntern'
> > ../.libs/libpano12.so: undefined reference to `g_strdup'
> > ../.libs/libpano12.so: undefined reference to `gtk_widget_destroy'
> > ../.libs/libpano12.so: undefined reference to `gtk_table_new'
> > ../.libs/libpano12.so: undefined reference to
> > `g_type_check_instance_cast'
> > ../.libs/libpano12.so: undefined reference to `gtk_entry_new'
> > ../.libs/libpano12.so: undefined reference to `gtk_container_get_type'
> > ../.libs/libpano12.so: undefined reference to
> > `gtk_button_new_with_label'
> > ../.libs/libpano12.so: undefined reference to `gtk_widget_set_usize'
> > ../.libs/libpano12.so: undefined reference to `makePathForResult'
> > ../.libs/libpano12.so: undefined reference to `gtk_vbox_new'
> >
> > Abraços,
> >
>
Mais detalhes sobre a lista de discussão freebsd