mainwindow.o: In function `MainWindow::openFile()':
/home/Evix/workspace/QT/MyPDF/mainwindow.cpp:61: undefined reference to `Poppler::Document::numPages() const'
mainwindow.o: In function `MainWindow::nextPage()':
/home/Evix/workspace/QT/MyPDF/mainwindow.cpp:79: undefined reference to `Poppler::Document::numPages() const'
/home/Evix/workspace/QT/MyPDF/mainwindow.cpp:80: undefined reference to `Poppler::Document::numPages() const'
/usr/bin/ld: Dwarf Error: Offset (82136) greater than or equal to .debug_str size (18758).
pdf.o: In function `~PDF':
/home/Evix/workspace/QT/MyPDF/pdf.cpp:16: undefined reference to `Poppler::Document::~Document()'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:16: undefined reference to `Poppler::Document::~Document()'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:16: undefined reference to `Poppler::Document::~Document()'
pdf.o: In function `PDF::showPage(int)':
/home/Evix/workspace/QT/MyPDF/pdf.cpp:42: undefined reference to `Poppler::Document::page(int) const'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:42: undefined reference to `Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const'
pdf.o: In function `PDF::setDocument(QString const&)':
/home/Evix/workspace/QT/MyPDF/pdf.cpp:50: undefined reference to `Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&)'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:53: undefined reference to `Poppler::Document::~Document()'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:54: undefined reference to `Poppler::Document::setRenderHint(Poppler::Document::RenderHint, bool)'
/home/Evix/workspace/QT/MyPDF/pdf.cpp:55: undefined reference to `Poppler::Document::setRenderHint(Poppler::Document::RenderHint, bool)'
collect2: ld 返回 1
make: *** [MyPDF] 错误 1
Exited with code 2.
Error while building project MyPDF
When executing build step 'Make'
我的操作系统是fedora11 用qt开发一个pdf阅读器,用的是poppler库,poppler安装成功,#include包含的.h文件路径没错。/usr/lib有libpoppler.so.4.0.0的动态链接文件,我在/lib和/usr/lib中都创建了libpoppler.so的符号链接指向libpoppler.so.4.0.0。请问大家这怎么解决?
8 个解决方案
#1
发个makefile吧..找不到库
添加 -lpoppler了吗??
LD_LIB_PATH 添加库所在的路径
添加 -lpoppler了吗??
LD_LIB_PATH 添加库所在的路径
#2
楼上的,他这个是动态链接库
不能用-lpoppler这么调用吧,这是静态的方法
不能用-lpoppler这么调用吧,这是静态的方法
#3
贴一下你的编译命令行。
-lpoppler是动态链接。添加-L/usr/lib -lpoppler.
-lpoppler是动态链接。添加-L/usr/lib -lpoppler.
#4
纯友情UP 希望楼主早日解决问题
#5
makefile中已经添加了-L/lib/ -lpoppler,编译文件如下:
#############################################################################
# Makefile for building: MyPDF
# Generated by qmake (2.01a) (Qt 4.5.2) on: ?? 10? 15 20:55:36 2009
# Project: MyPDF.pro
# Template: app
# Command: /opt/qtsdk-2009.03/qt/bin/qmake -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/include/QtGui -I/opt/qtsdk-2009.03/qt/include -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/opt/qtsdk-2009.03/qt/lib
LIBS = $(SUBLIBS) -L/lib/ -lpoppler -L/opt/qtsdk-2009.03/qt/lib -lQtGui -L/opt/qtsdk-2009.03/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /opt/qtsdk-2009.03/qt/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
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
SOURCES = main.cpp \
mainwindow.cpp \
pdf.cpp moc_mainwindow.cpp \
moc_pdf.cpp
OBJECTS = main.o \
mainwindow.o \
pdf.o \
moc_mainwindow.o \
moc_pdf.o
DIST = /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
MyPDF.pro
QMAKE_TARGET = MyPDF
DESTDIR =
TARGET = MyPDF
first: all
####### Implicit rules
.SUFFIXES: .o .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 "$@" "$<"
#############################################################################
# Makefile for building: MyPDF
# Generated by qmake (2.01a) (Qt 4.5.2) on: ?? 10? 15 20:55:36 2009
# Project: MyPDF.pro
# Template: app
# Command: /opt/qtsdk-2009.03/qt/bin/qmake -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/include/QtGui -I/opt/qtsdk-2009.03/qt/include -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/opt/qtsdk-2009.03/qt/lib
LIBS = $(SUBLIBS) -L/lib/ -lpoppler -L/opt/qtsdk-2009.03/qt/lib -lQtGui -L/opt/qtsdk-2009.03/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /opt/qtsdk-2009.03/qt/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
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
SOURCES = main.cpp \
mainwindow.cpp \
pdf.cpp moc_mainwindow.cpp \
moc_pdf.cpp
OBJECTS = main.o \
mainwindow.o \
pdf.o \
moc_mainwindow.o \
moc_pdf.o
DIST = /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
MyPDF.pro
QMAKE_TARGET = MyPDF
DESTDIR =
TARGET = MyPDF
first: all
####### Implicit rules
.SUFFIXES: .o .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 "$@" "$<"
#6
####### Build rules
all: Makefile $(TARGET)
$(TARGET): ui_mainwindow.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: MyPDF.pro /opt/qtsdk-2009.03/qt/mkspecs/linux-g++/qmake.conf /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl \
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl
$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
/opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf:
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf:
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl:
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl:
qmake: FORCE
@$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
dist:
@$(CHK_DIR_EXISTS) .tmp/MyPDF1.0.0 || $(MKDIR) .tmp/MyPDF1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.h pdf.h .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp pdf.cpp .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/MyPDF1.0.0/ && (cd `dirname .tmp/MyPDF1.0.0` && $(TAR) MyPDF1.0.0.tar MyPDF1.0.0 && $(COMPRESS) MyPDF1.0.0.tar) && $(MOVE) `dirname .tmp/MyPDF1.0.0`/MyPDF1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/MyPDF1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_mainwindow.cpp moc_pdf.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_mainwindow.cpp moc_pdf.cpp
moc_mainwindow.cpp: pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h \
mainwindow.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
moc_pdf.cpp: /opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
pdf.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) pdf.h -o moc_pdf.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_clean:
-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
/opt/qtsdk-2009.03/qt/bin/uic mainwindow.ui -o ui_mainwindow.h
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_uic_clean
####### Compile
main.o: main.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
pdf.o: pdf.cpp pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pdf.o pdf.cpp
moc_mainwindow.o: moc_mainwindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
moc_pdf.o: moc_pdf.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pdf.o moc_pdf.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
all: Makefile $(TARGET)
$(TARGET): ui_mainwindow.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: MyPDF.pro /opt/qtsdk-2009.03/qt/mkspecs/linux-g++/qmake.conf /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl \
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl
$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
/opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf:
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf:
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl:
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl:
qmake: FORCE
@$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
dist:
@$(CHK_DIR_EXISTS) .tmp/MyPDF1.0.0 || $(MKDIR) .tmp/MyPDF1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.h pdf.h .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp pdf.cpp .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/MyPDF1.0.0/ && (cd `dirname .tmp/MyPDF1.0.0` && $(TAR) MyPDF1.0.0.tar MyPDF1.0.0 && $(COMPRESS) MyPDF1.0.0.tar) && $(MOVE) `dirname .tmp/MyPDF1.0.0`/MyPDF1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/MyPDF1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_mainwindow.cpp moc_pdf.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_mainwindow.cpp moc_pdf.cpp
moc_mainwindow.cpp: pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h \
mainwindow.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
moc_pdf.cpp: /opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
pdf.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) pdf.h -o moc_pdf.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_clean:
-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
/opt/qtsdk-2009.03/qt/bin/uic mainwindow.ui -o ui_mainwindow.h
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_uic_clean
####### Compile
main.o: main.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
pdf.o: pdf.cpp pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pdf.o pdf.cpp
moc_mainwindow.o: moc_mainwindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
moc_pdf.o: moc_pdf.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pdf.o moc_pdf.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
#7
自顶一下
#8
太长了顶
#1
发个makefile吧..找不到库
添加 -lpoppler了吗??
LD_LIB_PATH 添加库所在的路径
添加 -lpoppler了吗??
LD_LIB_PATH 添加库所在的路径
#2
楼上的,他这个是动态链接库
不能用-lpoppler这么调用吧,这是静态的方法
不能用-lpoppler这么调用吧,这是静态的方法
#3
贴一下你的编译命令行。
-lpoppler是动态链接。添加-L/usr/lib -lpoppler.
-lpoppler是动态链接。添加-L/usr/lib -lpoppler.
#4
纯友情UP 希望楼主早日解决问题
#5
makefile中已经添加了-L/lib/ -lpoppler,编译文件如下:
#############################################################################
# Makefile for building: MyPDF
# Generated by qmake (2.01a) (Qt 4.5.2) on: ?? 10? 15 20:55:36 2009
# Project: MyPDF.pro
# Template: app
# Command: /opt/qtsdk-2009.03/qt/bin/qmake -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/include/QtGui -I/opt/qtsdk-2009.03/qt/include -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/opt/qtsdk-2009.03/qt/lib
LIBS = $(SUBLIBS) -L/lib/ -lpoppler -L/opt/qtsdk-2009.03/qt/lib -lQtGui -L/opt/qtsdk-2009.03/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /opt/qtsdk-2009.03/qt/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
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
SOURCES = main.cpp \
mainwindow.cpp \
pdf.cpp moc_mainwindow.cpp \
moc_pdf.cpp
OBJECTS = main.o \
mainwindow.o \
pdf.o \
moc_mainwindow.o \
moc_pdf.o
DIST = /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
MyPDF.pro
QMAKE_TARGET = MyPDF
DESTDIR =
TARGET = MyPDF
first: all
####### Implicit rules
.SUFFIXES: .o .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 "$@" "$<"
#############################################################################
# Makefile for building: MyPDF
# Generated by qmake (2.01a) (Qt 4.5.2) on: ?? 10? 15 20:55:36 2009
# Project: MyPDF.pro
# Template: app
# Command: /opt/qtsdk-2009.03/qt/bin/qmake -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/include/QtGui -I/opt/qtsdk-2009.03/qt/include -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/opt/qtsdk-2009.03/qt/lib
LIBS = $(SUBLIBS) -L/lib/ -lpoppler -L/opt/qtsdk-2009.03/qt/lib -lQtGui -L/opt/qtsdk-2009.03/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /opt/qtsdk-2009.03/qt/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
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
SOURCES = main.cpp \
mainwindow.cpp \
pdf.cpp moc_mainwindow.cpp \
moc_pdf.cpp
OBJECTS = main.o \
mainwindow.o \
pdf.o \
moc_mainwindow.o \
moc_pdf.o
DIST = /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
MyPDF.pro
QMAKE_TARGET = MyPDF
DESTDIR =
TARGET = MyPDF
first: all
####### Implicit rules
.SUFFIXES: .o .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 "$@" "$<"
#6
####### Build rules
all: Makefile $(TARGET)
$(TARGET): ui_mainwindow.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: MyPDF.pro /opt/qtsdk-2009.03/qt/mkspecs/linux-g++/qmake.conf /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl \
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl
$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
/opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf:
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf:
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl:
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl:
qmake: FORCE
@$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
dist:
@$(CHK_DIR_EXISTS) .tmp/MyPDF1.0.0 || $(MKDIR) .tmp/MyPDF1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.h pdf.h .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp pdf.cpp .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/MyPDF1.0.0/ && (cd `dirname .tmp/MyPDF1.0.0` && $(TAR) MyPDF1.0.0.tar MyPDF1.0.0 && $(COMPRESS) MyPDF1.0.0.tar) && $(MOVE) `dirname .tmp/MyPDF1.0.0`/MyPDF1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/MyPDF1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_mainwindow.cpp moc_pdf.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_mainwindow.cpp moc_pdf.cpp
moc_mainwindow.cpp: pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h \
mainwindow.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
moc_pdf.cpp: /opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
pdf.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) pdf.h -o moc_pdf.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_clean:
-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
/opt/qtsdk-2009.03/qt/bin/uic mainwindow.ui -o ui_mainwindow.h
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_uic_clean
####### Compile
main.o: main.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
pdf.o: pdf.cpp pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pdf.o pdf.cpp
moc_mainwindow.o: moc_mainwindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
moc_pdf.o: moc_pdf.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pdf.o moc_pdf.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
all: Makefile $(TARGET)
$(TARGET): ui_mainwindow.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: MyPDF.pro /opt/qtsdk-2009.03/qt/mkspecs/linux-g++/qmake.conf /opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf \
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf \
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf \
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf \
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl \
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl
$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
/opt/qtsdk-2009.03/qt/mkspecs/common/g++.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/unix.conf:
/opt/qtsdk-2009.03/qt/mkspecs/common/linux.conf:
/opt/qtsdk-2009.03/qt/mkspecs/qconfig.pri:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_functions.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt_config.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/exclusive_builds.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_pre.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/debug.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/default_post.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/warn_on.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/qt.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/unix/thread.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/moc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/resources.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/uic.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/yacc.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/lex.prf:
/opt/qtsdk-2009.03/qt/mkspecs/features/include_source_dir.prf:
/opt/qtsdk-2009.03/qt/lib/libQtGui.prl:
/opt/qtsdk-2009.03/qt/lib/libQtCore.prl:
qmake: FORCE
@$(QMAKE) -spec /opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile MyPDF.pro
dist:
@$(CHK_DIR_EXISTS) .tmp/MyPDF1.0.0 || $(MKDIR) .tmp/MyPDF1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.h pdf.h .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp pdf.cpp .tmp/MyPDF1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/MyPDF1.0.0/ && (cd `dirname .tmp/MyPDF1.0.0` && $(TAR) MyPDF1.0.0.tar MyPDF1.0.0 && $(COMPRESS) MyPDF1.0.0.tar) && $(MOVE) `dirname .tmp/MyPDF1.0.0`/MyPDF1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/MyPDF1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_mainwindow.cpp moc_pdf.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_mainwindow.cpp moc_pdf.cpp
moc_mainwindow.cpp: pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h \
mainwindow.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
moc_pdf.cpp: /opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
pdf.h
/opt/qtsdk-2009.03/qt/bin/moc $(DEFINES) $(INCPATH) pdf.h -o moc_pdf.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_clean:
-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
/opt/qtsdk-2009.03/qt/bin/uic mainwindow.ui -o ui_mainwindow.h
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_uic_clean
####### Compile
main.o: main.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
pdf.o: pdf.cpp pdf.h \
/opt/poppler-0.11.3/qt4/src/poppler-qt4.h \
/opt/poppler-0.11.3/qt4/src/poppler-annotation.h \
/opt/poppler-0.11.3/qt4/src/poppler-export.h \
/opt/poppler-0.11.3/qt4/src/poppler-link.h \
/opt/poppler-0.11.3/qt4/src/poppler-optcontent.h \
/opt/poppler-0.11.3/qt4/src/poppler-page-transition.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pdf.o pdf.cpp
moc_mainwindow.o: moc_mainwindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
moc_pdf.o: moc_pdf.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pdf.o moc_pdf.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
#7
自顶一下
#8
太长了顶