[Linux-bruxelles] RE: [Linux-bruxelles] Qt, C++ problème de compilation

Grégoire Alexandre gregoire.alex at easynet.be
Mer 9 Juil 18:37:42 CEST 2003


Dans mon fichier 
/etc/ld.so.conf
La ligne /usr/lib/qt3/lib existe deja

Dans le Makefile, je n'ai malheureusement pas trouvé de LIBPATH=
voici le makefile


#############################################################################
# Makefile for building: Qt
# Generated by qmake (1.04a) (Qt 3.1.1) on: Wed Jul  9 14:35:21 2003
# Project:  Qt.pro
# Template: app
# Command: $(QMAKE) -o Makefile Qt.pro
#############################################################################

####### Compiler, tools and options

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 
-mcpu=pentiumpro  -DQT_NO_DEBUG
CXXFLAGS = -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 
-mcpu=pentiumpro  -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS= -d
INCPATH  = -I/usr/lib/qt3//mkspecs/default -I. -I. -I$(QTDIR)/include
LINK     = g++
LFLAGS   =
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
AR       = ar cqs
RANLIB   =
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = ./

####### Files

HEADERS =
SOURCES = main.cpp
OBJECTS = main.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC   =
OBJMOC =
DIST	   = Qt.pro
QMAKE_TARGET = Qt
DESTDIR  =
TARGET   = Qt

first: all
####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

mocables: $(SRCMOC)

$(MOC):
	( cd $(QTDIR)/src/moc ; $(MAKE) )

Makefile: Qt.pro  /usr/lib/qt3//mkspecs/default/qmake.conf
	$(QMAKE) -o Makefile Qt.pro
qmake:
	@$(QMAKE) -o Makefile Qt.pro

dist:
	@mkdir -p .tmp/Qt && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) 
$(DIST) .tmp/Qt/ && ( cd `dirname .tmp/Qt` && $(TAR) Qt.tar Qt && $(GZIP) 
Qt.tar ) && $(MOVE) `dirname .tmp/Qt`/Qt.tar.gz . && $(DEL_FILE) -r .tmp/Qt

mocclean:

uiclean:

yaccclean:
lexclean:
clean:
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(TARGET) $(TARGET)


FORCE:

####### Compile

main.o: main.cpp

####### Install

install: all

uninstall:






Plus d'informations sur la liste de diffusion Linux-bruxelles