List:MySQL ODBC« Previous MessageNext Message »
From:Shutao Xing Date:March 9 2012 2:52am
Subject:Please remove me from the mail lilst, thanks
View as plain text  
Best Regards,
Shutao Xing




On Thu, Mar 8, 2012 at 11:44 AM, Brian Panulla <bpanulla@stripped> wrote:

> 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" \
>        -DWITH_UNIXODBC=1 \
>        -DODBC_INCLUDES=/opt/local/include \
>        -DODBC_LIB_DIR=/opt/local/lib \
>        -DMYSQL_INCLUDE_DIR=/opt/local/include/mysql5/mysql \
>        -DMYSQL_LIB_DIR=/opt/local/lib/mysql5/mysql
>
> 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[2]: *** [lib/libmyodbc5.so] Error 1
> make[1]: *** [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?
>
> -B
>

Thread
Please remove me from the mail lilst, thanksShutao Xing9 Mar