I'm trying to build 5.1.10 on OS X with unixODBC installed via MacPorts,
and the build process can't seem to find the libs when it goes to link
them. I've configured the build like so:
cmake -G "Unix Makefiles" \
MacPorts puts things in an idiosyncratic location: /opt/local. All of the
libodbc* files are in /opt/local/lib.
When I run make things proceed nicely until it tries to access odbcinst:
Linking C shared module ../lib/libmyodbc5.so
ld: library not found for -lodbcinst
collect2: ld returned 1 exit status
make: *** [lib/libmyodbc5.so] Error 1
make: *** [driver/CMakeFiles/myodbc5.dir/all] Error 2
make: *** [all] Error 2
Is the build process failing to propagate the ODBC_LIB_DIR value all the
way through? Should I be using some other flags for unixODBC?
|• 5.1.10 on Mac OS X 10.7 with unixODBC||Brian Panulla||8 Mar|