Entrar
¿Usuario nuevo? Regístrate
t-gtk
? ¿Ya estás suscrito? Entrar en Yahoo!

Consejos de Yahoo! Grupos

¿Sabías que...?
Puedes buscar mensajes antiguos en un grupo.

Mensajes

  Mensajes Ayuda
Avanzado
INFO: "zlib version error".   Lista de mensajes  
Responder | Reenviar Mensaje #2563 de 2868 |
Re: [t-gtk] "zlib version error".

Aclaro... estoy compilando sin problemas...  son las imagenes .png las que me dan el error del zlib.

Saludos.


2008/6/25 Riztan Gutierrez <riztan@...>:

Amigos,

Acabo de instalar nuevamente mi Ubuntu... ahora 8.04,

instale xharbour 1.0,
instale t-gtk desde el CVS.

Generé las librerias sin complicación.

peeeeeero...

Me está apareciendo el famoso "zlib version error".

Por lo que estuve leyendo, esto se solucionó... y revise el Rules.make
y pues como era de esperarse... esta todo lo correspondiente a la
solucion. Lo anexo por si acaso...

Gracias de Antemano.

//////////////////////////////
SUPPORT_PRINT_WIN32=no

#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 = gcc

#Especificamos compilador xBase a usar, si harbour o xHarbour
XBASE_COMPILER = XHARBOUR

#Nueva version harbour 1.1
HB_BIN_INSTALL = /usr/bin
HB_INC_INSTALL = /usr/include/xharbour
HB_LIB_INSTALL = /usr/lib/xharbour

#Rutas de librerias y de includes de TGTK.
LIBDIR_TGTK= /home/riztan/t-gtk/lib
INCLUDE_TGTK_PRG=/home/riztan/t-gtk/include

##############################################
# Esqueleto para todas las plataformas
##############################################

#Generic make options
LINKER = ar
CC = gcc
LIBRARIAN = ranlib

#Definition GT driver
ifeq ($(HB_COMPILER),mingw32)
GT_LIBS=-lgtwin
else
GT_LIBS=-lgtstd
endif

ifeq ($(HB_COMPILER),mingw32)
CFLAGS +=-fms-extensions -Wall $(shell pkg-config --cflags
tgtk)-mms-bitfields -ffast-math -D_HB_API_INTERNAL_
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_ -DHB_ARRAY_USE_COUNTER_OFF
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 . tenemos para 0.99.51(dbfdbt) y 0.99.60
#LIBFILES_ = -ldebug -lvm -lrtl $(GT_LIBS) -llang -lrdd
-lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbfdbt -ldbffpt -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) -lstdc++ -lhbzip
else
# HARBOUR
#LIBFILES_ = -ldebug -lvm -lrtl $(GT_LIBS) -llang -lrdd
-lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbfdbt -lcommon -lm
-lgtwin $(GT_LIBS) -lgtwin
LIBFILES_ = -lhbvm -lhbrtl $(GT_LIBS) -lhblang -lhbrdd
-lhbmacro -lhbpp -lhbdbfntx -lhbdbfcdx -lhbdbffpt -lhbsix -lhsx
-lhbcommon -lhbm -lgtwin $(GT_LIBS)
endif
else
ifeq ($(XBASE_COMPILER),XHARBOUR)
# XHARBOUR
#LIBFILES_ = -ldebug -lvm -lrtl -lgtnul -lgtcrs -lncurses
-llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfdbt -ldbfcdx -lrtl
-lcommon -lm -lgpm
LIBFILES_ = -lvm -lrtl -llang -lrdd -lmacro -lpp -ldbfntx
-ldbfcdx -ldbffpt -lcommon -lm -lhbsix -lpcrepos -lgtnul $(GT_LIBS)
else
# HARBOUR
# LIBFILES_ = -ldebug -lvm -lrtl $(GT_LIBS) -llang -lrdd
-lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbfdbt -lcommon -lm
$(GT_LIBS)
LIBFILES_ = -lhbvm -lhbrtl $(GT_LIBS) -lhblang -lhbrdd -lhbvm
-lhbmacro -lhbpp -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon -lgttrm
$(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)

# By Quim -->
# 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&#65533;, 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
ifneq ($(strip $(CPPSOURCES)),)
OBJECTS+=$(patsubst %.cpp,%.o,$(CPPSOURCES))
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) $<

%.o: %.cpp
$(CC) -c -o$@ $(CFLAGS) -I$(HB_INC_INSTALL) $<

%.c: %.prg
$(HB_BIN_INSTALL)/harbour -w -q0 -gc0 -n -p $(PRGFLAGS)
-I$(HB_INC_INSTALL) -o$@ $<

$(TARGET): $(OBJECTS)
ifeq ( lib , $(patsubst %.a, lib, $(TARGET)))
$(LINKER) -r $(TARGET) $(OBJECTS)
$(LIBRARIAN) $(TARGET)
else
$(CC) -o $(TARGET) $(OBJECTS) $(LIBDIR_) $(LIBS_)
endif

clean:
rm -f *.o
rm -f *.ppo
rm -f $(TARGET)
rm -f $(TARGET).exe
rm -f $(TARGETS)

install: all
cp -f *.a $(TGTK_INSTALL)




--
_________________________
Si no mantienes la fe, la esperanza y la ilusión en un mañana mejor, estás más cerca de ser un sepulturero que un agricultor.

Riztan Gutierrez



Mié, 25 de Jun, 2008 1:06 pm

riztanivan
Sin conexión Sin conexión
Enviar mensaje Enviar mensaje

Reenviar Mensaje #2563 de 2868 |
Desplegar mensajes Autor Ordenar por fecha

Amigos, Acabo de instalar nuevamente mi Ubuntu... ahora 8.04, instale xharbour 1.0, instale t-gtk desde el CVS. Generé las librerias sin complicación. ...
Riztan Gutierrez
riztanivan
Sin conexión Enviar mensaje
25 de Jun, 2008
3:45 am

Aclaro... estoy compilando sin problemas... son las imagenes .png las que me dan el error del zlib. Saludos. ... -- _________________________ Si no mantienes...
Riztan Gutierrez
riztanivan
Sin conexión Enviar mensaje
25 de Jun, 2008
1:06 pm

... $(LIBFILES_) ... Funciona para mi tambien. Gracias! Claudia...
clneu589
Sin conexión Enviar mensaje
5 de Nov, 2007
9:59 pm
 Primero  |  |  Siguiente > Último 
Avanzado

Copyright © 2009 Yahoo! Todos los derechos reservados.
Política de Privacidad Actualizada - Condiciones del servicio - Directrices - Ayuda