How to bring libraries to c++ project on github - c++

I have a c++ console app project created on my computer with Visual Studio 2019. In this project i need to use redis-plus-plus library. I have installed this library on my computer with vcpkg and i can use it in my project.
#pragma once
#include <string>
#include <vector>
#include <sw/redis++/redis++.h>
class RedisConnectorHelper
{
static sw::redis::Redis _redis;
...
}
The problem is when i publish this project to a github repo, anyone who clone my repo cannot run or debug this project because they don't have redis-plus-plus installed on their device.
So my question is: is there anyway for them to clone my repo and use right away without having to manually install redis-plus-plus on their own computer?

Related

Install FLTK for Vs Code

how to install FLTK for VS CODE I have configured vs code for c++ and I want to use vs code for FLTK also, there is no good guideline for the process and I did not manage to install it according to FLTK help documents, I do ./configure make, and after make install but I cannot run the code. I will list down what I did here:
download and unzip file on c:/dev/flsk/
I had mysys2 but when I tried to run the command like ./configure to configure FLTK it gave me some errors, so i downloaded MingGW with dev toolkit and after run MinGW shell.
run commands: ./configure, make, make install
that was all, now I want to compile my c++ code but it cannot access FLSK Libraries what can I doo? I want to run the code from the book of Bjarne Stroustrup name Programming - Principles and Practice Using C++ chapter 12
thank you;
#include "Simple_window.h"
#include "Graph.h"
int main()
{
using namespace Graph_lib;
Point tl {100,100};
Simple_window win {tl,600,400,"Canvas"};
Polygon poly;
poly.add(Point{300,200});
poly.add(Point{350,100});
poly.add(Point{400,200});
poly.set_color(Color::red);
win.attach (poly);
}

yaml-cpp issue: InvalidNode#YAML##QEAA#AEBV?$basic_string#DU?... not found in DLL

I am facing a runtime issue while running a C++ application in windows that links to the yaml-cpp library (yaml-cpp.lib).
The yaml-cpp has been installed using vcpkg.
The error has been pasted below. Please let me know if you have a hint for solving this issue.
The package dependencies have been configured using CMakeLists.txt and built using ament_cmake. The Visual studio project created in the build folder is able to run without any problem, but this issue occurs only while running the executable using ros2 run in the terminal.
Error Message in pop up window:
radf_execution.exe - Entry point not found The procedure entry
point
"??0InvalidNode#YAML##QEAA#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z"
in the DLL "D:
02_Ws\ros2_ws\install\radf_execution\lib\radf_execution\radf_execution.exe"
was not found.

VCPKG Pcl: Cannot open include file: 'pcl/io/vtk_lib_io.h': No such file or directory

I am trying to compile a project using Point Cloud Library (PCL) on Windows 10 using Visual Studio 2019.
I installed the PCL library via vcpkg (latest version 2020.07) both the pcl and pcl[vtk] version.
Vcpkg is connected to my program through its vcpkg integrate install function.
I am using the dynamic build in release mode.
When I compile my project I get the error
Error C1083 Cannot open include file: 'pcl/io/vtk_lib_io.h': No such file or directory
And indeed when searching through the vcpkg folder on my hard drive this file seems to be missing.
All other PCL headers and functions seem to be installed correctly.
Does somebody know how to correct</further debug this problem or install PCL in a way that includes all necessary files.
Vcpkg lists PCL as installed:
pcl:x64-windows 1.11.0#3
pcl:x64-windows-static 1.11.0#3
pcl[vtk]:x64-windows-static
vtk:x64-windows-static 9.0.1#2
The visualization module in PCL is currently disabled within vcpkg since PCL currently does not support VTK 9.
You either have to use overlay ports to install VTK 8.2 or update PCL to use the PR adding support for VTK 9

Use GLFW in Xcode

I'm having trouble getting GLFW to work on my Xcode 8 and getting the demo from the website working in Xcode. I'm using c++ through the command line type project in Xcode and I imported the cocoa and OpenGL frameworks. Using MacPorts and using sudo port install glfw, I got the libglfw.3.2.dylib and imported that framework into my project. However it still cannot recognise
#include <GLFW/glfw3.h>
As for some reason, Xcode is unable to find the file. What am I doing wrong? My aim is to create a graphical standalone executable file from Xcode through c++.
You need to set search path in "Build Setting" to be where header file is, like for example: "/usr/local/include"

Installing FLTK on Xcode 5

Is there anyone who can give me an tutorial on how to install FLTK on Xcode 5. All my attempts have been without any luck. We have to use the program at my school.
I've been trying to load the frameworks in Xcode but when I am write:
#include <FL/Fl.H>
or
#include "FL/Fl.H"
It does not find the header file.
Mads