Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

MySQL Connector/C++ 8.0: build fail - HAVE_IS_SAME - Visual Studio 2017

I'm working on building the MySQL Connector/C++ 8.0 using Visual Studio 2017.

I followed the instructions on Building Connector/C++ 8.0

I'm getting the errors during CMake step:

-- Build files have been written to: C:/mysql_connector_build/cdk/protobuf
Protobuf include path: C:/mysql-connector-c++-8.0.13-src/cdk/protobuf/protobuf-2.6.1/src
-- Performing Test HAVE_STATIC_ASSERT
-- Performing Test HAVE_STATIC_ASSERT - Success
-- Performing Test HAVE_IS_SAME
-- Performing Test HAVE_IS_SAME - Failed
-- Performing Test HAVE_SHARED_PTR
-- Performing Test HAVE_SHARED_PTR - Success
-- Performing Test HAVE_SYSTEM_ERROR
-- Performing Test HAVE_SYSTEM_ERROR - Success
-- Performing Test HAVE_CODECVT_UTF8
-- Performing Test HAVE_CODECVT_UTF8 - Success
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/byteorder.h
-- Looking for sys/byteorder.h - not found  

The configuration section of the CMake build:

-- The C compiler identification is MSVC 19.15.26732.1
-- The CXX compiler identification is MSVC 19.15.26732.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building on system: Windows-6.1.7601 (AMD64)
Using cmake generator: Visual Studio 15 2017
Using 32bit genereator
Building version 8.0.13

According to is_same_class, Visual Studio 2017 supports is_same.

How do I get this CMake to pass?
(Is there a command line parameter I need to specify to CMake?)

I have the MYSQL_DIR set to point to the MySQL Server 8.0 directory:

MYSQL_DIR=C:\Program Files\MySQL\MySQL Server 8.0

Environment:

  • Visual Studio 2017
  • Windows 7 and Windows 10
  • cmake version 3.13.0-rc2

Comments