Open lngvietthang opened 3 years ago
Update:
When I use libiodbc
instead of unixodbc
, the error disappear.
I tried the following with each of these: unixodbc
and libiodbc
.
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl -DICU_ROOT=$(brew --prefix)/opt/icu4c ..
cmake --build . --parallel
In both scenarios driver was successfully built.
My environment: macOS Big Sur 11.4 Xcode 12.5
Try following these steps carefully:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
brew
and install dependencies (you probably need iODBC version of the driver in macOS):
brew update
brew upgrade
brew doctor # ...address any issues reported by this.
brew install git cmake make poco openssl icu4c libiodbc
Clone the repo recursively and build afresh:
rm -rf clickhouse-odbc
git clone --recursive https://github.com/ClickHouse/clickhouse-odbc.git
cd clickhouse-odbc
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl -DICU_ROOT=$(brew --prefix)/opt/icu4c ..
cmake --build . --config RelWithDebInfo
cmake --build . --config RelWithDebInfo --target package
I have this error when I built in my MacBook (macOS Big Sur 11.4)
I install all requirement
brew install poco openssl icu4c unixodbc
And stepcmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl -DICU_ROOT=$(brew --prefix)/opt/icu4c ..
does not get any error