I get a building error for my 5.5.1 Qt static build :
"undefined reference to 'qt_static_plugin_AccessibleFactory()'"
This error has occurred for all static builds after 5.3.
Here is my process of building Static Qt:
[GOTO "D:\Qt\Qt5.5.0\5.5\Src\qtbase\mkspecs" AND FIND COMPILER NAME.
LIKE "win32-g++"
Go TO THE qmake.conf file and edit QMAKE_LFLAGS line to:
QMAKE_LFLAGS = -static -static-libgcc
GO TO QT COMMAND PROMPT:
cd "D:\Qt\Qt5.5.1.static\5.5\Src\qtbase"
THEN:
set PATH=D:\Qt\Qt5.5.1.static\Tools\mingw492_32\bin;c:\Windows;c:\Windows\System32;D:\Python33;D:\strawberry\perl\bin;D:\Ruby200\bin
TO SHOW OPTIONS:
configure -h
THEN:
configure -static -release -platform win32-g++ -opengl desktop -opensource
THEN:
y
THEN:
mingw32-make sub-src
[GOTO "D:\Qt\Qt5.5.0\5.5\Src\qtbase\mkspecs" AND FIND COMPILER NAME.
LIKE "win32-g++"
Go TO THE qmake.conf file and edit QMAKE_LFLAGS line to:
QMAKE_LFLAGS = -static -static-libgcc
GO TO QT COMMAND PROMPT:
cd "D:\Qt\Qt5.5.1.static\5.5\Src\qtbase"
THEN:
set PATH=D:\Qt\Qt5.5.1.static\Tools\mingw492_32\bin;c:\Windows;c:\Windows\System32;D:\Python33;D:\strawberry\perl\bin;D:\Ruby200\bin
TO SHOW OPTIONS:
configure -h
THEN:
configure -static -release -platform win32-g++ -opengl desktop -opensource
THEN:
y
THEN:
mingw32-make sub-src
To copy to clipboard, switch view to plain text mode
I have used the above process for static builds on all versions prior to 5.4 without problems.
Here is my .pro file:
QT += core gui
QT += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = SH3DC
TEMPLATE = app
SOURCES += main.cpp
mainwindow.cpp
populate.cpp
batch.cpp
table.cpp
grabdata.cpp
savesdata.cpp
aboutdialog.cpp
forgotdialog.cpp
settingsdialog.cpp
HEADERS += mainwindow.h
populate.h
batch.h
table.h
grabdata.h
savesdata.h
aboutdialog.h
forgotdialog.h
settingsdialog.h
FORMS += mainwindow.ui
aboutdialog.ui
forgotdialog.ui
settingsdialog.ui
RESOURCES +=
images.qrc
RC_FILE = icon.rc
TRANSLATIONS = SH3DC_de_COMP.ts
QT += core gui
QT += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = SH3DC
TEMPLATE = app
SOURCES += main.cpp
mainwindow.cpp
populate.cpp
batch.cpp
table.cpp
grabdata.cpp
savesdata.cpp
aboutdialog.cpp
forgotdialog.cpp
settingsdialog.cpp
HEADERS += mainwindow.h
populate.h
batch.h
table.h
grabdata.h
savesdata.h
aboutdialog.h
forgotdialog.h
settingsdialog.h
FORMS += mainwindow.ui
aboutdialog.ui
forgotdialog.ui
settingsdialog.ui
RESOURCES +=
images.qrc
RC_FILE = icon.rc
TRANSLATIONS = SH3DC_de_COMP.ts
To copy to clipboard, switch view to plain text mode
Bookmarks