--- En t-gtk@yahoogroups.com, "clneu589" <claudia.neumann@l...> escribió:
>
> Hola Rafa!> Claudia, ¿ has ejecutado el configure.exe de T-Gtk ?Por
supuesto! Configure.exe a terminado sin errores. Tgtk.pc esta
enc:\MinGW\lib\pkgconfig. Pero pkg-config no funciona como en Linux,
noda informaciones de las directorios de GTK+.> ¿ Has puesto el
compilador de xharbour con el de C ?> Deberia er> HB_BIN_INSTALL =
C:/xHarbour-MinGW/bin, etc..Si, he instalado todos los programas en
c:\MinGW. Pues, tengoharbour.exe en c:\MinGW\bin, pkg-config.exe en
c:\MinGW\bin y gcc.exeen c:\MinGW\bin. Los librerias estan en
c:\MinGW\lib etcetera. Losdirectorios c:\MinGW\bin, c:\MinGW\lib y
c:\MinGW\include heinscribido en el $PATH. Rules.make esta en
c:\MinGW\ . He
instalado:binutils-2.15.91-20040904-1.tar.gzbison-2.0-MSYS.tar.gzgcc-core-3.4.2-\
20040916-1.tar.gzgdb-5.2.1-1.exegtk-win32-devel-2.8.18-rc1.exegtk-win32-gnomepri\
nt-2-2.exemingw32-make-3.80.0-3.tar.gzMinGW-5.0.2.exemingw-runtime-3.9.tar.gzMSY\
S-1.0.11-2004.04.30-1.exeT-Gtk-GUI-for-[x]Harbour-Beta-1.5.0.exew32api-3.6.tar.g\
zxHarbour_mingw.exeVersiones
falsos?SaludosClaudia
>
Hola Claudia, te muestro como tengo yo en el XP.... al principio se
me complico la cosa y la resolví creando la variable de ambiente. Si
tienes tiempo revisa entre mensajes anteriores para mayor información...
Rutas:
C:\MinGW
C:\MinGW\xHarbour
C:\TGTK
PATH:
Path=c:\MinGW\bin;C:\GTK\bin;C:\WINDOWS\system32;C:\WINDOWS;
c:\MinGW\xHarbour\bin;c:\MinGW\xHarbour\include;c:\MinGW\xHarbour\lib;"C:\
ARCHIVOS DE PROGRAMA\VIM\VIM70";C:\CLIPPER5;C:\CLIPPER5\SK2
Si a alguien le suena conocido lo que está al final... puede ver
los esfuerzos que estoy haciendo por entender bien lo de la
programación por objeto, etc. ;-)
Variable de Ambiente:
PKG_CONFIG_PATH=C:\gtk\lib\pkgconfig
Rules.make
##################################################
# System Configure of T-Gtk.
# Version para el S.O Windows y para XHARBOUR
# (c)2004-05 Rafa Carmona.
#
# Create: 06/19/06 # 20:14:46
##################################################
# Para tener soporte de impresion en GNU/Linux a traves de gnome.
# tenemos que tener instalado el paquete libgnomeprintui22-devel,
# si queremos realizar la aplicacion con soporte de impresion.
# Aqui , especificaremos los cFlags de compilacion necesarios para C
SUPPORT_PRINT_LINUX=yes
# 20-12-2005 by Joaquim Ferrer <quim_ferrer@...>
# Soporte de Impresion para Win32
# Es necesario tener instalado el pack de soporte para impresion
# de gnome, portado a Win32, gtk-win32-gnomeprint-2-2 instalado
# en el path de Gtk+, si no es asi, SUPPORT_PRINT_WIN32=no -->
SUPPORT_PRINT_WIN32=yes
#Especifica aqui, si lo necesitas por no tenerlo en el entorno, SET,
#las rutas del compilador de Harbour.
#Bajo Windows especificar mingw32, bajo linux especificar gcc.
HB_COMPILER = mingw32
#Especificamos compilador xBase a usar, si harbour o xHarbour
XBASE_COMPILER = XHARBOUR
#Rutas hacia el compilador xBase
HB_BIN_INSTALL = C:\MinGW\xHarbour\bin
HB_INC_INSTALL = C:\MinGW\xHarbour\include
HB_LIB_INSTALL = C:\MinGW\xHarbour\lib
#Rutas de librerias y de includes de TGTK.
LIBDIR_TGTK=C:\TGTK\lib
INCLUDE_TGTK_PRG=C:\TGTK\include
##############################################
# Esqueleto para todas las plataformas
##############################################
#Generic make options
LINKER = ar
CC = gcc
LIBRARIAN = ranlib
GT_LIBS=-lgtstd
ifeq ($(HB_COMPILER),mingw32)
CFLAGS +=-fms-extensions -Wall $(shell pkg-config --cflags
tgtk)-mms-bitfields -ffast-math -mno-cygwin -O3
ifeq ($(SUPPORT_PRINT_WIN32),yes)
CFLAGS += $(shell pkg-config --cflags libgnomeprintui-2.2)
endif
else
CFLAGS += -Wall -I. $(shell pkg-config --cflags tgtk)
ifeq ($(SUPPORT_PRINT_LINUX),yes)
CFLAGS += $(shell pkg-config --cflags libgnomeprintui-2.2)
-DHB_OS_LINUX
LIBS += $(shell pkg-config --libs libgnomeprintui-2.2)
endif
endif
ifeq ($(XBASE_COMPILER),HARBOUR)
CFLAGS += -D_HB_API_INTERNAL_
endif
#libraries for binary building
ifeq ($(HB_MT),MT)
LIBFILES_ = -ldebug -lvmmt -lrtlmt $(GT_LIBS) -lrddmt -lrtlmt
-lvmmt -lmacro -lppmt -ldbfntxmt -ldbfcdx -ldbfdbt -lcommon -lm -lpthread
else
ifeq ($(HB_COMPILER),mingw32)
ifeq ($(XBASE_COMPILER),XHARBOUR)
# XHARBOUR
#LIBFILES_ = -ldebug -lvm -lrtl $(GT_LIBS) -llang -lrdd
-lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbfdbt -lrtl -lcommon -lm
-lgtwin $(GT_LIBS) -lgtnul -lgtwin
LIBFILES_ = -lvm -lrtl -llang -lrdd -lmacro -lpp -ldbfntx
-ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lcommon -lm -lgtwin -lgtnul
$(GT_LIBS)
else
# HARBOUR
#LIBFILES_ = -ldebug -lvm -lrtl $(GT_LIBS) -llang -lrdd
-lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbfdbt -lcommon -lm
-lgtwin $(GT_LIBS) -lgtwin
LIBFILES_ = -lvm -lrtl $(GT_LIBS) -llang -lrdd -lmacro -lpp
-ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lcommon -lm -lgtwin $(GT_LIBS)
endif
else
ifeq ($(XBASE_COMPILER),XHARBOUR)
# XHARBOUR
LIBFILES_ = -lvm -lrtl -lgtnul -lgtcrs -lncurses -llang -lrdd
-lmacro -lpp -ldbfntx -ldbfcdx -ldbffpt -lcommon -lm -lhbsix -lhsx
-lpcrepos -lgpm
else
# HARBOUR
LIBFILES_ = -lvm -lrtl -lgtcrs -lncurses -llang -lrdd -lmacro
-lpp -ldbfntx -ldbfcdx -ldbffpt -lcommon -lm -lhbsix -lhsx $(GT_LIBS)
endif
endif
endif
ifeq ($(HB_COMPILER),mingw32)
ifeq ($(XBASE_COMPILER),XHARBOUR)
# XHARBOUR
LIBFILES_ += -lhbodbc -luser32 -lwinspool -lole32 -loleaut32
-luuid -lgdi32 -lcomctl32 -lcomdlg32 -lodbc32 -lwininet -lwsock32
else
# HARBOUR
LIBFILES_ += -luser32 -lwinspool -lole32 -loleaut32 -luuid
-lgdi32 -lcomctl32 -lcomdlg32 -lodbc32 -lwininet -lwsock32
endif
EXETYPE=.exe
else
LIBFILES_ +=
EXETYPE=
endif
#librerias usadas por Tgtk las definimos aqui. GTK y GLADE
LIBS += -L$(LIBDIR_TGTK) $(shell pkg-config --libs tgtk )
PRGFLAGS += -I$(INCLUDE_TGTK_PRG)
# Soporte impresion para Win32, las libs de gnome van en este orden y
despues de tgtk si no, no enlaza.
ifeq ($(SUPPORT_PRINT_WIN32),yes)
LIBS += $(shell pkg-config --libs libgnomeprint-2.2) $(shell
pkg-config --libs libgnomeprintui-2.2)
endif
#nos servirá, para compilar prgs exclusivos para GNU/Linux
#por ejemplo, gPrinter.prg
ifeq ($(HB_COMPILER),gcc)
PRGFLAGS += -DHB_OS_LINUX
endif
LIBDIR_ = $(LIBDIR) -L$(HB_LIB_INSTALL)
LIBS_= $(LIBS)-Wl,--start-group $(LIBFILES_) -Wl,--end-group
ifeq ($(strip $(SOURCE_TYPE)),)
SOURCE_TYPE=prg
endif
#Sources / object determination rule
#subidr might override this file by providing a makefile.sources
ifeq ($(strip $(SOURCES)),)
SOURCES=$(wildcard *.$(SOURCE_TYPE))
endif
ifeq ($(strip $(OBJECTS)),)
OBJECTS=$(patsubst %.$(SOURCE_TYPE),%.o,$(SOURCES))
ifneq ($(strip $(CSOURCES)),)
OBJECTS+=$(patsubst %.c,%.o,$(CSOURCES))
endif
endif
#COMMANDS
all:$(TARGET) $(TARGETS)
win:$(TARGET) $(TARGETS)
linux:$(TARGET) $(TARGETS)
.PHONY: clean install
%$(EXETYPE):%.o
$(CC) -o$@ $< $(LIBDIR_) $(LIBS_)
%.o: %.c
$(CC) -c -o$@ $(CFLAGS) -I$(HB_INC_INSTALL) $<
%.c: %.prg
$(HB_BIN_INSTALL)\harbour -w -q0 -gc0 -n $(PRGFLAGS)
-I$(HB_INC_INSTALL) -o$@ $<
$(TARGET): $(OBJECTS)
ifeq ( lib , $(patsubst %.a, lib, $(TARGET)))
$(LINKER) -r $(TARGET) $(OBJECTS)
$(LIBRARIAN) $(TARGET)
else
$(CC) -s -o $(TARGET) $(OBJECTS) $(LIBDIR_) $(LIBS_)
endif
clean:
rm -f *.o
rm -f *~
rm -f *.ppo
rm -f $(TARGET)
rm -f $(TARGET).exe
rm -f $(TARGETS)
install: all
cp -f *.a $(TGTK_INSTALL)
**** FIN
Saludos.
Riztan Gutierrez
Aragua-Venezuela.