[CONC-139] Xcode/OSX build doesn't work because OSX cmake can't create_symlink Created: 2015-09-12 Updated: 2021-02-14 Resolved: 2015-09-18 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 2.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ken Crossen | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OSX Yosemite, Xcode 6.4, cmake 3.3, and cmake 3.0.2 |
||
| Attachments: |
|
| Description |
|
downloaded: same result for both downloads cd Documents/MySQL_C++/mariadb-connector-c Load .xcodeproj file into Xcode fails on creating symlinks here's the docs: |
| Comments |
| Comment by Georg Richter [ 2015-09-17 ] | ||||||||
|
Could you please attach output of your cmake build, outout of the build and provide version of cmake? | ||||||||
| Comment by Ken Crossen [ 2015-09-17 ] | ||||||||
|
cmake version 3.0.2 and version 3.3.0 same issue Your build process uses symlinks (according to your makefile to support backward compatibility). To create these symlinks, your build process is using cmake's Command-Line Tool Mode and the command create_symlink. This will work on vanilla Unix but NOT on OSX, as the cmake Command-Line Tool Mode documentation makes not totally clear: *UNIX-specific Command-Line Tools create_symlink <old> <new> If you try to do a straight up cmake -G "Unix Makefiles" build, the same thing happens, the build fails on: .../mariadb-connector-c-2.1.0-src/libmariadb/CMakeLists.txt line 407, see excerpt below.
ADD_CUSTOM_TARGET(LIBMYSQL_SYMLINKS Xcode doesn't really produce a listing in the same way as make, but the error message states clearly enough that create_symlink is not an available -E command in cmake. | ||||||||
| Comment by Georg Richter [ 2015-09-17 ] | ||||||||
|
I can't reproduce - see attached log of MacOS build. Also symlink files are in place:
| ||||||||
| Comment by Ken Crossen [ 2015-09-18 ] | ||||||||
|
Using what version of OSX cmake? Or what version of Xcode? | ||||||||
| Comment by Georg Richter [ 2015-09-18 ] | ||||||||
|
Fixed in connector_c_2.2 branch: XCode doesn't seem to understand dependencies when buildiing static/shared libraries only from object files (even add_dependencies doesn't help) and doesn't build them. Just adding an empty file did the trick:
|