Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile error QSQLCIPHER driver plugin for Qt
QtWS25 Last Chance

Compile error QSQLCIPHER driver plugin for Qt

Scheduled Pinned Locked Moved General and Desktop
sqlcipherqsqlite
19 Posts 2 Posters 8.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 4 Offline
    4 Offline
    4j1th
    wrote on last edited by SGaist
    #1

    I use this link as a guide
    Step-by-step guide to build Qt-SQL-driver-plugin for SQLite-DB with SQLCipher-extension
    On step-6 Compile the QSQLCIPHER-driver-plugin for Qt, executing mingw32-make I got an error message.

    I can't understand the error:

    C:\Qt\Qt5.4.2\5.4\Src\qtbase\src\plugins\sqldrivers\sqlcipher>mingw32-make
    mingw32-make -f Makefile.Release all
    mingw32-make[1]: Entering directory 'C:/Qt/Qt5.4.2/5.4/Src/qtbase/src/plugins/sq
    ldrivers/sqlcipher'
    mingw32-make[1]: *** No rule to make target '.moc/release/smain.moc', needed by
    '.obj/release/smain.o'.  Stop.
    mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.4.2/5.4/Src/qtbase/src/plugins/sql
    drivers/sqlcipher'
    makefile:38: recipe for target 'release-all' failed
    mingw32-make: *** [release-all] Error 2
    

    Makefile :

    #############################################################################
    # Makefile for building: qsqlcipher
    # Generated by qmake (3.0) (Qt 5.4.2)
    # Project:  sqlcipher.pro
    # Template: lib
    # Command: C:/Qt/Qt5.4.2/5.4/mingw491_32/bin/qmake.exe -o Makefile sqlcipher.pro
    #############################################################################
    
    MAKEFILE      = Makefile
    
    first: all
    install: release-install debug-install 
    uninstall: release-uninstall debug-uninstall 
    QMAKE         = C:/Qt/Qt5.4.2/5.4/mingw491_32/bin/qmake.exe
    DEL_FILE      = rm -f
    CHK_DIR_EXISTS= test -d
    MKDIR         = mkdir -p
    COPY          = cp -f
    COPY_FILE     = cp -f
    COPY_DIR      = cp -f -R
    INSTALL_FILE  = cp -f
    INSTALL_PROGRAM = cp -f
    INSTALL_DIR   = $(COPY_DIR)
    DEL_FILE      = rm -f
    SYMLINK       = 
    DEL_DIR       = rmdir
    MOVE          = mv -f
    SUBTARGETS    =  \
            release \
            debug
    
    
    release: FORCE
        $(MAKE) -f $(MAKEFILE).Release
    release-make_first: FORCE
        $(MAKE) -f $(MAKEFILE).Release 
    release-all: FORCE
        $(MAKE) -f $(MAKEFILE).Release all
    release-clean: FORCE
        $(MAKE) -f $(MAKEFILE).Release clean
    release-distclean: FORCE
        $(MAKE) -f $(MAKEFILE).Release distclean
    release-install: FORCE
        $(MAKE) -f $(MAKEFILE).Release install
    release-uninstall: FORCE
        $(MAKE) -f $(MAKEFILE).Release uninstall
    debug: FORCE
        $(MAKE) -f $(MAKEFILE).Debug
    debug-make_first: FORCE
        $(MAKE) -f $(MAKEFILE).Debug 
    debug-all: FORCE
        $(MAKE) -f $(MAKEFILE).Debug all
    debug-clean: FORCE
        $(MAKE) -f $(MAKEFILE).Debug clean
    debug-distclean: FORCE
        $(MAKE) -f $(MAKEFILE).Debug distclean
    debug-install: FORCE
        $(MAKE) -f $(MAKEFILE).Debug install
    debug-uninstall: FORCE
        $(MAKE) -f $(MAKEFILE).Debug uninstall
    
    Makefile: sqlcipher.pro ../../../../.qmake.conf ../../../../mkspecs/win32-g++/qmake.conf ../../../../mkspecs/features/spec_pre.prf \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qdevice.pri \
            ../../../../mkspecs/features/device_config.prf \
            ../../../../mkspecs/common/shell-unix.conf \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qconfig.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axbase.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axbase_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axcontainer.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axcontainer_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axserver.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axserver_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bluetooth.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bluetooth_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bootstrap_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_clucene_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_concurrent.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_concurrent_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_core.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_core_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_dbus.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_dbus_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_declarative.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_declarative_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designer.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designer_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designercomponents_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_enginio.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_enginio_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_gui.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_gui_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_help.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_help_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_location.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_location_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimedia.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimedia_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimediawidgets.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_network.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_network_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_nfc.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_nfc_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_opengl.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_opengl_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_openglextensions.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_openglextensions_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_platformsupport_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_positioning.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_positioning_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_printsupport.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_printsupport_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qml.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qml_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmldevtools_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmltest.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmltest_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quick.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quick_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickparticles_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickwidgets.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickwidgets_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_script.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_script_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_scripttools.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_scripttools_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sensors.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sensors_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_serialport.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_serialport_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sql.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sql_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_svg.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_svg_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_testlib.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_testlib_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_uitools.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_uitools_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webchannel.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webchannel_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkit.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkit_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkitwidgets.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkitwidgets_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_websockets.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_websockets_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webview.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webview_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_widgets.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_widgets_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_winextras.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_winextras_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xml.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xml_private.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xmlpatterns.pri \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri \
            ../../../../mkspecs/modules-inst/qt_plugin_qsqlcipher.pri \
            ../../../../mkspecs/modules/qt_plugin_qsqlcipher.pri \
            ../../../../mkspecs/features/qt_functions.prf \
            ../../../../mkspecs/features/qt_config.prf \
            ../../../../mkspecs/features/win32/qt_config.prf \
            ../../../../mkspecs/win32-g++/qmake.conf \
            ../../../../mkspecs/features/spec_post.prf \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qmodule.pri \
            ../../../../mkspecs/features/qt_build_config.prf \
            ../../../../.qmake.conf \
            ../../../../mkspecs/features/exclusive_builds.prf \
            ../../../../mkspecs/features/default_pre.prf \
            ../../../../mkspecs/features/win32/default_pre.prf \
            ../../../3rdparty/sqlcipher.pri \
            ../../../sql/drivers/sqlcipher/qsql_sqlite.pri \
            ../../../../mkspecs/features/qt_build_paths.prf \
            ../../../../mkspecs/features/qt_targets.prf \
            ../../../../mkspecs/features/qt_common.prf \
            ../../../../mkspecs/features/qt_plugin.prf \
            ../qsqldriverbase.pri \
            ../../../../mkspecs/features/resolve_config.prf \
            ../../../../mkspecs/features/exclusive_builds_post.prf \
            ../../../../mkspecs/features/default_post.prf \
            ../../../../mkspecs/features/c++11.prf \
            ../../../../mkspecs/features/cmake_functions.prf \
            ../../../../mkspecs/features/create_cmake.prf \
            ../../../../mkspecs/features/qt_example_installs.prf \
            ../../../../mkspecs/features/exceptions_off.prf \
            ../../../../mkspecs/features/qt_docs_targets.prf \
            ../../../../mkspecs/features/win32/rtti.prf \
            ../../../../mkspecs/features/precompile_header.prf \
            ../../../../mkspecs/features/warn_on.prf \
            ../../../../mkspecs/features/qt.prf \
            ../../../../mkspecs/features/resources.prf \
            ../../../../mkspecs/features/moc.prf \
            ../../../../mkspecs/features/win32/windows.prf \
            ../../../../mkspecs/features/testcase_targets.prf \
            ../../../../mkspecs/features/yacc.prf \
            ../../../../mkspecs/features/lex.prf \
            sqlcipher.pro \
            ../../../../mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/lib/Qt5Sql.prl \
            C:/Qt/Qt5.4.2/5.4/mingw491_32/lib/Qt5Core.prl
        $(QMAKE) -o Makefile sqlcipher.pro
    ../../../../mkspecs/features/spec_pre.prf:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qdevice.pri:
    ../../../../mkspecs/features/device_config.prf:
    ../../../../mkspecs/common/shell-unix.conf:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qconfig.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axbase.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axbase_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axcontainer.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axcontainer_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axserver.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_axserver_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bluetooth.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bluetooth_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_bootstrap_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_clucene_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_concurrent.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_concurrent_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_core.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_core_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_dbus.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_dbus_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_declarative.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_declarative_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designer.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designer_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_designercomponents_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_enginio.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_enginio_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_gui.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_gui_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_help.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_help_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_location.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_location_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimedia.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimedia_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimediawidgets.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_network.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_network_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_nfc.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_nfc_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_opengl.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_opengl_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_openglextensions.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_openglextensions_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_platformsupport_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_positioning.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_positioning_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_printsupport.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_printsupport_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qml.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qml_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmldevtools_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmltest.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qmltest_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quick.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quick_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickparticles_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickwidgets.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_quickwidgets_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_script.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_script_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_scripttools.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_scripttools_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sensors.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sensors_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_serialport.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_serialport_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sql.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_sql_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_svg.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_svg_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_testlib.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_testlib_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_uitools.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_uitools_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webchannel.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webchannel_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkit.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkit_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkitwidgets.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webkitwidgets_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_websockets.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_websockets_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webview.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_webview_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_widgets.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_widgets_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_winextras.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_winextras_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xml.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xml_private.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xmlpatterns.pri:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri:
    ../../../../mkspecs/modules-inst/qt_plugin_qsqlcipher.pri:
    ../../../../mkspecs/modules/qt_plugin_qsqlcipher.pri:
    ../../../../mkspecs/features/qt_functions.prf:
    ../../../../mkspecs/features/qt_config.prf:
    ../../../../mkspecs/features/win32/qt_config.prf:
    ../../../../mkspecs/win32-g++/qmake.conf:
    ../../../../mkspecs/features/spec_post.prf:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/mkspecs/qmodule.pri:
    ../../../../mkspecs/features/qt_build_config.prf:
    ../../../../.qmake.conf:
    ../../../../mkspecs/features/exclusive_builds.prf:
    ../../../../mkspecs/features/default_pre.prf:
    ../../../../mkspecs/features/win32/default_pre.prf:
    ../../../3rdparty/sqlcipher.pri:
    ../../../sql/drivers/sqlcipher/qsql_sqlite.pri:
    ../../../../mkspecs/features/qt_build_paths.prf:
    ../../../../mkspecs/features/qt_targets.prf:
    ../../../../mkspecs/features/qt_common.prf:
    ../../../../mkspecs/features/qt_plugin.prf:
    ../qsqldriverbase.pri:
    ../../../../mkspecs/features/resolve_config.prf:
    ../../../../mkspecs/features/exclusive_builds_post.prf:
    ../../../../mkspecs/features/default_post.prf:
    ../../../../mkspecs/features/c++11.prf:
    ../../../../mkspecs/features/cmake_functions.prf:
    ../../../../mkspecs/features/create_cmake.prf:
    ../../../../mkspecs/features/qt_example_installs.prf:
    ../../../../mkspecs/features/exceptions_off.prf:
    ../../../../mkspecs/features/qt_docs_targets.prf:
    ../../../../mkspecs/features/win32/rtti.prf:
    ../../../../mkspecs/features/precompile_header.prf:
    ../../../../mkspecs/features/warn_on.prf:
    ../../../../mkspecs/features/qt.prf:
    ../../../../mkspecs/features/resources.prf:
    ../../../../mkspecs/features/moc.prf:
    ../../../../mkspecs/features/win32/windows.prf:
    ../../../../mkspecs/features/testcase_targets.prf:
    ../../../../mkspecs/features/yacc.prf:
    ../../../../mkspecs/features/lex.prf:
    sqlcipher.pro:
    ../../../../mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/lib/Qt5Sql.prl:
    C:/Qt/Qt5.4.2/5.4/mingw491_32/lib/Qt5Core.prl:
    qmake: FORCE
        @$(QMAKE) -o Makefile sqlcipher.pro
    
    qmake_all: FORCE
    
    make_first: release-make_first debug-make_first FORCE
    all: release-all debug-all FORCE
    clean: release-clean debug-clean FORCE
        -$(DEL_FILE) C:/Qt/Qt5.4.2/5.4/Src/qtbase/plugins/sqldrivers/libqsqlcipher.a
    distclean: release-distclean debug-distclean FORCE
        -$(DEL_FILE) Makefile
    
    html_docs:
        $(MAKE) -f $(MAKEFILE) prepare_docs && $(MAKE) -f $(MAKEFILE) generate_docs
    
    docs:
        $(MAKE) -f $(MAKEFILE) html_docs && $(MAKE) -f $(MAKEFILE) qch_docs
    
    release-install_html_docs:
        $(MAKE) -f $(MAKEFILE).Release install_html_docs
    install_html_docs: release-install_html_docs
    
    release-uninstall_html_docs:
        $(MAKE) -f $(MAKEFILE).Release uninstall_html_docs
    uninstall_html_docs: release-uninstall_html_docs
    
    release-install_qch_docs:
        $(MAKE) -f $(MAKEFILE).Release install_qch_docs
    install_qch_docs: release-install_qch_docs
    
    release-uninstall_qch_docs:
        $(MAKE) -f $(MAKEFILE).Release uninstall_qch_docs
    uninstall_qch_docs: release-uninstall_qch_docs
    
    release-install_docs:
        $(MAKE) -f $(MAKEFILE).Release install_docs
    install_docs: release-install_docs
    
    release-uninstall_docs:
        $(MAKE) -f $(MAKEFILE).Release uninstall_docs
    uninstall_docs: release-uninstall_docs
    
    release-qch_docs:
        $(MAKE) -f $(MAKEFILE).Release qch_docs
    qch_docs: release-qch_docs
    
    release-prepare_docs:
        $(MAKE) -f $(MAKEFILE).Release prepare_docs
    prepare_docs: release-prepare_docs
    
    release-generate_docs:
        $(MAKE) -f $(MAKEFILE).Release generate_docs
    generate_docs: release-generate_docs
    
    release-mocclean:
        $(MAKE) -f $(MAKEFILE).Release mocclean
    debug-mocclean:
        $(MAKE) -f $(MAKEFILE).Debug mocclean
    mocclean: release-mocclean debug-mocclean
    
    release-mocables:
        $(MAKE) -f $(MAKEFILE).Release mocables
    debug-mocables:
        $(MAKE) -f $(MAKEFILE).Debug mocables
    mocables: release-mocables debug-mocables
    
    check: first
    FORCE:
    
    $(MAKEFILE).Release: Makefile
    $(MAKEFILE).Debug: Makefile
    

    [edit: Fixed coding tags: ```SGaist]

    Pardon my English
    Thank you.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @4j1th said:

      did you run qmake first ?
      (/path/qmake.exe -o Makefile sqlcipher.pro)

      It seems to me - it whines about now having the smain.moc files
      which should be created by moc.exe normally triggered
      by Creator/qmake.

      http://doc.qt.io/qt-4.8/moc.html

      You could try to open the sqlcipher.pro and "make it" and see if that produces the .moc file.

      Did not read all of the step-by-step so I could be very wrong :)

      4 1 Reply Last reply
      1
      • mrjjM mrjj

        @4j1th said:

        did you run qmake first ?
        (/path/qmake.exe -o Makefile sqlcipher.pro)

        It seems to me - it whines about now having the smain.moc files
        which should be created by moc.exe normally triggered
        by Creator/qmake.

        http://doc.qt.io/qt-4.8/moc.html

        You could try to open the sqlcipher.pro and "make it" and see if that produces the .moc file.

        Did not read all of the step-by-step so I could be very wrong :)

        4 Offline
        4 Offline
        4j1th
        wrote on last edited by 4j1th
        #3

        @mrjj yes I did, the following is what I done to compile

        • Open Qt-command line
          C:\Windows\System32\cmd.exe /A /Q /K C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\qtenv2.bat

        • Execute the following commands:
          cd C:\Qt\Qt5.4.0\5.4\Src\qtbase\src\pluins\sqldrivers\sqlcipher
          qmake
          mingw32-make

        qmake don't produce any '.moc' file there is a file 'smain.cpp' which I created

        Pardon my English
        Thank you.

        1 Reply Last reply
        0
        • 4 Offline
          4 Offline
          4j1th
          wrote on last edited by 4j1th
          #4

          I got a clue when running qmake, it don't make the smain.moc file in the dir .moc/release, so run qmke -d option at the end of execution I got the message 'DEBUG 1: C:/Qt/Qt5.4.2/5.4/Src/qtbase/mkspecs/features/moc.prf:38: flow control
          statement 'return', aborting block'

          Pardon my English
          Thank you.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Ok, so it should have made it,
            Seems like it bombs out for some reason.

            Searching for
            "flow control statement 'return', aborting block'"

            Gives nothing.

            Maybe you get lucky at qtcentre.org

            Sorry, I have no clue what it dont like :(

            4 1 Reply Last reply
            0
            • mrjjM mrjj

              Ok, so it should have made it,
              Seems like it bombs out for some reason.

              Searching for
              "flow control statement 'return', aborting block'"

              Gives nothing.

              Maybe you get lucky at qtcentre.org

              Sorry, I have no clue what it dont like :(

              4 Offline
              4 Offline
              4j1th
              wrote on last edited by 4j1th
              #6

              @mrjj Thank you,

              bugreports.qt.io

              do you think this bug report has something to do with this error

              Pardon my English
              Thank you.

              mrjjM 1 Reply Last reply
              0
              • 4 4j1th

                @mrjj Thank you,

                bugreports.qt.io

                do you think this bug report has something to do with this error

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @4j1th
                Hi
                Very hard to say from the txt file
                For some reason it wont let me go back and view the actual bug report (33795)

                This evening Im going to try the step-by-step in a virtual machine to see if im more lucky or get same error.

                4 1 Reply Last reply
                0
                • mrjjM mrjj

                  @4j1th
                  Hi
                  Very hard to say from the txt file
                  For some reason it wont let me go back and view the actual bug report (33795)

                  This evening Im going to try the step-by-step in a virtual machine to see if im more lucky or get same error.

                  4 Offline
                  4 Offline
                  4j1th
                  wrote on last edited by 4j1th
                  #8

                  @mrjj Thank you very very much, please let me know the result

                  Pardon my English
                  Thank you.

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi
                    Got same result as you in step 6.
                    I used 5.4.0 as in tut.

                    After qmake which says nothing no moc file is
                    generated and mingw32-make fails and no qsqlcipher.dll is produced.

                    I then tried to create a moc by "moc.exe smain.cpp > smain.moc" and then copy that around but
                    either i did not hit the right directory or its not ok to create it like that. Still same error.

                    One should think that smain.cpp that do #include "smain.moc" should find it in same folder but
                    maybe I should have tried with full path to the file.

                    I have a feeling it is something really simple that will make us go facepalm once discovered.

                    4 1 Reply Last reply
                    1
                    • mrjjM mrjj

                      Hi
                      Got same result as you in step 6.
                      I used 5.4.0 as in tut.

                      After qmake which says nothing no moc file is
                      generated and mingw32-make fails and no qsqlcipher.dll is produced.

                      I then tried to create a moc by "moc.exe smain.cpp > smain.moc" and then copy that around but
                      either i did not hit the right directory or its not ok to create it like that. Still same error.

                      One should think that smain.cpp that do #include "smain.moc" should find it in same folder but
                      maybe I should have tried with full path to the file.

                      I have a feeling it is something really simple that will make us go facepalm once discovered.

                      4 Offline
                      4 Offline
                      4j1th
                      wrote on last edited by
                      #10

                      @mrjj Thank you for your help and time,

                      what do you think, is it a bug in the qmake ?

                      Pardon my English
                      Thank you.

                      mrjjM 1 Reply Last reply
                      0
                      • 4 4j1th

                        @mrjj Thank you for your help and time,

                        what do you think, is it a bug in the qmake ?

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @4j1th
                        Np, i can see the benefit of encrypted sqlite.

                        Not sure it is a bug in qmake.
                        More likely something with the PRI/PRO file but it does seem like qmake just sort of bails out.

                        Im going now for a B.day but when i get home I going to try one more time. If same result it must be
                        an build error.

                        1 Reply Last reply
                        1
                        • mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Ok, did it once more after some beers and it build ?!
                          No errors.

                          I have shared the DLLs (debug/release) and the A files here:
                          https://www.dropbox.com/s/k1jm5qv7mvdyyzn/sqldrivers.zip?dl=0

                          Cheers :)

                          4 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            Ok, did it once more after some beers and it build ?!
                            No errors.

                            I have shared the DLLs (debug/release) and the A files here:
                            https://www.dropbox.com/s/k1jm5qv7mvdyyzn/sqldrivers.zip?dl=0

                            Cheers :)

                            4 Offline
                            4 Offline
                            4j1th
                            wrote on last edited by
                            #13

                            @mrjj congrats, well done

                            did you compile a project with this lib ?

                            Pardon my English
                            Thank you.

                            mrjjM 1 Reply Last reply
                            0
                            • 4 4j1th

                              @mrjj congrats, well done

                              did you compile a project with this lib ?

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @4j1th

                              No I did not do the last part of the tut.
                              Maybe tonight.

                              4 1 Reply Last reply
                              0
                              • mrjjM mrjj

                                @4j1th

                                No I did not do the last part of the tut.
                                Maybe tonight.

                                4 Offline
                                4 Offline
                                4j1th
                                wrote on last edited by
                                #15

                                @mrjj copied the dlls to plugin/sqldriver dir and build a test project but got an error

                                ("QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
                                QSqlDatabase: QSQLCIPHER driver not loaded
                                QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL
                                7
                                QSqlQuery::exec: database not open
                                QSqlQuery::exec: database not open
                                QSqlQuery::exec: database not open
                                Press <RETURN> to close this window...
                                

                                Pardon my English
                                Thank you.

                                mrjjM 1 Reply Last reply
                                0
                                • 4 4j1th

                                  @mrjj copied the dlls to plugin/sqldriver dir and build a test project but got an error

                                  ("QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
                                  QSqlDatabase: QSQLCIPHER driver not loaded
                                  QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL
                                  7
                                  QSqlQuery::exec: database not open
                                  QSqlQuery::exec: database not open
                                  QSqlQuery::exec: database not open
                                  Press <RETURN> to close this window...
                                  
                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  @4j1th
                                  Ok so its not listed at all :(
                                  I will try it too and let you know.

                                  mrjjM 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    @4j1th
                                    Ok so its not listed at all :(
                                    I will try it too and let you know.

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    Hi, I did the rest of the tut and
                                    it did produce an encrypted db.

                                    but, then i tried to use the test .pro and main.cpp i got same
                                    error "driver not loaded"

                                    I tried to find a fix but seems not to see the new dlls.
                                    Not even if you make a Deploy folder with all the needed files.

                                    I think its just a path problem like here
                                    http://stackoverflow.com/questions/14362881/qt-mysql-cant-load-plugin-driver-qlibrary-qpluginloader-successfuly-loaded-qs

                                    But I had time to try load the DLL which works. Did not try the add path etc.

                                    4 1 Reply Last reply
                                    0
                                    • mrjjM mrjj

                                      Hi, I did the rest of the tut and
                                      it did produce an encrypted db.

                                      but, then i tried to use the test .pro and main.cpp i got same
                                      error "driver not loaded"

                                      I tried to find a fix but seems not to see the new dlls.
                                      Not even if you make a Deploy folder with all the needed files.

                                      I think its just a path problem like here
                                      http://stackoverflow.com/questions/14362881/qt-mysql-cant-load-plugin-driver-qlibrary-qpluginloader-successfuly-loaded-qs

                                      But I had time to try load the DLL which works. Did not try the add path etc.

                                      4 Offline
                                      4 Offline
                                      4j1th
                                      wrote on last edited by
                                      #18

                                      @mrjj I tried the solution, it doesn't work.

                                      And I tried the sqlite default driver qt provided it's works perfectly.

                                      Pardon my English
                                      Thank you.

                                      mrjjM 1 Reply Last reply
                                      0
                                      • 4 4j1th

                                        @mrjj I tried the solution, it doesn't work.

                                        And I tried the sqlite default driver qt provided it's works perfectly.

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        @4j1th
                                        Ok, very strange.
                                        Im out of ideas why it will not load as driver.

                                        The .a +.exe could produce a encrypted db and the dll can be loaded as DLL but
                                        for some reason, it wont load as a sql driver.

                                        So close and yet nothing :(

                                        1 Reply Last reply
                                        0

                                        • Login

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Search
                                        • Get Qt Extensions
                                        • Unsolved