简体   繁体   中英

MySQL Connector/C++ OS X 10.9 Mavericks and XCODE 5.0.2

I've upgraded to XCode 5.0.2 along with OS X 10.9 Mavericks and MYSQL 5.6.16 recently. Has anyone had any luck getting the MySQL Connector/C++ to compile and work properly with this setup?

I've been linking with the distributed MySQL Connector/C++ library under Snow Leopard with no problem for a few years now, but when I shifted to the above mentioned setup, I have no luck.

When I use the sql::Driver->connect I get EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

USING:

  • XCode 5.0.2
  • Mavericks 10.9.2
  • MYSQL server 5.6.16 Mac OS X 10.7 (x86, 64-bit), DMG Archive
  • MYSQL Connector/C++ Mac OS X 10.7 (x86, 64-bit), Compressed TAR Archive
  • Boost 1.55

I saw the following post: MySQL Connector/C++ BAD ACCESS crash

So tried I downloading the MYSQL Connector/C++ source 1.1.3 and managed to get the 'static_test' subprogram to work, but the other tests fail with the same sql::Driver->connect returning NULL.

Anybody?

OK resolved.

The following post is the same problem:

MySQL Connector/C++ BAD ACCESS crash

Just in case someone else has this situation:


  1. I downloaded the MYSQL Connector/C++ source 1.1.13 and CMake
  2. I used the following command line to create a XCode project: cmake -G Xcode
  3. Compiled everything in XCode
  4. Copied the created libs into the mysqlconn/lib directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM