Results 1 to 20 of 21

Thread: Mysql drivers install problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    30
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X
    Thanks
    1
    Thanked 1 Time in 1 Post

    Wink Re: Mysql drivers install problems

    Quote Originally Posted by cyberboy View Post
    Hi guys,
    I've downloaded the mysql-5.0.51a-macosx-universal.tar.bz from the mysql site (174 MB) and dropped it in the folder /usr/local/mysql-5.0.51a/ and I ran the sudo ./configure command without succes.


    First Silly Question: Do you have a working MySQL ? Sounds like you do not because you said the configure command ran without succes.

    Next Silly Question: Did you install Qt by using qt-mac-opensource-4.3.2.dmg ? If so, that is not source. You need to get qt-mac-opensource-src-4.3.2.tar.gz and build it.

  2. #2
    Join Date
    Jan 2008
    Posts
    58
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    3

    Default Re: Mysql drivers install problems

    All right, the first install of mysql was messed up, so I download the pkg file from mysql.com and ran it.
    With succes, I think, because afterward the directory /usr/local/mysql exists

    And I don't know if I installed the QT source version, but I downloaded the qt-mac-opensource-src-4.3.2.tar.gz and copied the src folder into my installation.

    And than I did what I said in my previous post

  3. #3
    Join Date
    Jan 2007
    Posts
    30
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X
    Thanks
    1
    Thanked 1 Time in 1 Post

    Question Re: Mysql drivers install problems

    Quote Originally Posted by cyberboy View Post
    I downloaded the qt-mac-opensource-src-4.3.2.tar.gz and copied the src folder into my installation.
    Did you build it ? As described here ?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Mysql drivers install problems

    Quote Originally Posted by cyberboy View Post
    And I don't know if I installed the QT source version, but I downloaded the qt-mac-opensource-src-4.3.2.tar.gz and copied the src folder into my installation.
    Don't copy any directories. Configure the sources, build the plugin and then copy only the plugin.

  5. #5
    Join Date
    Jan 2008
    Posts
    58
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    3

    Default Re: Mysql drivers install problems

    Okay, now I'm installing Qt-4.3.3 with the this configure flags on:
    ./configure -qt-sql-mysql -qt-sql-odbc -qt-sql-sqlite -universal

    And allmost everything went fine except for mysql this is the message I get:

    MySQL support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to ./configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to ./configure to continue.
    And this is the message with the verbose flag turned on:
    Creating qmake. Please wait...
    make: Nothing to be done for `first'.
    floatmath auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o floatmath.o floatmath.cpp
    floatmath.cpp:3: warning: unused parameter 'argc'
    floatmath.cpp:3: warning: unused parameter 'argv'
    c++ -headerpad_max_install_names -o floatmath.app/Contents/MacOS/floatmath floatmath.o
    floatmath disabled.
    mmx auto-detection... ()
    c++ -c -pipe -mmmx -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o mmx.o mmx.cpp
    c++ -headerpad_max_install_names -o mmx.app/Contents/MacOS/mmx mmx.o -mmmx
    mmx disabled.
    3dnow auto-detection... ()
    c++ -c -pipe -m3dnow -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o 3dnow.o 3dnow.cpp
    c++ -headerpad_max_install_names -o 3dnow.app/Contents/MacOS/3dnow 3dnow.o -m3dnow
    3dnow disabled.
    sse auto-detection... ()
    c++ -c -pipe -msse -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o sse.o sse.cpp
    c++ -headerpad_max_install_names -o sse.app/Contents/MacOS/sse sse.o -msse
    sse disabled.
    sse2 auto-detection... ()
    c++ -c -pipe -msse2 -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o sse2.o sse2.cpp
    c++ -headerpad_max_install_names -o sse2.app/Contents/MacOS/sse2 sse2.o -msse2
    sse2 disabled.
    zlib auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o zlib.o zlib.cpp
    c++ -headerpad_max_install_names -o zlib zlib.o -lz
    zlib enabled.
    libjpeg auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o libjpeg.o libjpeg.cpp
    libjpeg.cpp:4:21: error: jpeglib.h: No such file or directory
    libjpeg.cpp: In function 'int main(int, char**)':
    libjpeg.cpp:9: error: 'j_compress_ptr' was not declared in this scope
    libjpeg.cpp:9: error: expected `;' before 'cinfo'
    libjpeg.cpp:10: error: 'cinfo' was not declared in this scope
    libjpeg.cpp:10: error: 'jpeg_create_compress' was not declared in this scope
    make: *** [libjpeg.o] Error 1
    libjpeg disabled.
    libtiff auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o libtiff.o libtiff.cpp
    libtiff.cpp:1:20: error: tiffio.h: No such file or directory
    libtiff.cpp:4:6: error: #error "Required libtiff not found"
    libtiff.cpp: In function 'int main(int, char**)':
    libtiff.cpp:11: error: 'tdata_t' was not declared in this scope
    libtiff.cpp:11: error: expected `;' before 'buffer'
    libtiff.cpp:12: error: 'buffer' was not declared in this scope
    libtiff.cpp:12: error: '_TIFFfree' was not declared in this scope
    make: *** [libtiff.o] Error 1
    libtiff disabled.
    libmng auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o libmng.o libmng.cpp
    libmng.cpp:1:20: error: libmng.h: No such file or directory
    libmng.cpp:9:2: error: #error System libmng version is less than 1.0.9; using built-in version instead.
    libmng.cpp: In function 'int main(int, char**)':
    libmng.cpp:5: error: 'mng_handle' was not declared in this scope
    libmng.cpp:5: error: expected `;' before 'hMNG'
    libmng.cpp:6: error: 'hMNG' was not declared in this scope
    libmng.cpp:6: error: 'mng_cleanup' was not declared in this scope
    make: *** [libmng.o] Error 1
    libmng disabled.
    libpng auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o libpng.o libpng.cpp
    libpng.cpp:1:17: error: png.h: No such file or directory
    libpng.cpp:4:4: error: #error "Required libpng version 1.0.17 not found."
    libpng.cpp: In function 'int main(int, char**)':
    libpng.cpp:9: error: 'png_structp' was not declared in this scope
    libpng.cpp:9: error: expected `;' before 'png_ptr'
    libpng.cpp:10: error: 'png_ptr' was not declared in this scope
    libpng.cpp:10: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope
    libpng.cpp:10: error: 'png_create_read_struct' was not declared in this scope
    make: *** [libpng.o] Error 1
    libpng disabled.
    InterBase auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o ibase.o ibase.cpp
    ibase.cpp:1:19: error: ibase.h: No such file or directory
    make: *** [ibase.o] Error 1
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o mysql.o ../mysql/mysql.cpp
    ../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
    make: *** [mysql.o] Error 1
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    c++ -c -pipe -Os -Wall -W -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I. -o mysql.o mysql.cpp
    mysql.cpp:1:19: error: mysql.h: No such file or directory
    make: *** [mysql.o] Error 1
    MySQL (thread-unsafe) disabled.
    MySQL support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to ./configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to ./configure to continue.
    And that's just crazy he's now looking in the old qtdir?

  6. #6
    Join Date
    Jan 2008
    Posts
    58
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    3

    Default Re: Mysql drivers install problems

    Hmm.... the ./configure succeed, but therefore I had to remove the -qt-sql-mysql parameter and I replaced the qt-sql-<driver> by -plugin-sql-<driver>

    Right now I'm running the make, I hope that I've got the sqlite drivers installed right know so I can do at least something with a database

    P.S. This is an installation of the qt-mac-opensource-src-4.3.2

  7. #7
    Join Date
    Jan 2008
    Posts
    58
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    3

    Default Re: Mysql drivers install problems

    I think I've found it

    ./configure -qt-sql-mysql -I/usr/local/mysql/include -L/usr/local/mysql/lib -qt-sql-odbc -qt-sql-sqlite -universal -v
    Thanks for all you're help guys

Similar Threads

  1. QMake make install problems
    By cookiem in forum Qt Programming
    Replies: 12
    Last Post: 4th December 2008, 15:34
  2. Mac OS X install problems
    By rickbsgu in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2006, 06:31
  3. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  4. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.