Page 1 of 2

FiveLinux on Ubuntu

PostPosted: Tue Oct 31, 2006 12:46 pm
by Antonio Linares
In order to run FiveLinux on Ubuntu, you need to install these packages:

sudo apt-get install libgtk2.0-dev
sudo apt-get install gcc
sudo apt-get install libncurses5-dev
sudo apt-get install libgpmg1-dev
sudo apt-get install libgnomeprintui2.2-dev
sudo apt-get install glade
sudo apt-get install libglade2-dev
sudo apt-get install unixODBC-dev

For MySQL:
sudo apt-get install libmysqlclient-dev

PostPosted: Tue Oct 31, 2006 12:54 pm
by Antonio Linares
Image

Re: FiveLinux on Ubuntu

PostPosted: Thu Aug 06, 2009 11:10 pm
by miragerr
Antonio

Esto tambem funciona com KDE

Fico no aguardo

Re: FiveLinux on Ubuntu

PostPosted: Fri Aug 07, 2009 2:22 pm
by Antonio Linares
Jackson,

Yes, if you install GTK+ package on it.

FiveLinux uses GTK+, not QT.

Re: FiveLinux on Ubuntu

PostPosted: Sat Aug 08, 2009 3:37 am
by miragerr
Ola amigo

isso quer dizer que só funciona no GNOME mais não funciona no KDE

es esto mesmo ?

Fico no aguardo

Re: FiveLinux on Ubuntu

PostPosted: Sat Aug 08, 2009 8:12 am
by Antonio Linares
FiveLinux uses GTK+ GUI.

If you install GTK+ on a KDE Linux, then FiveLinux will work fine there too :-)

Re: FiveLinux on Ubuntu

PostPosted: Sun Jan 31, 2010 3:39 pm
by miragerr
Ola amigo Antonio

Instalei o HARBOUR 2.0 "uma maravilha da natureza" e tambem o FIVELINUX mais não estou conseguindo compilar pode me ajudar

Utilizo:
DEBIAN 5.0
KDE 4.0

Ao temtar compilar um exemplo do FIVELINUX tenho o seguinte erro

compiling...
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'testbrow.prg'...
Lines 1033, Functions/Procedures 1
Generating C source output to 'testbrow.c'... Done.
compiling C module...
testbrow.c: In function ‘HB_FUN_MAIN’:
testbrow.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pcode’
testbrow.c:48: error: ‘pcode’ undeclared (first use in this function)
testbrow.c:48: error: (Each undeclared identifier is reported only once
testbrow.c:48: error: for each function it appears in.)
testbrow.c:48: error: expected expression before ‘]’ token
linking...
Package libgnomeprintui-2.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeprintui-2.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeprintui-2.2' found
gcc: testbrow.o: Arquivo ou diretório não encontrado
rm: imposível remover `testbrow.o': Arquivo ou diretório não encontrado
done!
./build.sh: line 23: ./testbrow: Arquivo ou diretório não encontrado
debian:/home/jackson/fivelinux/samples#

Re: FiveLinux on Ubuntu

PostPosted: Tue Feb 02, 2010 3:45 pm
by miragerr
Ola amigo ANTONIO

Instalei o DEBIAN em outro PC com o GNOME e foi tudo perfeito só que esta me dando estes erros

estou usando
DEBIAN 5
GNOME
HARBOUR 2.0 from SVN


compiling...
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'tutor01.prg'...
Lines 1096, Functions/Procedures 1
Generating C source output to 'tutor01.c'... Done.
compiling C module...
linking...
./../../harbour/lib/libgtstd.a(gtstd.o): In function `hb_gt_std_SetKeyCP':
gtstd.c:(.text+0x46f): undefined reference to `hb_cdpTranslateChar'
gtstd.c:(.text+0x494): undefined reference to `hb_cdpID'
./../../harbour/lib/libgtstd.a(gtstd.o): In function `hb_gt_std_SetDispCP':
gtstd.c:(.text+0x502): undefined reference to `hb_cdpFindExt'
gtstd.c:(.text+0x50d): undefined reference to `hb_cdpFindExt'
gtstd.c:(.text+0x559): undefined reference to `hb_cdpID'
./../../harbour/lib/libgtstd.a(gtstd.o): In function `hb_gt_std_Refresh':
gtstd.c:(.text+0x79e): undefined reference to `hb_cdpnDup3'
./../../harbour/lib/libgtstd.a(gtstd.o): In function `hb_gt_std_Init':
gtstd.c:(.text+0xa0c): undefined reference to `hb_cdpTranslateChar'
./../../harbour/lib/libgtstd.a(gtstd.o): In function `hb_gt_std_Redraw':
gtstd.c:(.text+0x101e): undefined reference to `hb_cdpnDup3'
gtstd.c:(.text+0x10c2): undefined reference to `hb_cdpnDup3'
collect2: ld returned 1 exit status
done!
./build.sh: line 23: ./tutor01: Arquivo ou diretório não encontrado


o que pode ser ?

Re: FiveLinux on Ubuntu

PostPosted: Tue Feb 02, 2010 11:32 pm
by Antonio Linares
Jackson,

Esas funciones pertenecen al módulo src/rtl/cdpapi.c que debería estar contenido en la librería hbrtl.

Puedes mostrar como estas construyendo el ejecutable ? Has modificado build.sh de FiveLinux ?

Re: FiveLinux on Ubuntu

PostPosted: Wed Feb 03, 2010 12:46 am
by miragerr
Ola amigo

Não mudei nada no arquivo build.sh da pasta de FIVELINUX

o que fiz foi o seguinte

/home/jackson/fivelinux/samples/chmode +x ./build.sh --------------> somente a 1a vez

/home/jackson/fivelinux/samples/./build.sh tutor01

e me apareceram todos estes erros acima relatados

o arquivo BUILD.SH é este

# ./build.sh

clear

if [ $# = 0 ]; then
echo syntax: ./build.sh file [options...]
exit
fi

echo compiling...
./../../harbour/bin/harbour $1 -n -I./../include -I./../../harbour/include $2

echo compiling C module...
gcc $1.c -c -I./../include -I./../../harbour/include `pkg-config --cflags gtk+-2.0`

echo linking...
gcc $1.o -o$1 -L./../lib -L./../../harbour/lib `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` `pkg-config --libs libgnomeprintui-2.2` -Wl,--start-group -lfive -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lusrrdd -lct -lgtstd -ldebug -lm -lgpm -lncurses -Wl,--end-group

rm $1.c
rm $1.o

echo done!
./$1


Re: FiveLinux on Ubuntu

PostPosted: Wed Feb 03, 2010 12:51 am
by Antonio Linares
Jackson,

If you are using Harbour 2.0 then most of those libraries names have to be changed. Harbour now uses hb... as the prefix name for the libraries names. Maybe you are using old Harbour libraries.

Re: FiveLinux on Ubuntu

PostPosted: Wed Feb 03, 2010 3:39 pm
by miragerr
Ola amigo

Antonio EU mudei nos nomes das LIBS do HARBOUR pois agora todas começam com HB, até ai tudo joia, agora creio que o problema esta nas LIBs do FIVELINUX que devem não estar preparadas para o HARBOUR 2.0, veja abaixo os erros

NOVO BUILD.SH

# ./build.sh

clear

if [ $# = 0 ]; then
echo syntax: ./build.sh file [options...]
exit
fi

echo compiling...
./../../harbour/bin/harbour $1 -n -I./../include -I./../../harbour/include $2

echo compiling C module...
gcc $1.c -c -I./../include -I./../../harbour/include `pkg-config --cflags gtk+-2.0`

echo linking...
gcc $1.o -o$1 -L./../lib -L./../../harbour/lib `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` `pkg-config --libs libgnomeprintui-2.2` -Wl,--start-group -lfive -lfivec -lhbcommon -lhbvm -lhbrtl -lhbrdd -lhbmacro -lhblang -lhbcpage -lhbpp -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbusrrdd -lhbct -lgtstd -lhbdebug -lm -lgpm -lncurses -Wl,--end-group

rm $1.c
rm $1.o

echo done!
./$1


os ERROS de compilação

Executando ferramenta: FiveLinux

TERM environment variable not set.
compiling...
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'testbrow.prg'...

100

100

200

300

400

500

600

100

200

300

Lines 1110, Functions/Procedures 1
Generating C source output to 'testbrow.c'... Done.
compiling C module...
linking...
./../lib/libfive.a(button.o): In function `hb_vm_SymbolInit_BUTTON':
button.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(control.o): In function `hb_vm_SymbolInit_CONTROL':
control.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(errsys.o): In function `hb_vm_SymbolInit_ERRSYS':
errsys.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(harbour.o): In function `hb_vm_SymbolInit_HARBOUR':
harbour.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(harbour.o):(.data+0x18): undefined reference to `HB_FUN_HB_DBG_VMSTKLCOUNT'
done!
./../lib/libfive.a(harbour.o):(.data+0x48): undefined reference to `HB_FUN_HB_DBG_VMPARLLIST'
./../lib/libfive.a(harbour.o):(.data+0xd8): undefined reference to `HB_FUN_HB_DBG_VMVARLGET'
./../lib/libfive.a(harbour.o):(.data+0xf8): undefined reference to `HB_FUN_HB_DBG_VMVARSLEN'
./../lib/libfive.a(listbox.o): In function `hb_vm_SymbolInit_LISTBOX':
listbox.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(say.o): In function `hb_vm_SymbolInit_SAY':
say.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(valblank.o): In function `hb_vm_SymbolInit_VALBLANK':
valblank.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(wbrowse.o): In function `hb_vm_SymbolInit_WBROWSE':
wbrowse.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(wbcolumn.o): In function `hb_vm_SymbolInit_WBCOLUMN':
wbcolumn.c:(.text+0x2e): undefined reference to `hb_vmProcessSymbolsEx'
./../lib/libfive.a(window.o):window.c:(.text+0x2e): more undefined references to `hb_vmProcessSymbolsEx' follow
./../../harbour/lib/libhbrtl.a(gtsys.o): In function `hb_gt_ForceLink_HB_GT_TRM':
gtsys.c:(.text+0x15): undefined reference to `HB_FUN_HB_GT_TRM'
collect2: ld returned 1 exit status
./build.sh: line 23: ./testbrow: Arquivo ou diretório não encontrado

Saiu: 32512



Estou no aguardo

Re: FiveLinux on Ubuntu

PostPosted: Wed Feb 03, 2010 11:04 pm
by miragerr
Ola amigo

Antonio, creio a FIVELINUX não esta preparada para o HARBOUR 1.0 nem para o HARBOUR 2.0

Refiz o HARBOUR 1.0 e continua dando erros

veja abaixo

Executando ferramenta: FiveLinux

compiling...
TERM environment variable not set.
Harbour 1.0.2dev Intl. (Rev. 9676)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'fivelinux.prg'...

100

100

200

300

400

500

100

200

300

Lines 1165, Functions/Procedures 3
Generating C source output to 'fivelinux.c'... Done.
compiling C module...
linking...
./../../harbour/lib/libhbrtl.a(gtsys.o): In function `hb_gt_ForceLink_HB_GT_TRM':
gtsys.c:(.text+0x7): undefined reference to `HB_FUN_HB_GT_TRM'
collect2: ld returned 1 exit status
done!
./build.sh: line 23: ./fivelinux: Arquivo ou diretório não encontrado

Saiu: 32512


Re: FiveLinux on Ubuntu

PostPosted: Thu Feb 04, 2010 1:16 am
by Antonio Linares
Jackson,

I send you by email FiveLinux built for Harbour 2.0 and build.sh :-)

Re: FiveLinux on Ubuntu

PostPosted: Thu Feb 04, 2010 2:15 am
by Antonio Linares
Image