Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing the header/library search paths for mysql.h #9

Open
wants to merge 1 commit into from

2 participants

@halostatue

The configuration was looking for mysql.h in /usr/local/mysql/lib, not /usr/local/mysql/include. Added parallel search paths for LIBRARY_SEARCH_PATHS.

@halostatue halostatue Fixing the header/library search paths for mysql.h
The configuration was looking for mysql.h in /usr/local/mysql/lib, not /usr/local/mysql/include. Added parallel search paths for LIBRARY_SEARCH_PATHS.
81b172d
@datasmid

The dylib should be copied into the bundle, similar to this:
http://stackoverflow.com/questions/6801709/xcode-4-adding-dylib

Having the adapters as a plugin makes the guesswork for the right install_name harder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 19, 2013
  1. @halostatue

    Fixing the header/library search paths for mysql.h

    halostatue authored
    The configuration was looking for mysql.h in /usr/local/mysql/lib, not /usr/local/mysql/include. Added parallel search paths for LIBRARY_SEARCH_PATHS.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 MySQLAdapter/MySQLAdapter.xcodeproj/project.pbxproj
View
6 MySQLAdapter/MySQLAdapter.xcodeproj/project.pbxproj
@@ -569,13 +569,15 @@
GCC_PREFIX_HEADER = "MySQLAdapter/MySQLAdapter-Prefix.pch";
HEADER_SEARCH_PATHS = (
/opt/local/include/mysql5/mysql,
- /usr/local/mysql/lib/,
- /usr/local/lib,
+ /usr/local/mysql/include/,
+ /usr/local/include,
);
INFOPLIST_FILE = "MySQLAdapter/MySQLAdapter-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
LIBRARY_SEARCH_PATHS = (
/opt/local/lib/mysql5/mysql,
+ /usr/local/mysql/lib,
+ /usr/local/lib,
"\"$(SRCROOT)/Vendor/mysql-connector-c/lib\"",
);
PRODUCT_NAME = "$(TARGET_NAME)";
Something went wrong with that request. Please try again.