Giter Club home page Giter Club logo

Comments (7)

MathMagique avatar MathMagique commented on September 21, 2024 1

You can try setting the UNIXODBC_INCLUDE_DIR environment variable before calling the cmake command.

from turbodbc.

MathMagique avatar MathMagique commented on September 21, 2024 1

Glad you got it running!

from turbodbc.

MathMagique avatar MathMagique commented on September 21, 2024

That's weird; travis CI does not complain about it and I can compile things on my MacBook as well.

I think the issue may be that you are using iodbc to build turbodbc. This issue provides some background information. iodbc uses a 32 bit wchar_t type for wide SQL strings, while unixodbc and Microsoft's original ODBC use 16 bit types (such as unsigned short).

I'd recommend to install unixodbc, since that's the thing turbodbc is tested with. iodbc is no longer shipped with recent versions of OSX.

You don't see the issue with 1.0.5 because 1.0.5 did not use wide strings at all. You don't see the issue on Centos because it uses unixodbc.

from turbodbc.

dirkjonker avatar dirkjonker commented on September 21, 2024

You are exactly right, I looked at the cmake output and it shows:

-- Detecting unixODBC library
--   Found header files at: /Library/Frameworks/iODBC.framework/Headers
--   Found library at: /usr/local/lib/libodbc.dylib

Funny thing is, I do have unixODBC installed, but Homebrew probably did not link it or something.
Changing the paths in the CMakeCache.txt file fixes the issue.

from turbodbc.

dirkjonker avatar dirkjonker commented on September 21, 2024

Nope, links from homebrew were just fine, /usr/local/lib/libodbc.dylib points to unixODBC, however the unixODBC headers are at /usr/local/include

from turbodbc.

MathMagique avatar MathMagique commented on September 21, 2024

So the headers used for compiling are different from the library that is linked? That sounds a little problematic to me ;-).

from turbodbc.

dirkjonker avatar dirkjonker commented on September 21, 2024

Got rid of iODBC, now it works fine

-- Detecting unixODBC library
--   Found header files at: /usr/local/include
--   Found library at: /usr/local/lib/libodbc.dylib

from turbodbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.