FiveLinux on Ubuntu
Re: FiveLinux on Ubuntu
Ola amigo
Antonio funcionou, gracias por seu pronto atendimento
Assim que montar um pequeno sistema posto aqui as telas para todos verem
Antonio funcionou, gracias por seu pronto atendimento
Assim que montar um pequeno sistema posto aqui as telas para todos verem
Jackson Douglas C. Brito
Boa Vista - RR - Brasil
FWH 12.09 Last Build
xHarbour Free
UESTUDIO
SQLRDD
Boa Vista - RR - Brasil
FWH 12.09 Last Build
xHarbour Free
UESTUDIO
SQLRDD
Re: FiveLinux on Ubuntu
Antonio,
Can you send email for me FiveLinux built for Harbour and build.sh
mustapa_bgr@yahoo.com
Thank's b4
Can you send email for me FiveLinux built for Harbour and build.sh
mustapa_bgr@yahoo.com
Thank's b4
Last edited by mustapa on Mon Aug 02, 2010 7:56 am, edited 1 time in total.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: FiveLinux on Ubuntu
Mustapa,
FiveLinux is a commercial product developed by our company, FiveTech Software.
You can buy it from: www.fivetechsoft.com Thanks
FiveLinux is a commercial product developed by our company, FiveTech Software.
You can buy it from: www.fivetechsoft.com Thanks
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Re: FiveLinux on Ubuntu
Hi Antonio and all
I note that http://www.harbour-project.org has a .deb package for download (but not 64 bit). If you install it your include files will be in:
and your library files will be in:
which is very different from the traditional location of these files with FiveLinux. These changes would require changes to build.sh. Two additional consequences are that the files are available to all users but with the protection of being read only. So if you want to copy an include file into the new location you need to use sudo, ie something like
Similarly for copying a library file or updating one.
Also the harbour (compiler) program is in the default path so you don't need
just
Regards
Doug
I note that http://www.harbour-project.org has a .deb package for download (but not 64 bit). If you install it your include files will be in:
Code: Select all
/usr/include/harbour
Code: Select all
/usr/lib/harbour
Code: Select all
sudo cp ./MyIncludeFile.ch /usr/include/harbour
Also the harbour (compiler) program is in the default path so you don't need
Code: Select all
./../../harbour/bin/harbour
Code: Select all
harbour
Doug
- omarelunico
- Posts: 33
- Joined: Sun May 14, 2006 7:31 am
- Location: Lima - Perú
Re: FiveLinux on Ubuntu
Antonio, tengo un sistema corriendo en windows xp, utilizo fivewin 2.8 adquirido el año 2006 aprox, es a 32 bits, la consulta, para que funcione en ubuntu se necesitaria hacer _?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: FiveLinux on Ubuntu
Omar,
Una forma inmediata de correr tus aplicaciones en Windows sobre Ubuntu (o cualquier otra version de Linux) es instalar "Wine" en Ubuntu que te permite ejecutar aplicaciones Windows directamente.
La unica pega es que tu aplicacion no se vera como una aplicacion nativa de Windows, pero si eso no le importa a tu cliente, entonces ya lo tienes solucionado.
FiveLinux te permite crear aplicaciones nativas para Linux usando el GUI GTK+ de Linux, de esta forma tu aplicacion se vera como cualquier otra aplicacion de Linux. Hay que tener en cuenta que FiveLinux no ofrece una compatibilidad total con FiveWin, por lo que no es posible recompilar tus PRGs en FiveWin. Esta mas bien ideado para iniciar un desarrollo desde cero en Linux de forma nativa.
Una forma inmediata de correr tus aplicaciones en Windows sobre Ubuntu (o cualquier otra version de Linux) es instalar "Wine" en Ubuntu que te permite ejecutar aplicaciones Windows directamente.
La unica pega es que tu aplicacion no se vera como una aplicacion nativa de Windows, pero si eso no le importa a tu cliente, entonces ya lo tienes solucionado.
FiveLinux te permite crear aplicaciones nativas para Linux usando el GUI GTK+ de Linux, de esta forma tu aplicacion se vera como cualquier otra aplicacion de Linux. Hay que tener en cuenta que FiveLinux no ofrece una compatibilidad total con FiveWin, por lo que no es posible recompilar tus PRGs en FiveWin. Esta mas bien ideado para iniciar un desarrollo desde cero en Linux de forma nativa.
Re: FiveLinux on Ubuntu
Hi.
libgnomeprintui2.2-dev was removed from newer Ubuntu repositories.
Needed to addto the repositories list.
Regards.
[[]] Maurício Faria
Antonio Linares wrote: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
libgnomeprintui2.2-dev was removed from newer Ubuntu repositories.
Needed to add
Code: Select all
deb http://us.archive.ubuntu.com/ubuntu precise main universe
Regards.
[[]] Maurício Faria
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: FiveLinux on Ubuntu
Modified Makefile a little in order to make it Harbour's path independent.
Preserved the original path structure in case Harbour's is not set.
Regards,
Maurício Faria
Preserved the original path structure in case Harbour's is not set.
Code: Select all
# FiveLinux makefile
HB_PATH = ${HB_INSTALL_PREFIX}
ifeq ($(HB_PATH),)
HB_PATH = ./../harbour
endif
all : ./lib/libfive.a ./lib/libfivec.a
PRG_OBJS = ./obj/bar.o \
./obj/button.o \
./obj/checkbox.o \
./obj/combobox.o \
./obj/control.o \
./obj/database.o \
./obj/dbtools.o \
./obj/dialog.o \
./obj/errsys.o \
./obj/file.o \
./obj/filename.o \
./obj/folder.o \
./obj/font.o \
./obj/form.o \
./obj/get.o \
./obj/group.o \
./obj/harbour.o \
./obj/image.o \
./obj/ini.o \
./obj/listbox.o \
./obj/memoedit.o \
./obj/menu.o \
./obj/menuitem.o \
./obj/mget.o \
./obj/missing.o \
./obj/msgbar.o \
./obj/oemansi.o \
./obj/pdmenu.o \
./obj/printer.o \
./obj/progres.o \
./obj/radio.o \
./obj/radmenu.o \
./obj/say.o \
./obj/scrollbar.o \
./obj/timer.o \
./obj/valblank.o \
./obj/valtostr.o \
./obj/wbrowse.o \
./obj/wbcolumn.o \
./obj/window.o
C_OBJS = ./objc/bars.o \
./objc/buttons.o \
./objc/checkboxes.o \
./objc/comboboxes.o \
./objc/cursors.o \
./objc/dialogs.o \
./objc/files.o \
./objc/folders.o \
./objc/fonts.o \
./objc/getcolor.o \
./objc/getfile.o \
./objc/getfont.o \
./objc/gets.o \
./objc/groups.o \
./objc/images.o \
./objc/listboxes.o \
./objc/lnx.o \
./objc/menus.o \
./objc/mgets.o \
./objc/mouse.o \
./objc/msgbars.o \
./objc/msgbox.o \
./objc/printers.o \
./objc/progress.o \
./objc/radios.o \
./objc/says.o \
./objc/scrollbars.o \
./objc/spawn.o \
./objc/strtoken.o \
./objc/wbrowses.o \
./objc/windows.o
./lib/libfive.a : $(PRG_OBJS)
./lib/libfivec.a : $(C_OBJS)
./obj/%.c : ./source/classes/%.prg
$(HB_PATH)/bin/harbour $< -o./$@ -n -I$(HB_PATH)/include -I./include
./obj/%.c : ./source/function/%.prg
$(HB_PATH)/bin/harbour $< -o./$@ -n -I$(HB_PATH)/include -I./include
./obj/%.o : ./obj/%.c
gcc -c -D_HARBOUR_ -o $@ -I$(HB_PATH)/include -I./include $<
ar rc ./lib/libfive.a $@
./objc/%.o : ./source/function/%.c
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-2.0` `pkg-config --cflags libgnomeprintui-2.2` -I$(HB_PATH)/include -I./include -Wall -c -o $@ $<
ar rc ./lib/libfivec.a $@
./objc/%.o : ./source/winapi/%.c
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-2.0` `pkg-config --cflags libgnomeprintui-2.2` -I$(HB_PATH)/include -I./include -Wall -c -o $@ $<
ar rc ./lib/libfivec.a $@
./objc/%.o : ./source/internal/%.c
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-2.0` `pkg-config --cflags libglade-2.0` -I$(HB_PATH)/include -I./include -Wall -c -o $@ $<
ar rc ./lib/libfivec.a $@
Maurício Faria
Re: FiveLinux on Ubuntu
Also modified samples/build.sh a little in order to make it Harbour's path independent.
Preserved the original path structure in case Harbour's is not set.
Preserved the original path structure in case Harbour's is not set.
Code: Select all
# ./build.sh
HB_PATH=$HB_INSTALL_PREFIX
if [ -z "$HB_PATH" ]; then
HB_PATH=./../../harbour
fi
clear
if [ $# = 0 ]; then
echo syntax: ./build.sh file [options...]
exit
fi
echo compiling...
$HB_PATH/bin/harbour $1 -n -I./../include -I$HB_PATH/include $2
echo compiling C module...
gcc $1.c -c -I./../include -I$HB_PATH/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../lib -L$HB_PATH/lib `pkg-config --libs libgnomeprintui-2.2` -Wl,--start-group -lfive -lfivec -lhbcommon -lhbvm -lhbrtl -lhbrdd -lhbmacro -lhblang -lhbcpage -lhbpp -lhbcplr -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbusrrdd -lhbct -lgttrm -lhbdebug -lm -lgpm -lncurses `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` -Wl,--end-group
rm $1.c
rm $1.o
echo done!
./$1