Ich habe es jetzt mal ausprobiert die QScintialla Bibliothek statisch einzubinden und bin grandios gescheitert.
Als Anhaltspunkt habe ich diesen Link verwendet:
http://doc.trolltech.com/4.3/plugins-ho ... ic-plugins
Ich bekomme u.a. folgende Fehlermeldung:
Code: Alles auswählen
D:\Qt\qt443\lib" -lmingw32 -lqtmain -lqscintilla2 -lqscintillaplugin -lQtGui
-lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lk
ernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
release/main.o(.text+0x249):main.cpp: undefined reference to `qt_plugin_instance_lqscintilla2()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\application.exe] Error 1
mingw32-make[1]: Leaving directory `D:/example-Qt4'
mingw32-make: *** [release] Error 2
Es scheint also etwas mit dem QScintilla Plugin nicht i.O. zu sein.
Die .pro Datei sieht wie folgt aus:
Code: Alles auswählen
CONFIG += release
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
RESOURCES = application.qrc
LIBS += -lqscintilla2
QTPLUGIN += qscintillaplugin
Die von mir erweiterte main von dem Beispiel:
Code: Alles auswählen
#include <QApplication>
#include <QtPlugin>
Q_IMPORT_PLUGIN(qscintilla2)
#include "mainwindow.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
QApplication app(argc, argv);
MainWindow mainWin;
mainWin.show();
return app.exec();
}
Die große Frage ist nun, was mache ich falsch?
Grüße