Jan 20, 2011 I used CMake to make Makefiles of connector/c source (I already had Boost and the mysqlclient.dll), and that seemed to work, in that I can open the MYSQLCPPCONN.sln in VC 2008, and this also opens 35.proj files. But I cannot build the solution, or any project, as I get build errors, mainly about not finding config.h.
cmake makefiles for connector/c++ won't build: 'cannot open include file cppconn/config.h' error
Posted by: Antony Mott Date: January 20, 2011 02:18PM
Cmake Mysql Connector C # Example
I need to use connector/c++ in a VC++ 2008 environment targeting runtime library /MT, rather than the more generally-used runtime /MDd targeted by the MySql precompiled binaries that I've used with success on other projects. I used CMake to make Makefiles of connector/c++ source (I already had Boost and the mysqlclient.dll), and that seemed to work, in that I can open the MYSQLCPPCONN.sln in VC++ 2008, and this also opens 35 .proj files. But I cannot build the solution, or any project, as I get build errors, mainly about not finding config.h. I used the CMake GUI, so I clicked 'configure', and when I set all the flags, I clicked 'generate'. In my destination directory, after 'generate', I now have various folders but each still has a CMakeFiles folder. I have a cppconn folder, but it has no binaries, which makes me think I've missed some step. I'm new to CMake..am I missing another step or two before I can 'build' in VC++? I read that I can 'try' NMake, and NMake install steps after CMake..but the dummies source/CMake tut and other articles use the word 'try' as if those steps are optional, as no tut has the instructions for doing it with the CMake GUI, it reads as if NMake on the command line is equivalent to the 'generate' button in the CMake GUI, and NMake install might be equivalent to 'build' in VC++ 2008? I saw another thread in this forum of someone who had a similar build problem in VC++ which was due to a missing double quote in an include directory CMakeCache.txt. But when I went through CMakeCache, I could find no flag/value that mentioned include directories that might include /cppconn, other than flags for directories for Boost, source and destination directories. Any help greatly appreciated! -antony
MYSQLCLIENTSTATICBINDINGis enabled (the default), Connector/C is linked to the shared MySQL client library. Otherwise, the shared MySQL client library is loaded and mapped at runtime.
cmake makefiles for connector/c++ won't build: 'cannot open include file cppconn/config.h' error
Re: cmake makefiles for connector/c++ won't build: 'cannot open include file cppconn/config.h' error
Re: cmake makefiles for connector/c++ won't build: 'cannot open include file cppconn/config.h' error
Sorry, you can't reply to this topic. It has been closed.
Nordvpn us. 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.
Bank of America Private Bank is a division of Bank of America, N.A., Member FDIC and a wholly owned subsidiary of Bank of America Corporation. Trust and fiduciary services are provided by Bank of America, N.A. Trust Company of Delaware. Both are indirect subsidiaries of Bank of America Corporation. Nordvpn bank of america. Bank of America may have migrated to AWS, just scanning the last 100 or so posts here, there are a lot of issues with AWS hosted sites. I say this, because I work in support for a top 5 US bank and we migrated all of our external customer sites and a large number of internal ones to AWS last year, so it is possible other banks might be as well. NordVPN servers for Bank of America NEWS. Posted by 6 months ago. NordVPN servers for Bank of America NEWS. Have you had trouble using NVPN when trying to log into Bank of America? We are told when doing online banking that a VPN IS VERY IMPORTANT but BofA hasn’t been allowing me to connect.
I am trying to create a connector for finding mysql-connector-c++. This is a C++ library that allows a C++ application or library connect to a MySQL server. Right now it works fine on Linux but fails to locate the mysql-connector-c++ library installed on a XP 64-bit machine. On the Linux system the headers are located in /usr/include and the libraries are in /usr/lib. On the Windows system the location is not as easy to locate since the user can place them pretty much anywhere. At present they are installed in C:Program FilesMySQLMySQL Connector C++ 1.0.5. When I configure the project via the CMake-gui on Windows it reports that MysqlConnectorCpp_INCLUDE_DIR and MysqlConnectorCpp_LIBRARIES are NOTFOUND. Here is my module as it stands right now. Am I doing something wrong on the Windows side? Stephen -------------------------------------- # - Try to find Mysql-Connector-C++ # Once done, this will define # # MysqlConnectorCpp_FOUND - system has Mysql-Connector-C++ installed # MysqlConnectorCpp_INCLUDE_DIRS - the Mysql-Connector-C++ include directories # MysqlConnectorCpp_LIBRARIES - link these to use Mysql-Connector-C++ SET (MysqlConnector_Cpp_FOUND FALSE) IF (WIN32) FIND_PATH(MysqlConnectorCpp_INCLUDE_DIR NAMES mysql_connection.h PATHS 'C:Program Files' ) FIND_LIBRARY(MysqlConnectorCpp_LIBRARY mysqlcppconn) FIND_LIBRARY(MysqlConnectorCpp_LIBRARY mysqlcppconn-static) ELSE(WIN32) FIND_PATH(MysqlConnectorCpp_INCLUDE_DIR mysql_connection.h /opt/include /usr/local/include /usr/include ) FIND_LIBRARY(MysqlConnectorCpp_LIBRARY NAMES mysqlcppconn mysqlcppconn-static PATHS /opt/lib /usr/local/lib /usr/lib ) ENDIF(WIN32) IF(MysqlConnectorCpp_LIBRARY) SET(MysqlConnectorCpp_FOUND 'YES') ENDIF(MysqlConnectorCpp_LIBRARY) ~ _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake