I installed wine using homebrew, and now I've been working on getting SolidWorks to run on OS X through wine, fixing the errors one by one.
Here's the error I'm currently stuck on:
err:winediag:ODBC_LoadDriverManager failed to open library "libodbc.dylib": dlopen(libodbc.dylib, 265): no suitable image found.
I've tried installing unixodbc with homebrew, but then it gives this error instead:
err:winediag:ODBC_LoadDriverManager failed to open library "libodbc.dylib": dlopen(libodbc.dylib, 265): no suitable image found. Did find: libodbc.dylib: mach-o, but wrong architecture /usr/local/lib/libodbc.dylib: mach-o, but wrong architecture
I checked, and I have the 64 bit version of libODBC.
$ file /usr/local/lib/libodbc.dylib /usr/local/lib/libodbc.dylib: Mach-O 64-bit dynamically linked shared library x86_64
Is there a way to install ODBC in 32 bit mode or compile it from source? Thanks!
PS. I've also tried installing unixobdc through mac ports, but wine doesn't find it at all then.
Update: I downloaded the source from www.unixodbc.org and compiled it in 32bit mode. I also moved the libodbc.dylib to /usr/local/lib/libodbc.dylib. I've also verified that it is 32 bit.
file /usr/local/lib/libodbc.dylib /usr/local/lib/libodbc.dylib: Mach-O dynamically linked shared library i386
The issue is now wine doesn't detect it.
err:winediag:SQLDrivers No ODBC drivers could be found. Check the settings for your libodbc provider.