Am 05.02.2017 um 19:33 schrieb Thiago Macieira:
[...] I was assuming that you tried to compile everything and it succeeded
up until the point in the build that it tries to compile sqlite. Is that not
the case?
No, not at all - I've used the Qt installer. I've never dared to compile Qt myself. Sorry if I should have stated that more explicitly in my original post than I did, I tried to be brief and concise.
If it's not, explain what you're trying to do.
I want to compile a lib ("CuteEntityManager") that I use in my app. I use QtCreator 4.2.1 with pretty much the default settings. Compiling the lib works perfectly with the Qt5.7.1 kit, but with Qt5.8.0 there is the error message below. The compile output - in its entirety - is:

%
20:07:29: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" -j9

cd src/ && ( test -e Makefile || C:/Qt/5.8/mingw53_32/bin/qmake.exe -o Makefile C:/Users/SeDi/cpp/cit2/classintouch-2/ClassInTouch2/libs/entitymanager/src/src.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug ) && C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile

mingw32-make[1]: Entering directory 'C:/Users/SeDi/cpp/cit2/classintouch-2/ClassInTouch2/libs/build-EntityManager-Desktop_Qt_5_8_0_MinGW_32bit2-Debug/src'

C:/Qt/5.8/mingw53_32/bin/qmake.exe -o Makefile ../../entitymanager/src/src.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug

Project ERROR: Could not find feature posix_fallocate.

Makefile:218: recipe for target 'Makefile' failed

mingw32-make[1]: Leaving directory 'C:/Users/SeDi/cpp/cit2/classintouch-2/ClassInTouch2/libs/build-EntityManager-Desktop_Qt_5_8_0_MinGW_32bit2-Debug/src'

mingw32-make[1]: *** [Makefile] Error 3

Makefile:40: recipe for target 'sub-src-make_first-ordered' failed

mingw32-make: *** [sub-src-make_first-ordered] Error 2

20:07:31: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.

Error while building/deploying project EntityManager (kit: Desktop Qt 5.8.0 MinGW 32bit2)

When executing step "Make"

20:07:31: Elapsed time: 00:02.

%

I have tracked the problem down to sqlite.pri. There has been one single change in it from 5.7.1 to 5.8.0 - this is line 4:
%qtConfig(posix_fallocate): DEFINES += HAVE_POSIX_FALLOCATE=1%
If I deactivate this line in sqlite.pri, everything compiles and works.

In 5.7.1 the line originally was:
%contains(QT_CONFIG, posix_fallocate):DEFINES += HAVE_POSIX_FALLOCATE=1%
And this still works well under 5.7.1, but copy-pasting the line into 5.8.0 instead of the new one doesn't do the trick either. In 5.8.0, only commenting out line 4 works.

So something else must have changed between versions, that now seems to keep the compiler(?) from finding the "posix_fallocate" feature, whose very existence I had never been aware of before.

Thanks,
Sebastian



--
http://www.classintouch.de  - Tablet-Software für Lehrer

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to