Hello,
I hope to create a *.pc file for my package. Is there a tool or command to create with QT?
Thanks!
Hello,
I hope to create a *.pc file for my package. Is there a tool or command to create with QT?
Thanks!
Which file type is *.pc? Or did you mean *.rc?
Best Regards
NoRulez
Ok, Thanks!
Then do you know how to create from debian package?
Wrong.
Try this:
Qt Code:
TEMPLATE = lib CONFIG += create_pc HEADERS = thing.h SOURCES = thing.cpp headers.path = /usr/include/yourlib headers.files = thing.h target.path = /usr/lib QMAKE_PKGCONFIG_NAME = yourlibname QMAKE_PKGCONFIG_DESCRIPTION = yourlib description QMAKE_PKGCONFIG_LIBDIR = $$target.path QMAKE_PKGCONFIG_INCDIR = $$headers.path QMAKE_PKGCONFIG_DESTDIR = pkgconfigTo copy to clipboard, switch view to plain text mode
Sorry. I forgot it:
Qt Code:
TARGET = yourlibname INSTALLS += target headersTo copy to clipboard, switch view to plain text mode
TEMPLATE = lib
INSTALLS += target headers
TARGET =
DEPENDPATH += .
INCLUDEPATH += . \
/usr/include/myIncludes
LIBS += -lmylibs
# Input
HEADERS += *.h
SOURCES += *.cpp
CONFIG += create_pc
headers.path = /usr/include/spUtility
headers.files = spUtility.h
target.path = /usr/lib
QMAKE_PKGCONFIG_NAME = spUtility
QMAKE_PKGCONFIG_DESCRIPTION = spUtility is the utility lib for wrt service providers
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
my .pro file looks like above , but in my current directory , i can see pkgconfig foder empty and i get an error while doing make install like this :
install -m 644 -p "pkgconfig//utilities.pc" "/usr/lib/pkgconfig/utilities.pc"
install: cannot stat `pkgconfig//utilities.pc': No such file or directory
make: [install_target] Error 1 (ignored)
install -m 644 -p /home/rakesh/trunk/wrt/serviceproviders/utilities/spUtility.h /usr/include/spUtility/
Bookmarks