Re: MySQL Connector 8.0 and Visual Studio 17
Hi Luís,
Thank you for your answer.
Actually, I tried both. I'm a bit puzzled. Below is the full console output (with vcvars).
Any clues?
Best regards,
BB
*****
Microsoft Windows [Version 10.0.17134.471]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src>create_vcxproj.bat
C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars32.bat"
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.4
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
CMake Deprecation Warning at CMakeLists.txt:33 (cmake_policy):
The OLD behavior for policy CMP0023 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is MSVC 19.16.27025.1
-- The CXX compiler identification is MSVC 19.16.27025.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/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.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/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-10.0.17134 (AMD64)
Using cmake generator: Visual Studio 15 2017
Using 32bit genereator
Building version 8.0.13
Building shared connector library
CMake Deprecation Warning at cdk/CMakeLists.txt:34 (cmake_policy):
The OLD behavior for policy CMP0023 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Configuring CDK as part of MySQL_CONCPP project
WITH_TESTS: OFF
CMake Warning (dev) at cdk/SubProject.cmake:47 (OPTION):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'WITH_CDK_DOC'.
Call Stack (most recent call first):
cdk/CMakeLists.txt:50 (INCLUDE)
This warning is for project developers. Use -Wno-dev to suppress it.
CDK include path: C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/cdk/include;C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/cdk/include
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
CMake Warning (dev) at cdk/CMakeLists.txt:176 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'WITH_PIC'.
This warning is for project developers. Use -Wno-dev to suppress it.
WITH_SSL:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Error at cdk/cmake/ssl.cmake:246 (MESSAGE):
Cannot find appropriate system libraries for SSL. Make sure you've
specified a supported SSL version. Consult the documentation for WITH_SSL
alternatives
Call Stack (most recent call first):
cdk/CMakeLists.txt:221 (MYSQL_CHECK_SSL)
Configuring Protobuf build using cmake generator: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.16.27025.1
-- The CXX compiler identification is MSVC 19.16.27025.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/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.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/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
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_BUILD_TYPE
-- Build files have been written to: C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/cdk/protobuf
Protobuf include path: C:/Src/Szok/branches/InfraSzok/$/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
CMake Deprecation Warning at cdk/core/CMakeLists.txt:32 (cmake_policy):
The OLD behavior for policy CMP0023 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Merging static libraries into cdk:
- protobuf-lite
Wrote configuration header: C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/cdk/include/mysql/cdk/config.h
Connector library name: mysqlcppconn8-1-vs14
Install location: C:/Users/BB/MySQL/MySQL Connector C++ 8.0
Connector libraries will be installed at: lib
-- Configuring incomplete, errors occurred!
See also "C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/CMakeFiles/CMakeOutput.log".
See also "C:/Src/Szok/branches/InfraSzok/$/mysql-connector-c++-8.0.13-src/CMakeFiles/CMakeError.log".
Subject
Views
Written By
Posted
1863
October 24, 2018 01:42PM
872
October 31, 2018 05:55AM
945
November 02, 2018 11:37AM
625
November 06, 2018 04:01PM
1272
December 17, 2018 05:56AM
813
December 18, 2018 04:42AM
Re: MySQL Connector 8.0 and Visual Studio 17
1813
December 18, 2018 08:16PM
998
December 19, 2018 03:51PM
953
December 20, 2018 06:39AM
1005
December 20, 2018 12:44PM
700
December 21, 2018 05:05AM
798
December 21, 2018 09:24AM
974
December 23, 2018 05:34AM
755
December 22, 2018 04:34PM
633
December 23, 2018 05:43AM
808
December 23, 2018 08:57PM
649
December 27, 2018 09:03AM
583
December 27, 2018 07:49PM
630
December 28, 2018 05:55AM
684
December 29, 2018 02:23AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.