Resolving sasl/sasl.h Not Found during CMake when Building MySQL on Windows

When building MySQL (5.6 in this case) on Windows, if starting from a new/plain machine, there are some headers/libs/etc. missing that many distributions contain and/or are easy to add.

Resolving some of these, at least for me, have not always been intuitive on Windows. So I’m attempting to tackle them all and post the results to help others with the same issues. (I thought I’d fly through them all, and provide it all in a single post .. [insert laughs here] .. but that’s not gonna happen, so I’ll post them as I go. Might be better in the long run anyway for those searching for specific errors anyway.)

So this one is about the following, during the initial invocation of cmake:

-- Looking for include file sasl/sasl.h
-- Looking for include file sasl/sasl.h - not found

Thus I need to get sasl.h. SASL stands for “Simple Authentication and Security Layer”, which is a method for adding authentication support to connection-based protocols.

Steps I took to fix:

1. Downloaded Cyrus SASL file: cyrus-sasl-2.1.22
2. Extracted
3. Copied all files in “include” directory to “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\sasl” (Where “10.0″ is your version of VS)

After that, re-run your cmake command, and you’ll see it says “found” for sasl/sasl.h now:

c:\mysql\mysql-5.6.12\bld>cmake ..
-- Building for: Visual Studio 10
-- Running cmake version 2.8.11.1
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check size of void *
-- Check size of void * - done
-- MySQL 5.6.12
-- Packaging as: mysql-5.6.12-win32
-- Looking for include file sasl/sasl.h
-- Looking for include file sasl/sasl.h - found
...

Hope this helps. :)

 

Related Build Links:

 

Tags: , , , , ,

2 Responses to “Resolving sasl/sasl.h Not Found during CMake when Building MySQL on Windows”

  1. Wlad says:

    Chris, those “not found” do not need to be resolved. If cmake ends with the error, only then something needs to be resolved.

  2. Sergei Golubchik says:

    Hm. You don’t really need to try to pass *all* checks that cmake is doing.

    In particular, this SASL check is to enable SASL-authentication in InnoDB-Memcached. Note that it will work without SASL too, it just won’t support SASL authentication.


Period Panties by Period Panteez Menstrual Underwear Menstruation PMS Panty