[Qt-interest] Problems with Qt resource file on WIndows

David Boosalis david.boosalis at gmail.com
Sat Dec 5 19:13:08 CET 2009


I have a resource file that is part of a Qt library build. On Linux it seems
to work just fine, but on Windows the resource file never seems to get built
by Qt's rcc compiler.  I am building static libraries on Windows and shared
libraries on Linux.

The resource files in the main application do get built, so I think I am
using it correctly.  I s there any reason why I can't build resources in a
Windows static library.

My project file looks like this:

TEMPLATE = lib
target =   gui
DEPENDPATH += .


INCLUDEPATH += . ../include
QT += network gui
# Input
RESOURCES += resourceGui.qrc
HEADERS +=  MyHeaders.....
targ_headers.files = $$HEADERS
targ_headers.path = ../include
SOURCES += mySouces....

INSTALLS += target targ_headers

unix {
 message("Unix Compile of Data Library")
 QMAKE_STRIP = echo
 DESTDIR = lib
 target.path = $$(HOME)/lib
 CONFIG +=release sql network
 OBJECTS_DIR = .obj
 MOC_DIR = .moc
}

win32 {
    message("Windows Compile")
    target.path = ../lib
    CONFIG += release staticlib sql network
    OBJECTS_DIR = obj
    MOC_DIR = moc
}


Any advise here very much appreciated.
Thanks
David

Oh I am using Qt 4.6 beta ( will upgrade to the release soon - but I doubt
that's my problem)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091205/1d848ddf/attachment.html 


More information about the Qt-interest-old mailing list