Ola amigo
Antonio funcionou, gracias por seu pronto atendimento
Assim que montar um pequeno sistema posto aqui as telas para todos verem
/usr/include/harbour
/usr/lib/harbour
sudo cp ./MyIncludeFile.ch /usr/include/harbour
./../../harbour/bin/harbour
harbour
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
deb http://us.archive.ubuntu.com/ubuntu precise main universe
# 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 $@
# ./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
Return to FiveLinux / FiveDroid (Android)
Users browsing this forum: No registered users and 7 guests