"error: assigning to 'boolean' from incompatible type 'bool'" when running make (trying to fix QMYSQL)



  • Hello all,

    I am trying to configure Qt to work with MySQL on Mac OSX Mojave 10.14.5.

    Initially, I installed using the Open Source Online installer, and everything seemed to set up correctly. I am able to run sample projects from the Qt Creator including the ones which use SQLLite.
    However, when attempting to use QMYSQL it gives me the dreaded "QMYSQL driver not loaded" error. So, I went to google solutions. I've been trying all sorts of things for over a day now; probably too many to list.

    A couple times I have tried building from source. Once after uninstalling Qt, and once with Qt already installed by the Online Installer.
    Specifically I followed these directions:
    https://doc.qt.io/qt-5/macos-building.html
    on the tar file grabbed from here:
    https://download.qt.io/archive/qt/5.12/5.12.0/single/

    Both times, after unzipping and running configure, I ran make and, after waiting over ten minutes (with lots of output), received this error:

    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=c++1y -fapplication-extension  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Winconsistent-missing-override -Wobjc-interface-ivars -Wobjc-method-access -Wobjc-multiple-method-names -Werror=unguarded-availability -Werror=unguarded-availability-new -Werror=unsupported-availability-guard -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include/QtGui/5.12.0 -I../../../../include/QtGui/5.12.0/QtGui -I../../../../include -I../../../../include/QtGui -I../../../../include/QtCore/5.12.0 -I../../../../include/QtCore/5.12.0/QtCore -I../../../../include/QtCore -I.moc/debug -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../mkspecs/macx-clang -F/Users/ebm/Downloads/qt-everywhere-src-5.12.0/qtbase/lib -o .obj/debug/qjpeghandler.o qjpeghandler.cpp
    qjpeghandler.cpp:576:37: error: assigning to 'boolean' from incompatible type 'bool'
                cinfo.optimize_coding = true;
                                        ^~~~
    1 error generated.
    make[6]: *** [.obj/debug/qjpeghandler.o] Error 1
    make[5]: *** [debug-all] Error 2
    make[4]: *** [sub-jpeg-make_first] Error 2
    make[3]: *** [sub-imageformats-make_first] Error 2
    make[2]: *** [sub-plugins-make_first] Error 2
    make[1]: *** [sub-src-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2
    
    

    I couldn't find a single instance of this error anywhere online so I don't know how to solve it. I'm not even sure if getting this to run properly will solve my main issue of QMYSQL not working. I'm really confused by all the posts out there that seem to have contradictory information and instructions.

    Any help would be greatly appreciated.


  • Qt Champions 2018

    Don't know why you want to compile the complete Qt source but did you read https://doc.qt.io/qt-5/sql-driver.html#how-to-build-the-qmysql-plugin-on-unix-and-macos ?



  • @Christian-Ehrlicher I tried to compile the source because one troubleshooting post I found recommended it.

    I did try that earlier. However when I ran make sub-mysql it told me that there was "nothing to be done for sub-mysql".


  • Qt Champions 2018

    Did you properly run qmake before?
    What did your Makefile look like after the qmake run?



  • @Christian-Ehrlicher Yes, I ran qmake -- MYSQL_PREFIX=/usr/local in the subdirectory:
    ~/Qt/5.12.3/clang_64/plugins/sqldrivers

    and did not receive any error messages.
    The contents of the makefile:

    #############################################################################
    # Makefile for building: sqldrivers
    # Generated by qmake (3.1) (Qt 5.12.3)
    # Project:  sqldrivers.pro
    # Template: subdirs
    # Command: /Users/ebm/Qt/5.12.3/clang_64/bin/qmake -o Makefile sqldrivers.pro -- MYSQL_PREFIX=/usr/local
    #############################################################################
    
    MAKEFILE      = Makefile
    
    EQ            = =
    
    first: make_first
    QMAKE         = /Users/ebm/Qt/5.12.3/clang_64/bin/qmake
    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  = install -m 644 -p
    INSTALL_PROGRAM = install -m 755 -p
    INSTALL_DIR   = cp -f -R
    QINSTALL      = /Users/ebm/Qt/5.12.3/clang_64/bin/qmake -install qinstall
    QINSTALL_PROGRAM = /Users/ebm/Qt/5.12.3/clang_64/bin/qmake -install qinstall -exe
    DEL_FILE      = rm -f
    SYMLINK       = ln -f -s
    DEL_DIR       = rmdir
    MOVE          = mv -f
    TAR           = tar -cf
    COMPRESS      = gzip -9f
    DISTNAME      = sqldrivers1.0.0
    DISTDIR = /Users/ebm/Qt/5.12.3/clang_64/plugins/sqldrivers/.tmp/sqldrivers1.0.0
    SUBTARGETS    = 
    
    
    ####### Custom Variables
    EXPORT_VALID_ARCHS = x86_64
    EXPORT_ACTIVE_ARCHS = $(filter $(EXPORT_VALID_ARCHS), $(ARCHS))
    EXPORT_ARCH_ARGS = $(foreach arch, $(if $(EXPORT_ACTIVE_ARCHS), $(EXPORT_ACTIVE_ARCHS), $(EXPORT_VALID_ARCHS)), -arch $(arch))
    EXPORT__PRO_FILE_ = /Users/ebm/Qt/5.12.3/clang_64/plugins/sqldrivers/sqldrivers.pro
    
    
    Makefile: sqldrivers.pro ../../mkspecs/macx-clang/qmake.conf ../../mkspecs/features/spec_pre.prf \
    		../../mkspecs/qdevice.pri \
    		../../mkspecs/features/device_config.prf \
    		../../mkspecs/common/unix.conf \
    		../../mkspecs/common/mac.conf \
    		../../mkspecs/common/macx.conf \
    		../../mkspecs/common/sanitize.conf \
    		../../mkspecs/common/gcc-base.conf \
    		../../mkspecs/common/gcc-base-mac.conf \
    		../../mkspecs/common/clang.conf \
    		../../mkspecs/common/clang-mac.conf \
    		../../mkspecs/qconfig.pri \
    		../../mkspecs/modules/qt_lib_3danimation.pri \
    		../../mkspecs/modules/qt_lib_3danimation_private.pri \
    		../../mkspecs/modules/qt_lib_3dcore.pri \
    		../../mkspecs/modules/qt_lib_3dcore_private.pri \
    		../../mkspecs/modules/qt_lib_3dextras.pri \
    		../../mkspecs/modules/qt_lib_3dextras_private.pri \
    		../../mkspecs/modules/qt_lib_3dinput.pri \
    		../../mkspecs/modules/qt_lib_3dinput_private.pri \
    		../../mkspecs/modules/qt_lib_3dlogic.pri \
    		../../mkspecs/modules/qt_lib_3dlogic_private.pri \
    		../../mkspecs/modules/qt_lib_3dquick.pri \
    		../../mkspecs/modules/qt_lib_3dquick_private.pri \
    		../../mkspecs/modules/qt_lib_3dquickanimation.pri \
    		../../mkspecs/modules/qt_lib_3dquickanimation_private.pri \
    		../../mkspecs/modules/qt_lib_3dquickextras.pri \
    		../../mkspecs/modules/qt_lib_3dquickextras_private.pri \
    		../../mkspecs/modules/qt_lib_3dquickinput.pri \
    		../../mkspecs/modules/qt_lib_3dquickinput_private.pri \
    		../../mkspecs/modules/qt_lib_3dquickrender.pri \
    		../../mkspecs/modules/qt_lib_3dquickrender_private.pri \
    		../../mkspecs/modules/qt_lib_3dquickscene2d.pri \
    		../../mkspecs/modules/qt_lib_3dquickscene2d_private.pri \
    		../../mkspecs/modules/qt_lib_3drender.pri \
    		../../mkspecs/modules/qt_lib_3drender_private.pri \
    		../../mkspecs/modules/qt_lib_accessibility_support_private.pri \
    		../../mkspecs/modules/qt_lib_bluetooth.pri \
    		../../mkspecs/modules/qt_lib_bluetooth_private.pri \
    		../../mkspecs/modules/qt_lib_bootstrap_private.pri \
    		../../mkspecs/modules/qt_lib_clipboard_support_private.pri \
    		../../mkspecs/modules/qt_lib_concurrent.pri \
    		../../mkspecs/modules/qt_lib_concurrent_private.pri \
    		../../mkspecs/modules/qt_lib_core.pri \
    		../../mkspecs/modules/qt_lib_core_private.pri \
    		../../mkspecs/modules/qt_lib_dbus.pri \
    		../../mkspecs/modules/qt_lib_dbus_private.pri \
    		../../mkspecs/modules/qt_lib_designer.pri \
    		../../mkspecs/modules/qt_lib_designer_private.pri \
    		../../mkspecs/modules/qt_lib_designercomponents_private.pri \
    		../../mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
    		../../mkspecs/modules/qt_lib_edid_support_private.pri \
    		../../mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
    		../../mkspecs/modules/qt_lib_fb_support_private.pri \
    		../../mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
    		../../mkspecs/modules/qt_lib_gamepad.pri \
    		../../mkspecs/modules/qt_lib_gamepad_private.pri \
    		../../mkspecs/modules/qt_lib_graphics_support_private.pri \
    		../../mkspecs/modules/qt_lib_gui.pri \
    		../../mkspecs/modules/qt_lib_gui_private.pri \
    		../../mkspecs/modules/qt_lib_help.pri \
    		../../mkspecs/modules/qt_lib_help_private.pri \
    		../../mkspecs/modules/qt_lib_location.pri \
    		../../mkspecs/modules/qt_lib_location_private.pri \
    		../../mkspecs/modules/qt_lib_macextras.pri \
    		../../mkspecs/modules/qt_lib_macextras_private.pri \
    		../../mkspecs/modules/qt_lib_multimedia.pri \
    		../../mkspecs/modules/qt_lib_multimedia_private.pri \
    		../../mkspecs/modules/qt_lib_multimediawidgets.pri \
    		../../mkspecs/modules/qt_lib_multimediawidgets_private.pri \
    		../../mkspecs/modules/qt_lib_network.pri \
    		../../mkspecs/modules/qt_lib_network_private.pri \
    		../../mkspecs/modules/qt_lib_nfc.pri \
    		../../mkspecs/modules/qt_lib_nfc_private.pri \
    		../../mkspecs/modules/qt_lib_opengl.pri \
    		../../mkspecs/modules/qt_lib_opengl_private.pri \
    		../../mkspecs/modules/qt_lib_openglextensions.pri \
    		../../mkspecs/modules/qt_lib_openglextensions_private.pri \
    		../../mkspecs/modules/qt_lib_packetprotocol_private.pri \
    		../../mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
    		../../mkspecs/modules/qt_lib_positioning.pri \
    		../../mkspecs/modules/qt_lib_positioning_private.pri \
    		../../mkspecs/modules/qt_lib_positioningquick.pri \
    		../../mkspecs/modules/qt_lib_positioningquick_private.pri \
    		../../mkspecs/modules/qt_lib_printsupport.pri \
    		../../mkspecs/modules/qt_lib_printsupport_private.pri \
    		../../mkspecs/modules/qt_lib_qml.pri \
    		../../mkspecs/modules/qt_lib_qml_private.pri \
    		../../mkspecs/modules/qt_lib_qmldebug_private.pri \
    		../../mkspecs/modules/qt_lib_qmldevtools_private.pri \
    		../../mkspecs/modules/qt_lib_qmltest.pri \
    		../../mkspecs/modules/qt_lib_qmltest_private.pri \
    		../../mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \
    		../../mkspecs/modules/qt_lib_quick.pri \
    		../../mkspecs/modules/qt_lib_quick_private.pri \
    		../../mkspecs/modules/qt_lib_quickcontrols2.pri \
    		../../mkspecs/modules/qt_lib_quickcontrols2_private.pri \
    		../../mkspecs/modules/qt_lib_quickparticles_private.pri \
    		../../mkspecs/modules/qt_lib_quickshapes_private.pri \
    		../../mkspecs/modules/qt_lib_quicktemplates2.pri \
    		../../mkspecs/modules/qt_lib_quicktemplates2_private.pri \
    		../../mkspecs/modules/qt_lib_quickwidgets.pri \
    		../../mkspecs/modules/qt_lib_quickwidgets_private.pri \
    		../../mkspecs/modules/qt_lib_remoteobjects.pri \
    		../../mkspecs/modules/qt_lib_remoteobjects_private.pri \
    		../../mkspecs/modules/qt_lib_repparser.pri \
    		../../mkspecs/modules/qt_lib_repparser_private.pri \
    		../../mkspecs/modules/qt_lib_scxml.pri \
    		../../mkspecs/modules/qt_lib_scxml_private.pri \
    		../../mkspecs/modules/qt_lib_sensors.pri \
    		../../mkspecs/modules/qt_lib_sensors_private.pri \
    		../../mkspecs/modules/qt_lib_serialbus.pri \
    		../../mkspecs/modules/qt_lib_serialbus_private.pri \
    		../../mkspecs/modules/qt_lib_serialport.pri \
    		../../mkspecs/modules/qt_lib_serialport_private.pri \
    		../../mkspecs/modules/qt_lib_service_support_private.pri \
    		../../mkspecs/modules/qt_lib_sql.pri \
    		../../mkspecs/modules/qt_lib_sql_private.pri \
    		../../mkspecs/modules/qt_lib_svg.pri \
    		../../mkspecs/modules/qt_lib_svg_private.pri \
    		../../mkspecs/modules/qt_lib_testlib.pri \
    		../../mkspecs/modules/qt_lib_testlib_private.pri \
    		../../mkspecs/modules/qt_lib_texttospeech.pri \
    		../../mkspecs/modules/qt_lib_texttospeech_private.pri \
    		../../mkspecs/modules/qt_lib_theme_support_private.pri \
    		../../mkspecs/modules/qt_lib_uiplugin.pri \
    		../../mkspecs/modules/qt_lib_uitools.pri \
    		../../mkspecs/modules/qt_lib_uitools_private.pri \
    		../../mkspecs/modules/qt_lib_webchannel.pri \
    		../../mkspecs/modules/qt_lib_webchannel_private.pri \
    		../../mkspecs/modules/qt_lib_websockets.pri \
    		../../mkspecs/modules/qt_lib_websockets_private.pri \
    		../../mkspecs/modules/qt_lib_webview.pri \
    		../../mkspecs/modules/qt_lib_webview_private.pri \
    		../../mkspecs/modules/qt_lib_widgets.pri \
    		../../mkspecs/modules/qt_lib_widgets_private.pri \
    		../../mkspecs/modules/qt_lib_xml.pri \
    		../../mkspecs/modules/qt_lib_xml_private.pri \
    		../../mkspecs/modules/qt_lib_xmlpatterns.pri \
    		../../mkspecs/modules/qt_lib_xmlpatterns_private.pri \
    		../../mkspecs/features/qt_functions.prf \
    		../../mkspecs/features/qt_config.prf \
    		../../mkspecs/macx-clang/qmake.conf \
    		../../mkspecs/features/spec_post.prf \
    		/Users/ebm/.qmake.stash \
    		../../mkspecs/features/exclusive_builds.prf \
    		../../mkspecs/features/mac/sdk.prf \
    		../../mkspecs/features/toolchain.prf \
    		../../mkspecs/features/mac/toolchain.prf \
    		../../mkspecs/features/default_pre.prf \
    		../../mkspecs/features/mac/default_pre.prf \
    		../../mkspecs/features/resolve_config.prf \
    		../../mkspecs/features/default_post.prf \
    		../../mkspecs/features/mac/default_post.prf \
    		../../mkspecs/features/mac/objective_c.prf \
    		../../mkspecs/features/mac/mac.prf \
    		../../mkspecs/features/warn_on.prf \
    		../../mkspecs/features/qmake_use.prf \
    		../../mkspecs/features/file_copies.prf \
    		../../mkspecs/features/mac/rez.prf \
    		../../mkspecs/features/mac/asset_catalogs.prf \
    		../../mkspecs/features/testcase_targets.prf \
    		../../mkspecs/features/exceptions.prf \
    		../../mkspecs/features/yacc.prf \
    		../../mkspecs/features/lex.prf \
    		sqldrivers.pro
    	$(QMAKE) -o Makefile sqldrivers.pro -- MYSQL_PREFIX=/usr/local
    ../../mkspecs/features/spec_pre.prf:
    ../../mkspecs/qdevice.pri:
    ../../mkspecs/features/device_config.prf:
    ../../mkspecs/common/unix.conf:
    ../../mkspecs/common/mac.conf:
    ../../mkspecs/common/macx.conf:
    ../../mkspecs/common/sanitize.conf:
    ../../mkspecs/common/gcc-base.conf:
    ../../mkspecs/common/gcc-base-mac.conf:
    ../../mkspecs/common/clang.conf:
    ../../mkspecs/common/clang-mac.conf:
    ../../mkspecs/qconfig.pri:
    ../../mkspecs/modules/qt_lib_3danimation.pri:
    ../../mkspecs/modules/qt_lib_3danimation_private.pri:
    ../../mkspecs/modules/qt_lib_3dcore.pri:
    ../../mkspecs/modules/qt_lib_3dcore_private.pri:
    ../../mkspecs/modules/qt_lib_3dextras.pri:
    ../../mkspecs/modules/qt_lib_3dextras_private.pri:
    ../../mkspecs/modules/qt_lib_3dinput.pri:
    ../../mkspecs/modules/qt_lib_3dinput_private.pri:
    ../../mkspecs/modules/qt_lib_3dlogic.pri:
    ../../mkspecs/modules/qt_lib_3dlogic_private.pri:
    ../../mkspecs/modules/qt_lib_3dquick.pri:
    ../../mkspecs/modules/qt_lib_3dquick_private.pri:
    ../../mkspecs/modules/qt_lib_3dquickanimation.pri:
    ../../mkspecs/modules/qt_lib_3dquickanimation_private.pri:
    ../../mkspecs/modules/qt_lib_3dquickextras.pri:
    ../../mkspecs/modules/qt_lib_3dquickextras_private.pri:
    ../../mkspecs/modules/qt_lib_3dquickinput.pri:
    ../../mkspecs/modules/qt_lib_3dquickinput_private.pri:
    ../../mkspecs/modules/qt_lib_3dquickrender.pri:
    ../../mkspecs/modules/qt_lib_3dquickrender_private.pri:
    ../../mkspecs/modules/qt_lib_3dquickscene2d.pri:
    ../../mkspecs/modules/qt_lib_3dquickscene2d_private.pri:
    ../../mkspecs/modules/qt_lib_3drender.pri:
    ../../mkspecs/modules/qt_lib_3drender_private.pri:
    ../../mkspecs/modules/qt_lib_accessibility_support_private.pri:
    ../../mkspecs/modules/qt_lib_bluetooth.pri:
    ../../mkspecs/modules/qt_lib_bluetooth_private.pri:
    ../../mkspecs/modules/qt_lib_bootstrap_private.pri:
    ../../mkspecs/modules/qt_lib_clipboard_support_private.pri:
    ../../mkspecs/modules/qt_lib_concurrent.pri:
    ../../mkspecs/modules/qt_lib_concurrent_private.pri:
    ../../mkspecs/modules/qt_lib_core.pri:
    ../../mkspecs/modules/qt_lib_core_private.pri:
    ../../mkspecs/modules/qt_lib_dbus.pri:
    ../../mkspecs/modules/qt_lib_dbus_private.pri:
    ../../mkspecs/modules/qt_lib_designer.pri:
    ../../mkspecs/modules/qt_lib_designer_private.pri:
    ../../mkspecs/modules/qt_lib_designercomponents_private.pri:
    ../../mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
    ../../mkspecs/modules/qt_lib_edid_support_private.pri:
    ../../mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
    ../../mkspecs/modules/qt_lib_fb_support_private.pri:
    ../../mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
    ../../mkspecs/modules/qt_lib_gamepad.pri:
    ../../mkspecs/modules/qt_lib_gamepad_private.pri:
    ../../mkspecs/modules/qt_lib_graphics_support_private.pri:
    ../../mkspecs/modules/qt_lib_gui.pri:
    ../../mkspecs/modules/qt_lib_gui_private.pri:
    ../../mkspecs/modules/qt_lib_help.pri:
    ../../mkspecs/modules/qt_lib_help_private.pri:
    ../../mkspecs/modules/qt_lib_location.pri:
    ../../mkspecs/modules/qt_lib_location_private.pri:
    ../../mkspecs/modules/qt_lib_macextras.pri:
    ../../mkspecs/modules/qt_lib_macextras_private.pri:
    ../../mkspecs/modules/qt_lib_multimedia.pri:
    ../../mkspecs/modules/qt_lib_multimedia_private.pri:
    ../../mkspecs/modules/qt_lib_multimediawidgets.pri:
    ../../mkspecs/modules/qt_lib_multimediawidgets_private.pri:
    ../../mkspecs/modules/qt_lib_network.pri:
    ../../mkspecs/modules/qt_lib_network_private.pri:
    ../../mkspecs/modules/qt_lib_nfc.pri:
    ../../mkspecs/modules/qt_lib_nfc_private.pri:
    ../../mkspecs/modules/qt_lib_opengl.pri:
    ../../mkspecs/modules/qt_lib_opengl_private.pri:
    ../../mkspecs/modules/qt_lib_openglextensions.pri:
    ../../mkspecs/modules/qt_lib_openglextensions_private.pri:
    ../../mkspecs/modules/qt_lib_packetprotocol_private.pri:
    ../../mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
    ../../mkspecs/modules/qt_lib_positioning.pri:
    ../../mkspecs/modules/qt_lib_positioning_private.pri:
    ../../mkspecs/modules/qt_lib_positioningquick.pri:
    ../../mkspecs/modules/qt_lib_positioningquick_private.pri:
    ../../mkspecs/modules/qt_lib_printsupport.pri:
    ../../mkspecs/modules/qt_lib_printsupport_private.pri:
    ../../mkspecs/modules/qt_lib_qml.pri:
    ../../mkspecs/modules/qt_lib_qml_private.pri:
    ../../mkspecs/modules/qt_lib_qmldebug_private.pri:
    ../../mkspecs/modules/qt_lib_qmldevtools_private.pri:
    ../../mkspecs/modules/qt_lib_qmltest.pri:
    ../../mkspecs/modules/qt_lib_qmltest_private.pri:
    ../../mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri:
    ../../mkspecs/modules/qt_lib_quick.pri:
    ../../mkspecs/modules/qt_lib_quick_private.pri:
    ../../mkspecs/modules/qt_lib_quickcontrols2.pri:
    ../../mkspecs/modules/qt_lib_quickcontrols2_private.pri:
    ../../mkspecs/modules/qt_lib_quickparticles_private.pri:
    ../../mkspecs/modules/qt_lib_quickshapes_private.pri:
    ../../mkspecs/modules/qt_lib_quicktemplates2.pri:
    ../../mkspecs/modules/qt_lib_quicktemplates2_private.pri:
    ../../mkspecs/modules/qt_lib_quickwidgets.pri:
    ../../mkspecs/modules/qt_lib_quickwidgets_private.pri:
    ../../mkspecs/modules/qt_lib_remoteobjects.pri:
    ../../mkspecs/modules/qt_lib_remoteobjects_private.pri:
    ../../mkspecs/modules/qt_lib_repparser.pri:
    ../../mkspecs/modules/qt_lib_repparser_private.pri:
    ../../mkspecs/modules/qt_lib_scxml.pri:
    ../../mkspecs/modules/qt_lib_scxml_private.pri:
    ../../mkspecs/modules/qt_lib_sensors.pri:
    ../../mkspecs/modules/qt_lib_sensors_private.pri:
    ../../mkspecs/modules/qt_lib_serialbus.pri:
    ../../mkspecs/modules/qt_lib_serialbus_private.pri:
    ../../mkspecs/modules/qt_lib_serialport.pri:
    ../../mkspecs/modules/qt_lib_serialport_private.pri:
    ../../mkspecs/modules/qt_lib_service_support_private.pri:
    ../../mkspecs/modules/qt_lib_sql.pri:
    ../../mkspecs/modules/qt_lib_sql_private.pri:
    ../../mkspecs/modules/qt_lib_svg.pri:
    ../../mkspecs/modules/qt_lib_svg_private.pri:
    ../../mkspecs/modules/qt_lib_testlib.pri:
    ../../mkspecs/modules/qt_lib_testlib_private.pri:
    ../../mkspecs/modules/qt_lib_texttospeech.pri:
    ../../mkspecs/modules/qt_lib_texttospeech_private.pri:
    ../../mkspecs/modules/qt_lib_theme_support_private.pri:
    ../../mkspecs/modules/qt_lib_uiplugin.pri:
    ../../mkspecs/modules/qt_lib_uitools.pri:
    ../../mkspecs/modules/qt_lib_uitools_private.pri:
    ../../mkspecs/modules/qt_lib_webchannel.pri:
    ../../mkspecs/modules/qt_lib_webchannel_private.pri:
    ../../mkspecs/modules/qt_lib_websockets.pri:
    ../../mkspecs/modules/qt_lib_websockets_private.pri:
    ../../mkspecs/modules/qt_lib_webview.pri:
    ../../mkspecs/modules/qt_lib_webview_private.pri:
    ../../mkspecs/modules/qt_lib_widgets.pri:
    ../../mkspecs/modules/qt_lib_widgets_private.pri:
    ../../mkspecs/modules/qt_lib_xml.pri:
    ../../mkspecs/modules/qt_lib_xml_private.pri:
    ../../mkspecs/modules/qt_lib_xmlpatterns.pri:
    ../../mkspecs/modules/qt_lib_xmlpatterns_private.pri:
    ../../mkspecs/features/qt_functions.prf:
    ../../mkspecs/features/qt_config.prf:
    ../../mkspecs/macx-clang/qmake.conf:
    ../../mkspecs/features/spec_post.prf:
    /Users/ebm/.qmake.stash:
    ../../mkspecs/features/exclusive_builds.prf:
    ../../mkspecs/features/mac/sdk.prf:
    ../../mkspecs/features/toolchain.prf:
    ../../mkspecs/features/mac/toolchain.prf:
    ../../mkspecs/features/default_pre.prf:
    ../../mkspecs/features/mac/default_pre.prf:
    ../../mkspecs/features/resolve_config.prf:
    ../../mkspecs/features/default_post.prf:
    ../../mkspecs/features/mac/default_post.prf:
    ../../mkspecs/features/mac/objective_c.prf:
    ../../mkspecs/features/mac/mac.prf:
    ../../mkspecs/features/warn_on.prf:
    ../../mkspecs/features/qmake_use.prf:
    ../../mkspecs/features/file_copies.prf:
    ../../mkspecs/features/mac/rez.prf:
    ../../mkspecs/features/mac/asset_catalogs.prf:
    ../../mkspecs/features/testcase_targets.prf:
    ../../mkspecs/features/exceptions.prf:
    ../../mkspecs/features/yacc.prf:
    ../../mkspecs/features/lex.prf:
    sqldrivers.pro:
    qmake: FORCE
    	@$(QMAKE) -o Makefile sqldrivers.pro -- MYSQL_PREFIX=/usr/local
    
    qmake_all: FORCE
    
    make_first:  FORCE
    all:  FORCE
    clean:  FORCE
    distclean:  FORCE
    	-$(DEL_FILE) Makefile
    install_subtargets: FORCE
    uninstall_subtargets: FORCE
    
    xcodeproj:
    	@$(QMAKE) -spec macx-xcode $(EXPORT__PRO_FILE_)
    
    check:
    
    benchmark:
    install:install_subtargets  FORCE
    
    uninstall: uninstall_subtargets FORCE
    
    FORCE:
    
    dist: distdir FORCE
    	(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
    
    distdir: FORCE
    	@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
    	$(COPY_FILE) --parents ../../mkspecs/features/spec_pre.prf ../../mkspecs/qdevice.pri ../../mkspecs/features/device_config.prf ../../mkspecs/common/unix.conf ../../mkspecs/common/mac.conf ../../mkspecs/common/macx.conf ../../mkspecs/common/sanitize.conf ../../mkspecs/common/gcc-base.conf ../../mkspecs/common/gcc-base-mac.conf ../../mkspecs/common/clang.conf ../../mkspecs/common/clang-mac.conf ../../mkspecs/qconfig.pri ../../mkspecs/modules/qt_lib_3danimation.pri ../../mkspecs/modules/qt_lib_3danimation_private.pri ../../mkspecs/modules/qt_lib_3dcore.pri ../../mkspecs/modules/qt_lib_3dcore_private.pri ../../mkspecs/modules/qt_lib_3dextras.pri ../../mkspecs/modules/qt_lib_3dextras_private.pri ../../mkspecs/modules/qt_lib_3dinput.pri ../../mkspecs/modules/qt_lib_3dinput_private.pri ../../mkspecs/modules/qt_lib_3dlogic.pri ../../mkspecs/modules/qt_lib_3dlogic_private.pri ../../mkspecs/modules/qt_lib_3dquick.pri ../../mkspecs/modules/qt_lib_3dquick_private.pri ../../mkspecs/modules/qt_lib_3dquickanimation.pri ../../mkspecs/modules/qt_lib_3dquickanimation_private.pri ../../mkspecs/modules/qt_lib_3dquickextras.pri ../../mkspecs/modules/qt_lib_3dquickextras_private.pri ../../mkspecs/modules/qt_lib_3dquickinput.pri ../../mkspecs/modules/qt_lib_3dquickinput_private.pri ../../mkspecs/modules/qt_lib_3dquickrender.pri ../../mkspecs/modules/qt_lib_3dquickrender_private.pri ../../mkspecs/modules/qt_lib_3dquickscene2d.pri ../../mkspecs/modules/qt_lib_3dquickscene2d_private.pri ../../mkspecs/modules/qt_lib_3drender.pri ../../mkspecs/modules/qt_lib_3drender_private.pri ../../mkspecs/modules/qt_lib_accessibility_support_private.pri ../../mkspecs/modules/qt_lib_bluetooth.pri ../../mkspecs/modules/qt_lib_bluetooth_private.pri ../../mkspecs/modules/qt_lib_bootstrap_private.pri ../../mkspecs/modules/qt_lib_clipboard_support_private.pri ../../mkspecs/modules/qt_lib_concurrent.pri ../../mkspecs/modules/qt_lib_concurrent_private.pri ../../mkspecs/modules/qt_lib_core.pri ../../mkspecs/modules/qt_lib_core_private.pri ../../mkspecs/modules/qt_lib_dbus.pri ../../mkspecs/modules/qt_lib_dbus_private.pri ../../mkspecs/modules/qt_lib_designer.pri ../../mkspecs/modules/qt_lib_designer_private.pri ../../mkspecs/modules/qt_lib_designercomponents_private.pri ../../mkspecs/modules/qt_lib_devicediscovery_support_private.pri ../../mkspecs/modules/qt_lib_edid_support_private.pri ../../mkspecs/modules/qt_lib_eventdispatcher_support_private.pri ../../mkspecs/modules/qt_lib_fb_support_private.pri ../../mkspecs/modules/qt_lib_fontdatabase_support_private.pri ../../mkspecs/modules/qt_lib_gamepad.pri ../../mkspecs/modules/qt_lib_gamepad_private.pri ../../mkspecs/modules/qt_lib_graphics_support_private.pri ../../mkspecs/modules/qt_lib_gui.pri ../../mkspecs/modules/qt_lib_gui_private.pri ../../mkspecs/modules/qt_lib_help.pri ../../mkspecs/modules/qt_lib_help_private.pri ../../mkspecs/modules/qt_lib_location.pri ../../mkspecs/modules/qt_lib_location_private.pri ../../mkspecs/modules/qt_lib_macextras.pri ../../mkspecs/modules/qt_lib_macextras_private.pri ../../mkspecs/modules/qt_lib_multimedia.pri ../../mkspecs/modules/qt_lib_multimedia_private.pri ../../mkspecs/modules/qt_lib_multimediawidgets.pri ../../mkspecs/modules/qt_lib_multimediawidgets_private.pri ../../mkspecs/modules/qt_lib_network.pri ../../mkspecs/modules/qt_lib_network_private.pri ../../mkspecs/modules/qt_lib_nfc.pri ../../mkspecs/modules/qt_lib_nfc_private.pri ../../mkspecs/modules/qt_lib_opengl.pri ../../mkspecs/modules/qt_lib_opengl_private.pri ../../mkspecs/modules/qt_lib_openglextensions.pri ../../mkspecs/modules/qt_lib_openglextensions_private.pri ../../mkspecs/modules/qt_lib_packetprotocol_private.pri ../../mkspecs/modules/qt_lib_platformcompositor_support_private.pri ../../mkspecs/modules/qt_lib_positioning.pri ../../mkspecs/modules/qt_lib_positioning_private.pri ../../mkspecs/modules/qt_lib_positioningquick.pri ../../mkspecs/modules/qt_lib_positioningquick_private.pri ../../mkspecs/modules/qt_lib_printsupport.pri ../../mkspecs/modules/qt_lib_printsupport_private.pri ../../mkspecs/modules/qt_lib_qml.pri ../../mkspecs/modules/qt_lib_qml_private.pri ../../mkspecs/modules/qt_lib_qmldebug_private.pri ../../mkspecs/modules/qt_lib_qmldevtools_private.pri ../../mkspecs/modules/qt_lib_qmltest.pri ../../mkspecs/modules/qt_lib_qmltest_private.pri ../../mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri ../../mkspecs/modules/qt_lib_quick.pri ../../mkspecs/modules/qt_lib_quick_private.pri ../../mkspecs/modules/qt_lib_quickcontrols2.pri ../../mkspecs/modules/qt_lib_quickcontrols2_private.pri ../../mkspecs/modules/qt_lib_quickparticles_private.pri ../../mkspecs/modules/qt_lib_quickshapes_private.pri ../../mkspecs/modules/qt_lib_quicktemplates2.pri ../../mkspecs/modules/qt_lib_quicktemplates2_private.pri ../../mkspecs/modules/qt_lib_quickwidgets.pri ../../mkspecs/modules/qt_lib_quickwidgets_private.pri ../../mkspecs/modules/qt_lib_remoteobjects.pri ../../mkspecs/modules/qt_lib_remoteobjects_private.pri ../../mkspecs/modules/qt_lib_repparser.pri ../../mkspecs/modules/qt_lib_repparser_private.pri ../../mkspecs/modules/qt_lib_scxml.pri ../../mkspecs/modules/qt_lib_scxml_private.pri ../../mkspecs/modules/qt_lib_sensors.pri ../../mkspecs/modules/qt_lib_sensors_private.pri ../../mkspecs/modules/qt_lib_serialbus.pri ../../mkspecs/modules/qt_lib_serialbus_private.pri ../../mkspecs/modules/qt_lib_serialport.pri ../../mkspecs/modules/qt_lib_serialport_private.pri ../../mkspecs/modules/qt_lib_service_support_private.pri ../../mkspecs/modules/qt_lib_sql.pri ../../mkspecs/modules/qt_lib_sql_private.pri ../../mkspecs/modules/qt_lib_svg.pri ../../mkspecs/modules/qt_lib_svg_private.pri ../../mkspecs/modules/qt_lib_testlib.pri ../../mkspecs/modules/qt_lib_testlib_private.pri ../../mkspecs/modules/qt_lib_texttospeech.pri ../../mkspecs/modules/qt_lib_texttospeech_private.pri ../../mkspecs/modules/qt_lib_theme_support_private.pri ../../mkspecs/modules/qt_lib_uiplugin.pri ../../mkspecs/modules/qt_lib_uitools.pri ../../mkspecs/modules/qt_lib_uitools_private.pri ../../mkspecs/modules/qt_lib_webchannel.pri ../../mkspecs/modules/qt_lib_webchannel_private.pri ../../mkspecs/modules/qt_lib_websockets.pri ../../mkspecs/modules/qt_lib_websockets_private.pri ../../mkspecs/modules/qt_lib_webview.pri ../../mkspecs/modules/qt_lib_webview_private.pri ../../mkspecs/modules/qt_lib_widgets.pri ../../mkspecs/modules/qt_lib_widgets_private.pri ../../mkspecs/modules/qt_lib_xml.pri ../../mkspecs/modules/qt_lib_xml_private.pri ../../mkspecs/modules/qt_lib_xmlpatterns.pri ../../mkspecs/modules/qt_lib_xmlpatterns_private.pri ../../mkspecs/features/qt_functions.prf ../../mkspecs/features/qt_config.prf ../../mkspecs/macx-clang/qmake.conf ../../mkspecs/features/spec_post.prf /Users/ebm/.qmake.stash ../../mkspecs/features/exclusive_builds.prf ../../mkspecs/features/mac/sdk.prf ../../mkspecs/features/toolchain.prf ../../mkspecs/features/mac/toolchain.prf ../../mkspecs/features/default_pre.prf ../../mkspecs/features/mac/default_pre.prf ../../mkspecs/features/resolve_config.prf ../../mkspecs/features/default_post.prf ../../mkspecs/features/mac/default_post.prf ../../mkspecs/features/mac/objective_c.prf ../../mkspecs/features/mac/mac.prf ../../mkspecs/features/warn_on.prf ../../mkspecs/features/qmake_use.prf ../../mkspecs/features/file_copies.prf ../../mkspecs/features/mac/rez.prf ../../mkspecs/features/mac/asset_catalogs.prf ../../mkspecs/features/testcase_targets.prf ../../mkspecs/features/exceptions.prf ../../mkspecs/features/yacc.prf ../../mkspecs/features/lex.prf sqldrivers.pro $(DISTDIR)/
    

  • Qt Champions 2018

    And did qmake find mysql ? When I run it I get a nice output from qmake.



  • @Christian-Ehrlicher It didn't give me any output at all. No errors, but no success messages either.


  • Qt Champions 2018

    There must be at least a config.log file. Are you sure mysql is installed in /usr/local ?



  • @Christian-Ehrlicher Where would the config log be located? I didn't see it anywhere.

    Also, I am still looking into this myself, and I see a few guides have a mysql directory within their plugins/sqldrivers directories. I don't have this; the only things in my sqldrivers directory are dylibs, sqldrivers.pro, and the makefile.
    Is this normal? A lot of the guides I'm looking at are old so I'm not sure if it's just a version thing.



  • OK, I wound up needing to wipe my entire drive, so I'm starting fresh with new installs (using the Online Installer).

    Now I am encountering a new issue.
    When I try to run

    qmake -- MYSQL_PREFIX=/usr/local
    

    in the directory

    ~Qt/5.12.3/clang_64/plugins/sqldrivers
    

    it acts like I had typed in make -help instead:

    Usage: qmake [mode] [options] [files]
    
    QMake has two modes, one mode for generating project files based on
    some heuristics, and the other for generating makefiles. Normally you
    shouldn't need to specify a mode, as makefile generation is the default
    mode for qmake, but you may use this to test qmake on an existing project
    
    Mode:
      -project       Put qmake into project file generation mode
                     In this mode qmake interprets files as files to
                     be built,
                     defaults to *; *; *; *.ts; *.xlf; *.qrc
                     Note: The created .pro file probably will 
                     need to be edited. For example add the QT variable to 
                     specify what modules are required.
      -makefile      Put qmake into makefile generation mode (default)
                     In this mode qmake interprets files as project files to
                     be processed, if skipped qmake will try to find a project
                     file in your current working directory
    
    Warnings Options:
      -Wnone         Turn off all warnings; specific ones may be re-enabled by
                     later -W options
      -Wall          Turn on all warnings
      -Wparser       Turn on parser warnings
      -Wlogic        Turn on logic warnings (on by default)
      -Wdeprecated   Turn on deprecation warnings (on by default)
    
    Options:
       * You can place any variable assignment in options and it will be *
       * processed as if it was in [files]. These assignments will be    *
       * processed before [files] by default.                            *
      -o file        Write output to file
      -d             Increase debug level
      -t templ       Overrides TEMPLATE as templ
      -tp prefix     Overrides TEMPLATE so that prefix is prefixed into the value
      -help          This help
      -v             Version information
      -early         All subsequent variable assignments will be
                     parsed right before default_pre.prf
      -before        All subsequent variable assignments will be
                     parsed right before [files] (the default)
      -after         All subsequent variable assignments will be
                     parsed after [files]
      -late          All subsequent variable assignments will be
                     parsed right after default_post.prf
      -norecursive   Don't do a recursive search
      -recursive     Do a recursive search
      -set <prop> <value> Set persistent property
      -unset <prop>  Unset persistent property
      -query <prop>  Query persistent property. Show all if <prop> is empty.
      -qtconf file   Use file instead of looking for qt.conf
      -cache file    Use file as cache           [makefile mode only]
      -spec spec     Use spec as QMAKESPEC       [makefile mode only]
      -nocache       Don't use a cache file      [makefile mode only]
      -nodepend      Don't generate dependencies [makefile mode only]
      -nomoc         Don't generate moc targets  [makefile mode only]
      -nopwd         Don't look for files in pwd [project mode only]
    
    

    It doesn't seem to be making anything, just displaying the help menu.
    Do you know why I am getting the help menu? I think it might be something to do with my PATH since initially qmake wasn't set up at all and I had to add it in. Right now my PATH looks like this:

    /Users/ebm/Qt/5.12.3/clang_64/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    

    I'm a novice at things like environment variables and makefiles (I've never programmed in C++ before) so any insight is really helpful.


  • Qt Champions 2018

    @Apocrita There should be an error message just before the help output. Applications usually show help/usage output if they do not recognise a parameter.
    You can try this:

    export MYSQL_PREFIX=/usr/local
    qmake
    

  • Qt Champions 2018

    @Apocrita said in "error: assigning to 'boolean' from incompatible type 'bool'" when running make (trying to fix QMYSQL):

    ~Qt/5.12.3/clang_64/plugins/sqldrivers

    This is not the location the documentation states have to build the driver in... you need the source code. Please carefully read my link.


Log in to reply