Clipper On Line • Ver Tópico - Minigui no Linux - Problema GTK

Minigui no Linux - Problema GTK

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

 

Minigui no Linux - Problema GTK

Mensagempor xTotal » 22 Fev 2007 08:15

Olá, bom dias amigos,

Li o tópico sobre a minigui no Linux, então baixei, só que não consigo compilar.
quando utilizo o compile.sh que está na pasta samples do projeto, dá os seguintes erros:

- O arquivo test.prg compila beleza;
- O arquivo hmghigh.prg que está na pasta source do projeto dá o seguinte erro em diversas linhas: ../source/hmghigh.prg(54) Warning W0001 Ambiguous reference: 'HMG_SYSDATA'
depois neste mesmo arquivo vem esses dois erros no meio, os únicos diferentes:
../source/hmghigh.prg(306) Warning W0003 Variable: 'HANDLE' declared but not used in function:'HMG_ACTIVATEWINDOW(292)'
../source/hmghigh.prg(330) Warning W0003 Variable: 'I' declared but not used in function: 'HMG_RELEASEWINDOW(308)'

- Depois que gera o arquivo .c do hmghigh.prg, vem a sequencia de erros que vou citar abaixo:

Total memory allocated: 74708 bytes (600 blocks)
WARNING! Memory allocated but not released: 4 bytes (1 blocks)
harbour.c:692: HB_TR_ERROR Block 1 0x80ba188 (size 4) "\00\00\00\00"
../source/hmglow.c: In function `HB_FUN_GTK_SHOWWIDGET':
../source/hmglow.c:57: warning: passing arg 1 of `gtk_widget_show' makes pointer from integer without a cast
../source/hmglow.c: In function `HB_FUN_GTK_SETWIDGETSIZE':
../source/hmglow.c:62: warning: passing arg 1 of `gtk_widget_set_size_request' makes pointer from integer without a cast
../source/hmglow.c: In function `button_clicked':
../source/hmglow.c:88: warning: passing arg 1 of `hb_vmPushLong' makes integer from pointer without a cast
../source/hmglow.c:95: warning: `return' with a value, in function returning void
../source/hmglow.c: In function `destroy':
../source/hmglow.c:116: warning: passing arg 1 of `hb_vmPushLong' makes integer from pointer without a cast
../source/hmglow.c:126: warning: `return' with a value, in function returning void
../source/hmglow.c: In function `HB_FUN_GTK_WINDOW_SET_MODAL':
../source/hmglow.c:139: warning: passing arg 1 of `gtk_window_set_modal' makes pointer from integer without a cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINEWINDOW':
../source/hmglow.c:164: warning: passing arg 1 of `hb_stornl' makes integer from pointer without a cast
../source/hmglow.c:165: warning: passing arg 1 of `hb_storni' makes integer from pointer without a cast
../source/hmglow.c: In function `HB_FUN_GTK_SETWINDOWTITLE':
../source/hmglow.c:182: warning: passing arg 1 of `gtk_window_set_title' makes pointer from integer without a cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINEBUTTON':
../source/hmglow.c:217: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:218: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:231: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINELABEL':
../source/hmglow.c:244: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:245: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:255: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINETEXTBOX':
../source/hmglow.c:268: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:269: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:272: warning: passing arg 1 of `gtk_entry_set_text' from incompatible pointer type
../source/hmglow.c:280: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINESPINNER':
../source/hmglow.c:293: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:294: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:298: warning: passing arg 1 of `gtk_spin_button_set_value' from incompatiblepointer type
../source/hmglow.c:306: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINEMONTHCALENDAR':
../source/hmglow.c:319: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:320: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:330: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINECHECKBOX':
../source/hmglow.c:343: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:344: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:354: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINEEDITBOX':
../source/hmglow.c:369: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:370: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:382: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_DEFINEGRID':
../source/hmglow.c:397: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:398: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:404: warning: passing arg 1 of `gtk_clist_set_column_title' from incompatible pointer type
../source/hmglow.c:409: warning: passing arg 1 of `gtk_clist_set_column_width' from incompatible pointer type
../source/hmglow.c:413: warning: passing arg 1 of `gtk_clist_column_titles_show' from incompatible pointer type
../source/hmglow.c:421: warning: passing arg 1 of `hb_retnl' makes integer from pointer withouta cast
../source/hmglow.c: In function `HB_FUN_GTK_GRID_APPEND':
../source/hmglow.c:431: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:433: warning: passing arg 1 of `gtk_clist_append' from incompatible pointer type
../source/hmglow.c: In function `HB_FUN_GTK_GRID_SETCELL':
../source/hmglow.c:444: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:448: warning: passing arg 1 of `gtk_clist_set_text' from incompatible pointer type
../source/hmglow.c: In function `HB_FUN_GTK_GRID_GETCELL':
../source/hmglow.c:460: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:464: warning: passing arg 1 of `gtk_clist_get_text' from incompatible pointer type
../source/hmglow.c: In function `HB_FUN_GTK_GRID_SETVALUE':
../source/hmglow.c:477: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:481: warning: passing arg 1 of `gtk_clist_select_row' from incompatible pointer type
../source/hmglow.c: In function `HB_FUN_GTK_ENTRY_GET_TEXT':
../source/hmglow.c:495: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:497: warning: assignment discards qualifiers from pointer target type
../source/hmglow.c: In function `HB_FUN_GTK_ENTRY_SET_TEXT':
../source/hmglow.c:509: warning: assignment makes pointer from integer without a cast
../source/hmglow.c: In function `HB_FUN_GTK_SPIN_BUTTON_GET_VALUE':
../source/hmglow.c:520: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:522: warning: passing arg 1 of `gtk_spin_button_get_value' from incompatiblepointer type
../source/hmglow.c: In function `HB_FUN_GTK_SPIN_BUTTON_SET_VALUE':
../source/hmglow.c:532: warning: assignment makes pointer from integer without a cast
../source/hmglow.c:534: warning: passing arg 1 of `gtk_spin_button_set_value' from incompatiblepointer type
../source/hmglow.c:540:69: warning: no newline at end of file
/usr/bin/ld: cannot find -lfontconfig
collect2: ld returned 1 exit status


Bem amigos, eu utilizo o Conectiva 10 e quanto ao gtk, eu pensei que poderia ser alguma coisa relativa a versao do gtk instalada, então dei um rpm -qa | grep gtk e então foi retornado para mim o seguinte:
gtk+-1.2.10-61801cl
gtklp-0.9s-62938cl
libgtkxmhtml-devel-1.4.2-62411cl
gtk-engines-0.12-50595cl
libgtkhtml30-i18n-pt_BR-3.2.5-52911U10_2cl
gtk+2-devel-2.4.1-60034U10_2cl
python-wxgtk2-2.4.2.4-57959cl
gtkhtml30-devel-3.2.5-52911U10_2cl
libwxgtk2-gl-2.4.2-56474U10_3cl
usermode-gtk-1.69-59765cl
gtk2-engines-2.2.0-56049cl
gtk+2-2.4.1-60034U10_2cl
gtkam-0.1.11dev2-57734cl
python-wxgtk2-examples-2.4.2.4-57959cl
libgtkhtml30-3.2.5-52911U10_2cl
licq-gtk-1.2.7-62979cl
gtkhtml-i18n-pt_BR-1.1.10-59703cl
libgtkhtml2-devel-2.6.0-56307cl
libwmf-gtk-0.2.8.2-51780cl
gtkhtml-devel-1.1.10-59703cl
libwxgtk2-devel-2.4.2-56474U10_3cl
gtk+2-i18n-pt_BR-2.4.1-60034U10_2cl
libgtkhtml2-2.6.0-56307cl
gtk+-i18n-pt_BR-1.2.10-61801cl
gtk+-devel-1.2.10-61801cl
libwxgtk2-examples-2.4.2-56474U10_3cl
libgtkhtml20-1.1.10-59703cl
gnome-python2-gtkhtml2-2.0.0-56833cl
gtkam-i18n-pt_BR-0.1.11dev2-57734cl
libgtksourceview1.0-i18n-pt_BR-1.0.0-56312cl
gtkhtml-1.1.10-59703cl
gtksamba-0.3.2pl1-26561cl
libgtksourceview-devel-1.0.0-56312cl
gtk+2-devel-static-2.4.1-60034U10_2cl
gtkhtml30-devel-static-3.2.5-52911U10_2cl
mtr-gtk-0.54-39028cl
libwxgtk2-2.4-2.4.2-56474U10_3cl
gnome2-industrial-theme-gtk+2-2.6-62594cl
python-gtk+2-2.2.0-56831cl
python-gtk+2-libglade-2.2.0-56831cl
libgtksourceview1.0-1.0.0-56312cl
gnome2-industrial-theme-gtk+-2.6-62594cl
gtklp-i18n-pt_BR-0.9s-62938cl
python-gtk+2-devel-2.2.0-56831cl
libgtkxmhtml-1.4.2-62411cl
gtk-doc-1.2-52060cl
libgtkhtml30-i18n-pt-3.2.5-52911U10_2cl
gtk+2-i18n-pt-2.4.1-60034U10_2cl

Estou mandando todas as linhas, pois realmente gostaria de saber qual das linhas acima é o gtk em si, e qual a versao e se tem alguma coisa a ver.

Gostaria muito de resolver esse problema de compilação, pois seria muito interessante para mim utilizar a minigui no Linux. Se algum amigo do forum puder me ajudar ou souber o problema, agredeço.
xTotal
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2007 14:46
Curtiu: 0 vez
Mens.Curtidas: 0 vez

Mensagempor xTotal » 22 Fev 2007 09:13

ou essa minigui para Linux é somente experimental?
xTotal
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2007 14:46
Curtiu: 0 vez
Mens.Curtidas: 0 vez

Mensagempor Stanis Luksys » 25 Fev 2007 12:31

Olá,

Essa MiniGUI para Linux é sim totalmente experimental e não está pronta para uso... eu pelo menos não arriscaria por em produção...

Quanto aos erros, note que alguns Warnings já eram previstos pelo Roberto Lopez, e que ele pede para não ser reportado como erro. E Warning nem é mesmo uma erro propriamente dito. E pelo que ví aí no seu post não há um sequer erro.

Eu testei no Conectiva 10 sem nenhuma alteração nas libs GTK e funcionou certinho... Mas já faz tempo.

Vou testar no Mandriva 2007 e qualquer coisa coloco aqui qual foi o procedimento, pois nem me lembro mais.

Falou!
Stanis Luksys
sites.google.com/hblibs

Apoiar e se utilizar de projetos opensource não é uma questão de boicote, mas sim de liberdade.
Utilize, aprimore e distribua.
Avatar de usuário

Stanis Luksys
Colaborador

Colaborador
 
Mensagens: 1329
Data de registro: 18 Jun 2005 03:04
Cidade/Estado: São Paulo
Curtiu: 0 vez
Mens.Curtidas: 2 vezes

Mensagempor jamazevedo » 04 Ago 2007 12:38

Teste no Ubuntu 7.0.4 e compilou o exemplo sem problemas.
Não estou conseguindo é compilar um programa meu.
jamazevedo
Usuário Nível 3

Usuário Nível 3
 
Mensagens: 122
Data de registro: 29 Dez 2005 15:50
Cidade/Estado: Manaus - AM
Curtiu: 0 vez
Mens.Curtidas: 0 vez

Mensagempor Stanis Luksys » 06 Ago 2007 23:47

Uma coisa que poucos fazem no Windows mas nesta versão para LInux é essencial é infoprmar a qual janela o objeto pertence, mesmo que ainda declarado dentro da mesma, por exemplo:

DEFINE WINDOW nomeJanela .....

DEFINE BUTTON OF nomeJanela


Confira se não é por aí o problema...

Falou!
Stanis Luksys
sites.google.com/hblibs

Apoiar e se utilizar de projetos opensource não é uma questão de boicote, mas sim de liberdade.
Utilize, aprimore e distribua.
Avatar de usuário

Stanis Luksys
Colaborador

Colaborador
 
Mensagens: 1329
Data de registro: 18 Jun 2005 03:04
Cidade/Estado: São Paulo
Curtiu: 0 vez
Mens.Curtidas: 2 vezes

Mensagempor jamazevedo » 11 Ago 2007 09:45

É isso mesmo na minigui for linux todos os parametros precisam ser informados.
Poderosa essa minigui.
jamazevedo
Usuário Nível 3

Usuário Nível 3
 
Mensagens: 122
Data de registro: 29 Dez 2005 15:50
Cidade/Estado: Manaus - AM
Curtiu: 0 vez
Mens.Curtidas: 0 vez

Mensagempor Stanis Luksys » 11 Ago 2007 16:33

Cara, realmente muito boa.

É uma solução incrível poder desenvolver em modo gráfico para Linux com uma ferramenta tão simples como a MiniGUI, e pra melhorar, em sintaxe xBase.

Não sei se já está estável, mas se estiver, vale a pena investir hein!!!

Falou!
Stanis Luksys
sites.google.com/hblibs

Apoiar e se utilizar de projetos opensource não é uma questão de boicote, mas sim de liberdade.
Utilize, aprimore e distribua.
Avatar de usuário

Stanis Luksys
Colaborador

Colaborador
 
Mensagens: 1329
Data de registro: 18 Jun 2005 03:04
Cidade/Estado: São Paulo
Curtiu: 0 vez
Mens.Curtidas: 2 vezes




Retornar para MiniGui

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 6 visitantes


Ola Amigo, espero que meu site e forum tem lhe beneficiado, com exemplos e dicas de programacao.
Entao divulgue o link da Doacao abaixo para seus amigos e redes sociais ou faça uma doacao para o site forum...
MUITO OBRIGADO PELA SUA DOACAO!
Faça uma doação para o forum
cron
v
Olá visitante, seja bem-vindo ao Fórum Clipper On Line!
Efetue o seu login ou faça o seu Registro