简体   繁体   English

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

[英]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. 我最近升级到XCode 5.0.2以及OS X 10.9 Mavericks和MYSQL 5.6.16。 Has anyone had any luck getting the MySQL Connector/C++ to compile and work properly with this setup? 有没有人有幸运行MySQL Connector / C ++来编译并正常使用此设置?

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. 我已经连接了Snow Leopard下的分布式MySQL Connector / C ++库几年没有问题了,但是当我转向上面提到的设置时,我没有运气。

When I use the sql::Driver->connect I get EXC_BAD_ACCESS (code=EXC_I386_GPFLT) 当我使用sql :: Driver-> connect时,我得到EXC_BAD_ACCESS(代码= EXC_I386_GPFLT)

USING: 使用:

  • XCode 5.0.2 XCode 5.0.2
  • Mavericks 10.9.2 小牛队10.9.2
  • MYSQL server 5.6.16 Mac OS X 10.7 (x86, 64-bit), DMG Archive MYSQL服务器5.6.16 Mac OS X 10.7(x86,64位),DMG存档
  • MYSQL Connector/C++ Mac OS X 10.7 (x86, 64-bit), Compressed TAR Archive MYSQL Connector / C ++ Mac OS X 10.7(x86,64位),压缩TAR存档
  • Boost 1.55 提升1.55

I saw the following post: MySQL Connector/C++ BAD ACCESS crash 我看到以下帖子: MySQL Connector / C ++ BAD ACCESS崩溃

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. 所以我尝试下载MYSQL Connector / C ++源1.1.3并设法使'static_test'子程序工作,但其他测试失败,同样的sql :: Driver-> connect返回NULL。

Anybody? 任何人?

OK resolved. 好的解决了。

The following post is the same problem: 以下帖子是同一个问题:

MySQL Connector/C++ BAD ACCESS crash MySQL Connector / C ++ BAD ACCESS崩溃

Just in case someone else has this situation: 以防其他人有这种情况:


  1. I downloaded the MYSQL Connector/C++ source 1.1.13 and CMake 我下载了MYSQL Connector / C ++源1.1.13和CMake
  2. I used the following command line to create a XCode project: cmake -G Xcode 我使用以下命令行来创建一个XCode项目:cmake -G Xcode
  3. Compiled everything in XCode 编译了XCode中的所有内容
  4. Copied the created libs into the mysqlconn/lib directory 将创建的lib复制到mysqlconn / lib目录中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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