OSX: Build MySQL C++ Connector - c++

I've downloaded the mysql connector c++ for OSX in order to build it. I was experiencing the problem in MySQL XCode C++ Connector Bad Access code=13, so I followed the MySQL Connector/C++ OS X 10.9 Mavericks and XCODE 5.0.2 solution.
The problem is that when I execute the cmake as is described in the README file and in the previous post i get:
CMake Error: The source directory (...)/mysql-connector-c++-1.0.5-osx10.5-x86-64bit" does not appear to contain CMakeLists.txt.
First I searched for the file in the children directories but no luck. I've googled this error but I couldn't get an solution to it. Can you help me?

I realise this is a very old topic but I ran into this issue just now and I'd like to share my answer in case someone else stables upon this. You can get the source from git using:
git clone https://github.com/mysql/mysql-connector-cpp.git

Related

Can't install libraries on Visual Studio code

I downloaded vcpkg, i managed to run the commands but whenever i try to install a library, the following error comes up :Error: while loading iostream:
The port directory (D:\New folder (2)\DEV\vcpkg\ports\iostream) does not exist
Error: failed to load port from D:\New folder (2)\DEV\vcpkg\ports\iostream
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.
i tried updating vcpkg but it didnt work. I just started programming in c++ and i cant find a way to install libraries or whatever they are called . Is there any other way to install iostream and stuff like that?
sorry if this is a stupid question but im new and i didnt find anything that could have helped me.

VisualStudio: remote lib headers are not downloaded when working with Suse Enterprise Server 12 SP5

Problem
I've got an issue when developing c++ application in Visual Studio using Suse Enterprise Server 12 SP5 distribution as remote build machine. The main problem is caused by libxml2.
Error logs: Errors.img
In the beginning, Visual Studio notified me that it cannot find libxml. I checked directory containing those headers and found out that libxml wasn't downloaded when I tried to load remote headers.
Research
Before SLES, I was working with CentOS without problems. As I understand, Visual Studio loads headers from /usr/lib/, so I compared how those distributions store installed libs. I found out that in CentOS lib files are stored in "/usr/lib" directory, but SLES keep them mostly stored in "/lib or /lib64" directories. So, I downloaded libxml sources from https://gitlab.gnome.org/GNOME/libxml2/ .
NOTE: VS failed when tried to execute "make" command, so I tried just coping “include/libxml” folder from sources to “/usr/lib/ directory”.
After it, Visual Studio downloaded that lib and intellisence has stopped showing error: "Cannot find libxml". But I still get errors of libxml absence: Other errors.img
My question is what are ways to solve this problem? Maybe there exists any way to download /lib/ directory, or install this libxml to /usr/lib at start? Do libxml from CentOS will correctly work in SLES?
Thank you in advance!
After some tries, solution founded.
I installed openSuse instead of SLES, download all necessary libs and successfully get headers. By the way, c++ application which built on openSuse, could launch on SLES without any problem.

why does my vscode report error, but the code can be compiled by cmake

I have installed the opencv package using brew install opencv, the installation is successful.
Then I download the example code from here.
I can compile it successfully using cmake. And I can also run it.
However, my vscode editor seems it can not located the header file of cpp, thus it shows these error. The screenshot is here.
How can I fix this problem?
Thank you!

How to install Qt 3.3.8 in Ubuntu 14.04

Just recently I have begun to review the code for a project produced by a friend roughly 4 years ago. However, to compile this project I need an outdated version of Qt (version 3.3.8). Much of the code used in this project isn't supported in the same style as Qt4. So I'd first like to obtain Qt3 before I transition to Qt4.
Ubuntu has decided to no longer carry "qt3-dev-tools". Ubuntu has limited the selection to "qt4-dev-tools" in its repository. So installing via the command line option (sudo apt-get install qt3-dev-tools) results in an error:
"Unable to locate package qt3-dev-tools."
So, from here I did some digging for a manual installation? I found a great website to help me through the process, but I'm not very knowledgeable about Ubuntu, or Linux in general. Step 1 was simple. But step 2 and onward stumped me. I'm supposed to be both adding the environment variables listed in step two to the .profile file and then setting them, correct?
In step 2, is logging in again just meant for users with the .login shell? When I type in $HOME/.qt-license of step three, I suppose I'm typing this into the terminal?. Same with the ./configure? Both of these commands return no such file exists.
Does anyone know a better walk through to install Qt3 files, or can give a quick breakdown of this tutorial?
The website tutorial:
http://krm.am.gdynia.pl/doc/qt-3.3.8/INSTALL
If u can get .rpm package then open it in ubuntu software centre . It will get installed.
http://download.qt.io/archive/qt/3/ try downloading the package for qt3 from this qt archive & install it.

Error when compiling Rcpp code in an R package using RStudio

I am using Rstudio to create a package, and exploring the use of the Rcpp package to gain access to C++ code, however, when trying to build the package, and error is being thrown as follows:
fatal error: Rcpp.h: No such file or directory
Inline C++ code compiles fine, its only when considering standalone C++ files in the src folder, obviously referring to the #include <Rcpp.h> directive at the head of the .cpp file.
I think it may have something to do with environment variables, does anyone know what the correct configuration is and how to fix for Rstudio operating in an Ubuntu 12.04 LTS environment?
The commands sourceCpp('./src/xyz.cpp') execute as to be expected, the error is being thrown when Build and Reload is executed from within the RStudio IDE.
It is hard to say without having the package available. I guess you miss:
LinkingTo: Rcpp
in your DESCRIPTION file.
Did you by chance start with 'Create a package' in RStudio? If so, are you aware that you may have missed its sibbling option 'Create a package w/ Rcpp' ?
See the page on Using Rcpp with RStudio site for details, and particularly the final section on package building.
Also note that we wrote an entire vignette on using Rcpp with your own packages so I suggest you have a look at that too.
I encountered this same symptom (Rcpp.h: No such file or directory) when trying to install the "xml2" package on an Ubuntu 14 system. In my case the root cause appeared to be a bad installation of package "Rcpp". Some of the files were there (Rcpp/libs) but others were not (Rcpp/include). I am not sure how the system got into this state but I suspect an installation of that package terminated part way through. Re-installing package "Rcpp" cleared up the issue for me.
This is because your GCC has been updated, and it is different than the one you had when you installed R. I had the same problem.
I removed the package "Rccp" by using:
remove.packages("Rcpp")
Then you need to install it again. Just run:
source("https://bioconductor.org/biocLite.R")
biocLite("Rcpp")