Please remove me from the mail lilst, thanks

Shutao Xing <[email protected]> Thu, 8 Mar 2012 20:52:55 -0600
Newsgroups gmane.comp.db.mysql.odbc
Message-ID <CAF0fZjdJ8+XP=VNG-3zOcMftM9vkB2iPfto3tvkBUYBB3xrHFQ@mail.gmail.com>
--20cf307f35ba54573f04bac67da6
Content-Type: text/plain; charset=ISO-8859-1

Best Regards,
Shutao Xing




On Thu, Mar 8, 2012 at 11:44 AM, Brian Panulla <[email protected]> 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
>

--20cf307f35ba54573f04bac67da6--