[Qt] Kompilacja pluginu mysql pod mingw

0

Cześć, kiedyś to zrobiłem i działało, ale kto by to pamiętał....
Na początku "przekształcam" libmysql.lib to libmysql.a

C:\MinGW\bin\reimp.exe -d libmysql.lib
dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a

Kopiuje go do F:\Qt\lib
Potem zdaje się tworzenie wszystkich Makefile i kompilacja:

F:\Qt\configure.exe -I "F:\mysql\include" -L "F:\mysql\lib\opt" -platform win32-g++ -debug-and-release -no-qt3support -qt-sql-mysql
make

I tu jest błąd, nie wiem dlaczego i co mam zrobić:

f:/Qt/src/corelib/io/qfile.cpp: In member function bool QFile::open(FILE*, QFlags<QIODevice::OpenModeFlag>)': f:/Qt/src/corelib/io/qfile.cpp:1068: ::ftello64' undeclared (first use here)
f:/Qt/src/corelib/io/qfile.cpp: In member function bool QFile::open(int, QFlags<QIODevice::OpenModeFlag>)': f:/Qt/src/corelib/io/qfile.cpp:1128: off64_t' undeclared (first use this
function)
f:/Qt/src/corelib/io/qfile.cpp (Each undeclared identifier is reported
only once for each function it appears in.)
mingw32-make[2]: *** [tmp/obj/release_shared/qfile.o] Error 1
mingw32-make[2]: Leaving directory F:/mysql/lib/opt/src/tools/bootstrap' mingw32-make[1]: *** [release] Error 2 mingw32-make[1]: Leaving directory F:/mysql/lib/opt/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

0

a czy przypadkiem nie masz zainstalowanego visual C++?
Może przed kompilacją skasuj zmienne środowiskowe:

set INCLUDE=
set LIB=

0

Owszem mam visuala, ale nie jestem pewien czy akurat w tym problem. Poza tym teraz zauważyłem, że po zaakceptowaniu licencji przy poleceniu configure mam coś takiego:

Do you accept the terms of the license?
y
All the required DirectShow/Direct3D files couldn't be found.
Make sure you have either the platform SDK AND the DirectShow SDK or the Windows SDK installed.
If you have the DirectShow SDK installed, please make sure that you have run the <path to SDK>\SetEnv.Cmd scri
pt.
vmr9.h not found
dshow.h not found
strmiids.lib not found
dmoguids.lib not found
msdmo.lib not found
d3d9.h not found
Environment:
INCLUDE=
Unset
LIB=
Unset
PATH=
F:\Qt\bin
C:\MinGW\bin
C:\WINDOWS\System32
C:\strawberry\perl
C:\strawberry\perl\bin

You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this so
ftware under the terms of the Lesser GNU LGPL version 2.1.
See F:/Qt3

or F:/QtL

include i lib są puste, brakuje mi natomiast jakiś nagłówków....
Czy miejsce z którego wydaje te polecenia ma jakieś znaczenie? Poprzednio wydawałem chyba wszystkie polecenia z F:\mysql\lib\opt , przeinstalowałem teraz wszystko od nowa, zachowałem tylko libmysql.a, gdy wydaje polecenie configure w katalogu F:\qt\src\plugins\sqldrivers\mysql to tworzy nagłówki, ale już przy tworzeniu qmake wywala masę błędów. Poprzednio wywalał mi się na poleceniu następnym, czyli make. Gdzie leży problem?

1 użytkowników online, w tym zalogowanych: 0, gości: 1