MySQL Forums
Forum List  »  Source, Builds, Binaries

C++ connector DLL built but cannot CMake testapps
Posted by: Filip Leze
Date: November 03, 2021 04:38PM

Hi

The C++ connector DLL have been built and I'm failing to CMake the testapps.

Once the connector source code has been built, the:
cmake --build . --target install

is moving to the install connector folder/lib64/debug:

libmysqlcppconn8.dll.a (2Kb)
libmysqlcppconn8-2.dll (67Mb)


The CMake for the testapps is using the same options used to build the connector:

cmake . -DWITH_CONCPP=C:/msys64/home/Filip/MySQL_CONCPP_LIB -DWITH_SSL=C:/msys64/mingw64/bin -DWITH_BOOST=C:/msys64/mingw64/bin -G "MSYS Makefiles"

Here it fails:
CMake Error at CMakeLists.txt:209 (message):
Could not find Connector/C++ libraries at:
C:/msys64/home/Filip/MySQL_CONCPP_LIB/lib64/vs14

The doc mentions the DLL names this way: mysqlcppconn-B-vsNN.dll.
Something went wrong when building the DLL or is it my testapp that I'm doing wrong?


Here is the result of the CMake of the testapp that is failing:
CMake Deprecation Warning at CMakeLists.txt:30 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Generating 64bit code
Liniking dynamically
Using dynamic runtime library.
CMake Error at CMakeLists.txt:209 (message):
Could not find Connector/C++ libraries at:
C:/msys64/home/Filip/MySQL_CONCPP_LIB/lib64/vs14


-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/Filip/MySQL_CONCPP_SRC/testapp/CMakeFiles/CMakeOutput.log".

Options: ReplyQuote


Subject
Views
Written By
Posted
827
November 01, 2021 04:20PM
C++ connector DLL built but cannot CMake testapps
415
November 03, 2021 04:38PM


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.