FiveLinux on Ubuntu

Re: FiveLinux on Ubuntu

Postby miragerr » Thu Feb 04, 2010 2:42 am

Ola amigo

Antonio funcionou, gracias por seu pronto atendimento :D :D

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
User avatar
miragerr
 
Posts: 140
Joined: Tue Oct 11, 2005 2:36 am
Location: Brasil

Re: FiveLinux on Ubuntu

Postby mustapa » Mon Aug 02, 2010 7:54 am

Antonio,

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.
mustapa
 
Posts: 1
Joined: Mon Aug 02, 2010 5:53 am

Re: FiveLinux on Ubuntu

Postby Antonio Linares » Mon Aug 02, 2010 8:02 am

Mustapa,

FiveLinux is a commercial product developed by our company, FiveTech Software.

You can buy it from: www.fivetechsoft.com Thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveLinux on Ubuntu

Postby xProgrammer » Mon Aug 02, 2010 12:37 pm

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:

Code: Select all  Expand view
/usr/include/harbour


and your library files will be in:

Code: Select all  Expand view
/usr/lib/harbour


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

Code: Select all  Expand view
sudo cp ./MyIncludeFile.ch /usr/include/harbour


Similarly for copying a library file or updating one.

Also the harbour (compiler) program is in the default path so you don't need

Code: Select all  Expand view
./../../harbour/bin/harbour
 

just

Code: Select all  Expand view
harbour


Regards
Doug
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Re: FiveLinux on Ubuntu

Postby omarelunico » Thu May 19, 2011 5:16 pm

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 muchos cambios?
User avatar
omarelunico
 
Posts: 33
Joined: Sun May 14, 2006 7:31 am
Location: Lima - Perú

Re: FiveLinux on Ubuntu

Postby Antonio Linares » Thu May 19, 2011 5:44 pm

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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveLinux on Ubuntu

Postby concentra » Tue Nov 21, 2017 11:40 am

Hi.

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  Expand view
deb http://us.archive.ubuntu.com/ubuntu precise main universe
to the repositories list.

Regards.

[[]] Maurício Faria
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: FiveLinux on Ubuntu

Postby Antonio Linares » Tue Nov 21, 2017 12:38 pm

thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveLinux on Ubuntu

Postby concentra » Tue Nov 21, 2017 3:38 pm

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.
Code: Select all  Expand view

# 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 $@

 


Regards,

Maurício Faria
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: FiveLinux on Ubuntu

Postby concentra » Tue Nov 21, 2017 4:01 pm

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.
Code: Select all  Expand view

# ./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
 
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Previous

Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 11 guests