AndreyPavlenko / android-build

5 stars 1 forks source link

MacOS: curl compilation failed while libssh2 installed by brew #2

Open zhuangyy opened 5 years ago

zhuangyy commented 5 years ago

Platform: MacOS

While building curl, if libssh2 has been installed by brew, /usr/local/include/libssh2.h will be found and treated as the optional ssh2 support header but it is not correct.

I've overcome this error by adding this following lines into package/curl/build.sh cmake_build -DCMAKE_USE_LIBSSH2=OFF ...

it may be not the best solution but works for me. just report it in case someone else may find it useful.