I built Qt 5.1 from source code with these options -->
configure -release -platform win32-msvc2012 -nomake demos -nomake examples -nomake tests -opengl desktop -qt-sql-sqlite -audio-backend -static -opensource -ltcg
configure -release -platform win32-msvc2012 -nomake demos -nomake examples -nomake tests -opengl desktop -qt-sql-sqlite -audio-backend -static -opensource -ltcg
To copy to clipboard, switch view to plain text mode
Then I built my own program using static librarys but when I test the program it doesnt play sound or showing images !!!
my pro file :
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-16T15:55:35
#
#-------------------------------------------------
QT += core gui multimedia sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += static
TARGET = Award
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
menuItems.cpp \
option.cpp \
random.cpp \
randompic.cpp \
screen.cpp \
soundhandler.cpp \
database.cpp \
editinformation.cpp \
informationreview.cpp \
option_color.cpp \
animationscreen.cpp \
speaklabel.cpp \
setProperties.cpp
HEADERS += mainwindow.h \
option.h \
random.h \
randompic.h \
screen.h \
soundhandler.h \
database.h \
editinformation.h \
informationreview.h \
animationscreen.h \
speaklabel.h
FORMS += mainwindow.ui \
option.ui \
editinformation.ui \
informationreview.ui
RESOURCES += \
myRes.qrc
RC_FILE = myapp.rc
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-16T15:55:35
#
#-------------------------------------------------
QT += core gui multimedia sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += static
TARGET = Award
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
menuItems.cpp \
option.cpp \
random.cpp \
randompic.cpp \
screen.cpp \
soundhandler.cpp \
database.cpp \
editinformation.cpp \
informationreview.cpp \
option_color.cpp \
animationscreen.cpp \
speaklabel.cpp \
setProperties.cpp
HEADERS += mainwindow.h \
option.h \
random.h \
randompic.h \
screen.h \
soundhandler.h \
database.h \
editinformation.h \
informationreview.h \
animationscreen.h \
speaklabel.h
FORMS += mainwindow.ui \
option.ui \
editinformation.ui \
informationreview.ui
RESOURCES += \
myRes.qrc
RC_FILE = myapp.rc
To copy to clipboard, switch view to plain text mode
Command that I used for building program using visual studio command prompt -->
cd C:\Users\Omid\Desktop\Award\Award\
C:\Qt\vsStatic\qtbase\bin\qmake.exe C:\Users\Omid\Desktop\Award\Award\Award.pro
nmake
cd C:\Users\Omid\Desktop\Award\Award\
C:\Qt\vsStatic\qtbase\bin\qmake.exe C:\Users\Omid\Desktop\Award\Award\Award.pro
nmake
To copy to clipboard, switch view to plain text mode
How can I use multimedia and jpeg plugins in static build ?!!
Bookmarks