GithubHelp home page GithubHelp logo

cppnd-route-planning-project's Introduction

Route Planning Project

This repo contains the starter code for the Route Planning project.

Cloning

When cloning this project, be sure to use the --recurse-submodules flag. Using HTTPS:

git clone https://github.com/udacity/CppND-Route-Planning-Project.git --recurse-submodules

or with SSH:

git clone [email protected]:udacity/CppND-Route-Planning-Project.git --recurse-submodules

Dependencies for Running Locally

Compiling and Running

Compiling

To compile the project, first, create a build directory and change to that directory:

mkdir build && cd build

From within the build directory, then run cmake and make as follows:

cmake ..
make

Running

The executable will be placed in the build directory. From within build, you can run the project as follows:

./OSM_A_star_search

Or to specify a map file:

./OSM_A_star_search -f ../<your_osm_file.osm>

Testing

The testing executable is also placed in the build directory. From within build, you can run the unit tests as follows:

./test

Troubleshooting

  • Some students have reported issues in cmake to find io2d packages, make sure you have downloaded this.

  • For MAC Users cmake issues: Comment these lines from CMakeLists.txt under P0267_RefImpl

    if( NOT DEFINED IO2D_WITHOUT_SAMPLES )
         add_subdirectory(P0267_RefImpl/Samples)
    endif()
    

    And then run "ALL_Build" and "install" in XCode.

    If any packages are missing try to install packages using

    brew install pkg-config
    
  • For Ubuntu Linux IO2D installation errors, follow the given steps:

     sudo apt update
     sudo apt install build-essential
     sudo apt install cmake
     sudo apt install libcairo2-dev
     sudo apt install libgraphicsmagick1-dev
     sudo apt install libpng-dev
    
     git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl
     cd P0267_RefImpl
     mkdir Debug
     cd Debug
     cmake --config Debug "-DCMAKE_BUILD_TYPE=Debug" ..
     cmake --build .
     sudo make install
    
  • If you are working on windows and unable to install IO2D:

    • Enable WSL (Windows Subsystem for Linux) and use a distribution like Ubuntu.(available from the windows store):
    • Install the required dependencies (compiler, cmake etc.) in the WSL(as mentioned above for ubuntu)
    • Configure CLion to use the WSL toolchain
    • Use the WSL toolchain to build the project
    • If you are still facing errors, visit this link.
  • If you are facing errors with --config try to remove -- from the command.

cppnd-route-planning-project's People

Contributors

azarrias avatar michelml avatar sudkul avatar swwelch avatar uanjali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cppnd-route-planning-project's Issues

CMake Error: Unknown argument --config

Hie everyone,

I trying to install the environment on my machine (Mac, Big Sur) to do the project.

I followed the steps from here: https://github.com/udacity/CppND-Route-Planning-Project/blob/master/README.md

All run okay. But by installing IO2D,

I get this error when I try:

cmake -G "Xcode" --config Debug "-DCMAKE_BUILD_TYPE=Debug" ../.
CMake Error: Unknown argument --config
CMake Error: Run 'cmake --help' for all supported options.

My Cmake version is 3.20, my make version is 4.3. Can anyone help me?

Thanks! :)

cmake fails to find io2d package

OS: MacOS Mojave 10.14.4
CMake Version: 3.14.3
GNU Make: 3.81


See the full log: https://gist.github.com/aoozdemir/f770ec818bb9dc446722cd05f005b9ea

Error log after running cmake ..:

➜  io2d git:(master) ✗ cmake .
TESTING = notest
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- 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: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:27 (find_package):
  By not providing "Findio2d.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "io2d", but
  CMake did not find one.

  Could not find a package configuration file provided by "io2d" with any of
  the following names:

    io2dConfig.cmake
    io2d-config.cmake

  Add the installation prefix of "io2d" to CMAKE_PREFIX_PATH or set
  "io2d_DIR" to a directory containing one of the above files.  If "io2d"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/Users/oz/Desktop/workspace/cpp/io2d/CMakeFiles/CMakeOutput.log".

Target "OSM_A_star_search" links to target "Cairo::Cairo" but the target was not found.

In Windows I tried to start the first project today but I'm still stuck on the setup of "Building and Running". I want to use a local environment so I'm not using the VM. I think I have installed all the dependencies correctly but I still have errors when trying to "cmake" this repo. I get an error on the line:
add_executable(OSM_A_star_search src/main.cpp src/model.cpp src/render.cpp src/route_model.cpp src/route_planner.cpp)
on the command line i get:

CMake Error at CMakeLists.txt:28 (add_executable):
  Target "OSM_A_star_search" links to target "Cairo::Cairo" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

Any ideas?

Unable to install Cairo in VS-Code on Windows

I'm using Visual Studio Code on Windows and installed cmake, make and gcc
In the instructions to install Cairo (.\vcpkg.exe install cairo) I encountered an error:
error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance

I could not use the triplet for mingw, since cairo requires vcpkg-cmake in x64-windows only (?)

The only way I could find, was to install Visual Studio Community 2022 (maybe the MS Build tools would be sufficient).
After that, the installation was successful.

Did I miss anything or did do anything wrong?

terminate called after throwing an instance of 'std::logic_error'

When I finished the code as required, I don't understand why it can't parse the xml file, especially since I was working before.

../bin/CppND-Route-Planning-Project-master ../map.osm 
Enter start x btw. 0 - 99: 8
Enter start y btw. 0 - 99: 8
Enter end x btw. 0 - 99: 7
Enter end y btw. 0 - 99: 7
terminate called after throwing an instance of 'std::logic_error'
  what():  failed to parse the xml file
Aborted (core dumped)

CMake Error at test/CMakeLists.txt:25 (add_executable): add_executable called with incorrect number of arguments

OS: Ubuntu 18.04.2 LTS
CMAKE: 3.10.2

After cmake .. I have the following error:

kang@kang-Inspiron-7559:~/Documents/cpp/cpp_eng/CppND-Route-Planning-Project/build$ cmake ..
TESTING = notest
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
CMake Warning (dev) at cmake/FindCairo.cmake:63 (set):
  Cannot set "CAIRO_PATH": current scope has no parent.
Call Stack (most recent call first):
  CMakeLists.txt:32 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Cairo: /usr/include/cairo (found version "1.15.10") 
-- Checking for module 'GraphicsMagick'
--   Found GraphicsMagick, version 1.3.28
-- Found GraphicsMagick: /usr/include/GraphicsMagick  
CMake Error at test/CMakeLists.txt:25 (add_executable):
  add_executable called with incorrect number of arguments


CMake Error at test/CMakeLists.txt:28 (target_link_libraries):
  Cannot specify link libraries for target "test" which is not built by this
  project.


-- Configuring incomplete, errors occurred!
See also "/home/kang/Documents/cpp/cpp_eng/CppND-Route-Planning-Project/build/CMakeFiles/CMakeOutput.log".

Did anyone meet the same problem?

Executable fails on Big Sur

I try to run the project, I managed to successfully build and create the executable but I get the following error with IO2D. An assertion fails. I did all the steps, downloaded the library to /thirdparty folder, just as clang, build IO2D, and installed all the dependencies successfully.

Usage: [executable] [-f filename.osm]
Reading OpenStreetMap data from the following file: ../map.osm
Distance: 0 meters. 
display buffer and back buffer have different pixel layouts: 0(display buffer) and 8194(back buffer).
Assertion failed: (back_buffer_size.width >= 1. && back_buffer_size.height >= 1. && display_buffer_size.width >= 1. && display_buffer_size.height >= 1.), function _ScaledBackBufferRect, file /Users/path/CppND-Route-Planning-Project/thirdparty/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/coregraphics/xio2d_cg_display.cpp, line 9.
zsh: abort      ./OSM_A_star_search

Unit test for AddNeighbors is incomplete

Hi,

the unit test AddNeighbors is broken. Please see comments below

for (auto i : current_node->neighbors) {
      /*********************************************************************
      // the unit test for this function is broken
      // it doesn't matter if the node being added to open_list is visited
      // the test will pass
      // g_values have the same problem:
      // replace with: start_node->distacne(*i) shall pass the test as well
      // it seems the unit test does not guarantee the correctness?
      *********************************************************************/
      // it doesn't matter if we check the node is visited
      if (!i->visited) {
        // some works
        // the g_value function is wrong, as it will fail the final test
        // but for this test, it will pass
        i->g_value = start_node->distacne(*i) 
        // some more works
      }
}

'cstddef' file not found

after running

cmake -G "Xcode" --config Debug "-DCMAKE_BUILD_TYPE=Debug" -DIO2D_DEFAULT=COREGRAPHICS_MAC ../.

then

open io2d.xcodeproj

an error has been occurred during building. 'cstddef' file not found .

Make error when compiling googletest on Manjaro

This is likely due to a newer GCC version. When running make I encountered:

CppND-Route-Planning-Project/thirdparty/googletest/googletest/src/gtest-death-test.cc:1287:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
 1287 |   StackLowerThanAddress(&dummy, &result);

According to this SO post, the newer version of GCC treats this as an error.

This has been fixed upstream, so changing the submodule link from abseil/googletest.git to google/googletest.git (I think the upstream project was moved), and pulling to latest works.

$ git diff
diff --git a/.gitmodules b/.gitmodules
index 3fc81ad..7e4a0c4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -3,4 +3,4 @@
        url = https://github.com/zeux/pugixml.git
 [submodule "thirdparty/googletest"]
        path = thirdparty/googletest
-       url = https://github.com/abseil/googletest.git
+       url = https://github.com/google/googletest.git
diff --git a/thirdparty/googletest b/thirdparty/googletest
index 695cf7c..ec25eea 160000
--- a/thirdparty/googletest
+++ b/thirdparty/googletest
@@ -1 +1 @@
-Subproject commit 695cf7c96249de50360a7d2951dc88eb3aea0695
+Subproject commit ec25eea8f8237cf86c30703f59747e42f34b6f75

Make IO2D fails

I get an error while trying to make IO2D which suggests, I guess, that my boost version is not the proper one.
My boost version:

$ dpkg -s libboost-dev | grep 'Version'
Version: 1.71.0.0ubuntu2

and my g++ version:

$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make_output.txt

Question:

  • is my conclusion correct, and if so -- which version of boost should I have?

optional: No such file or directory

When I try to make, I am getting the error
CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:5:20: fatal error: optional: No such file or directory
compilation terminated.
CMakeFiles/test.dir/build.make:62: recipe for target 'CMakeFiles/test.dir/test/utest_rp_a_star_search.cpp.o' failed
make[2]: *** [CMakeFiles/test.dir/test/utest_rp_a_star_search.cpp.o] Error 1
CMakeFiles/Makefile2:74: recipe for target 'CMakeFiles/test.dir/all' failed
make[1]: *** [CMakeFiles/test.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

It seems that make cannot resolve the include optional in utest_rp_a_star_search.cpp file. It is very strange because the CMakeLists.txt instructions should deal all includes or cmake file is missing something?

Run test fails

Running the test executable provides the following failure.
What might be wrong here?
I'm running on Ubuntu 18.04 with cmake version 3.14.7.
I've io2d installed as in link

sj@sj:~/learning/cpp_nanodegree/CppND-Route-Planning-Project/build$ ./test
Running main() from /home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/thirdparty/googletest/googletest/src/gtest_main.cc
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from RoutePlannerTest
[ RUN      ] RoutePlannerTest.TestCalculateHValue
/home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:66: Failure
Expected equality of these values:
  route_planner.CalculateHValue(start_node)
    Which is: 0.031656995
  1.1329799
/home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:67: Failure
Expected equality of these values:
  route_planner.CalculateHValue(end_node)
    Which is: 4.6308042e+27
  0.0f
    Which is: 0
/home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:68: Failure
Expected equality of these values:
  route_planner.CalculateHValue(mid_node)
    Which is: 4.6308042e+27
  0.58903033
[  FAILED  ] RoutePlannerTest.TestCalculateHValue (74 ms)
[ RUN      ] RoutePlannerTest.TestAddNeighbors
/home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:82: Failure
Expected equality of these values:
  neighbors.size()
    Which is: 0
  4
[  FAILED  ] RoutePlannerTest.TestAddNeighbors (70 ms)
[ RUN      ] RoutePlannerTest.TestConstructFinalPath
/home/sj/learning/cpp_nanodegree/CppND-Route-Planning-Project/test/utest_rp_a_star_search.cpp:102: Failure
Expected equality of these values:
  path.size()
    Which is: 0
  3
Segmentation fault (core dumped)

cannot make the io2d

I follow the readme to install io2d,but i encouter .
here is my clang+llvm...'s location
1.export LDFLAGS="-L/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/lib -Wl,-rpath,/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/lib"

2.export CXXFLAGS="-nostdinc++ -isystem/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1"

-- The CXX compiler identification is GNU 8.2.0
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Default IO2D backend was not specified, choosing automatically...
Found Linux, using CAIRO_XLIB.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found Cairo: /usr/include/cairo (found version "1.14.6")
-- Checking for module 'GraphicsMagick'
-- Found GraphicsMagick, version 1.3.23
-- Found GraphicsMagick: /usr/include/GraphicsMagick
-- The C compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
Skipping the Maps example since Boost was not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhuang/P0267_RefImpl/Debug

And Then cmake --build .
Now Now Now I have hundreds of error,as following:
Scanning dependencies of target io2d_core
[ 2%] Building CXX object P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o
[ 4%] Building CXX object P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/xinterchangebuffer.cpp.o
[ 6%] Linking CXX static library libio2d_core.a
[ 6%] Built target io2d_core
Scanning dependencies of target io2d_cairo
[ 8%] Building CXX object P0267_RefImpl/P0267_RefImpl/cairo/CMakeFiles/io2d_cairo.dir/cairo_renderer-graphicsmagickinit.cpp.o
[ 10%] Linking CXX static library libio2d_cairo.a
[ 10%] Built target io2d_cairo
Scanning dependencies of target io2d_cairo_xlib
[ 12%] Building CXX object P0267_RefImpl/P0267_RefImpl/cairo/xlib/CMakeFiles/io2d_cairo_xlib.dir/cairo_renderer_xlib.cpp.o
[ 14%] Linking CXX static library libio2d_cairo_xlib.a
[ 14%] Built target io2d_cairo_xlib
Scanning dependencies of target color_fill
[ 17%] Building CXX object P0267_RefImpl/Samples/color_fill/CMakeFiles/color_fill.dir/main.cpp.o
[ 19%] Linking CXX executable color_fill
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::bad_optional_access::bad_optional_access()’中:
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:167:对‘vtable for std::bad_optional_access’未定义的引用
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::experimental::io2d::v1::_Cairo::_Throw_if_failed_cairo_status_t(_cairo_status)’中:
/home/zhuang/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xcairo_helpers.h:17:对‘std::bad_alloc::bad_alloc()’未定义的引用
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::__1::__shared_weak_count::__release_shared()’中:
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/memory:3533:对‘std::__1::__shared_weak_count::__release_weak()’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/memory:3533:对‘std::__1::__shared_weak_count::__release_weak()’未定义的引用
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::__1::__throw_bad_optional_access()’中:
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘std::bad_optional_access::~bad_optional_access()’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘typeinfo for std::bad_optional_access’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘std::bad_optional_access::~bad_optional_access()’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘typeinfo for std::bad_optional_access’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘std::bad_optional_access::~bad_optional_access()’未定义的引用
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/optional:186:对‘typeinfo for std::bad_optional_access’未定义的引用
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::__1::make_error_code(std::__1::errc)’中:
/home/zhuang/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1/system_error:564:对‘std::__1::generic_category()’未定义的引用
CMakeFiles/color_fill.dir/main.cpp.o:在函数‘std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::create_output_surface(int, int, std::experimental::io2d::v1::format, std::experimental::io2d::v1::scaling, std::experimental::io2d::v1::refresh_style, float)’中:
/home/zhuang/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:73:对‘std::__1::system_error::system_error(std::__1::error_code)’未定义的引用

Where I make a mis..???

No CMAKE_CXX_COMPILER could be found.

I tried to run this command

cmake -G "Xcode" --config Debug "-DCMAKE_BUILD_TYPE=Debug" -DIO2D_DEFAULT=COREGRAPHICS_MAC ../.

then this error message is shown

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!

this is Cmakeoutput.log

The system is: Darwin - 19.4.0 - x86_64

this is cMakeErrot.log

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: -nostdinc++;-isystem~/clang+llvm-6.0.0-x86_64-apple-darwin/include/c++/v1
Id flags:  

The output was:
1
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: 
Id flags:  

The output was:
1
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Unable to compile io2d

I am trying to compile I02D and it has some issues in the cmake.

Scanning dependencies of target io2d_core [ 2%] Building CXX object P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o In file included from /home/karthik/catkin_ws/c++_nanodegree/project_planner/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/rgba_color.cpp:1:0: /home/karthik/catkin_ws/c++_nanodegree/project_planner/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/xio2d.h:18:19: fatal error: variant: No such file or directory compilation terminated. P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/build.make:62: recipe for target 'P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o' failed make[2]: *** [P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o] Error 1 CMakeFiles/Makefile2:341: recipe for target 'P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/all' failed make[1]: *** [P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

Clearly the xio2d.h is in the corresponding folder, but it is not able to find it still.
I am on ubuntu 16.04.

Installing on Mac with Apple Silicon (M1)

Anyone had success installing IO2D on M1 macs?

I downloaded the recommended version of LLVM, but it's a X86 version, so I downloaded a newer version that supports arm64, but when building the project I had a compilation error on catch.hpp, it says it can't find this file.
Then I changed Xcode to run under Rosetta, downloaded the 6.0.0 version of LLVM, and tried to build IO2D and I even more errors. I think if I change my terminal to run under Rosetta and download all dependencies and cmake for X86 I would manage to run the project, but that is too much, there should be a way to run the project on arm64. Can someone help me?

cmake can't find a package configuration file

I have installed io2d, cairo and graphics magic using vcpkg, and I am using Visual Studio 2019. Cmake gives me this error:

CMake Error at F:/VisualStudio/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package):
Could not find a package configuration file provided by "unofficial-cairo"
with any of the following names:

unofficial-cairoConfig.cmake
unofficial-cairo-config.cmake

Add the installation prefix of "unofficial-cairo" to CMAKE_PREFIX_PATH or
set "unofficial-cairo_DIR" to a directory containing one of the above
files.  If "unofficial-cairo" provides a separate development package or
SDK, be sure it has been installed.

I already specified the location of the CMAKE_TOOLCHAIN_FILE and I have also already integrated vcpkg using the command "vcpkg integrate install".

cannot make io2d

Hello I would like to ask you for compilling:
/udacity/P0267_RefImpl/Debug$ cmake --build .
...

I use Ubuntu 18.04

[ 6%] Built target io2d_core
[ 10%] Built target io2d_cairo
[ 14%] Built target io2d_cairo_xlib
[ 17%] Linking CXX executable color_fill
CMakeFiles/color_fill.dir/main.cpp.o: In function std::bad_optional_access::bad_optional_access()': /home/ivan/udacity/src/include/c++/v1/optional:167: undefined reference to vtable for std::bad_optional_access'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Throw_if_failed_cairo_status_t(_cairo_status)': /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xcairo_helpers.h:17: undefined reference to std::bad_alloc::bad_alloc()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::shared_ptr<_cairo_surface>::~shared_ptr()': /home/ivan/udacity/src/include/c++/v1/memory:3533: undefined reference to std::__1::__shared_weak_count::__release_weak()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::shared_ptr<_cairo_pattern>::~shared_ptr()': /home/ivan/udacity/src/include/c++/v1/memory:3533: undefined reference to std::__1::__shared_weak_count::__release_weak()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >::paint(std::experimental::io2d::v1::basic_brush<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> > const&, std::__1::optional<std::experimental::io2d::v1::basic_brush_props<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> > > const&, std::__1::optional<std::experimental::io2d::v1::basic_render_props<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> > > const&, std::__1::optional<std::experimental::io2d::v1::basic_clip_props<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> > > const&)': /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::create_output_surface(int, int, std::experimental::io2d::v1::format, std::experimental::io2d::v1::scaling, std::experimental::io2d::v1::refresh_style, float)':
/home/ivan/udacity/src/include/c++/v1/system_error:564: undefined reference to std::__1::generic_category()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::create_output_surface(int, int, std::experimental::io2d::v1::format, std::experimental::io2d::v1::scaling, std::experimental::io2d::v1::refresh_style, float)':
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:73: undefined reference to std::__1::system_error::system_error(std::__1::error_code)' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:73: undefined reference to std::__1::system_error::~system_error()'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:73: undefined reference to typeinfo for std::__1::system_error' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_stringbuf<char, std::__1::char_traits, std::__1::allocator >::~basic_stringbuf()':
/home/ivan/udacity/src/include/c++/v1/sstream:191: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /home/ivan/udacity/src/include/c++/v1/sstream:191: undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits >::~basic_streambuf()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_stringstream()': /home/ivan/udacity/src/include/c++/v1/sstream:866: undefined reference to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()'
/home/ivan/udacity/src/include/c++/v1/sstream:866: undefined reference to std::__1::basic_ios<char, std::__1::char_traits<char> >::~basic_ios()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:179: undefined reference to std::__1::chrono::steady_clock::now()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:182: undefined reference to std::__1::chrono::steady_clock::now()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/system_error:564: undefined reference to std::__1::generic_category()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:203: undefined reference to std::__1::system_error::system_error(std::__1::error_code)'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:203: undefined reference to std::__1::system_error::~system_error()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:203: undefined reference to typeinfo for std::__1::system_error'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/system_error:564: undefined reference to std::__1::generic_category()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:273: undefined reference to std::__1::system_error::system_error(std::__1::error_code)'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:273: undefined reference to std::__1::system_error::~system_error()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:273: undefined reference to typeinfo for std::__1::system_error'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/ios:336: undefined reference to vtable for std::__1::ios_base'
/home/ivan/udacity/src/include/c++/v1/ios:653: undefined reference to vtable for std::__1::basic_ios<char, std::__1::char_traits<char> >' /home/ivan/udacity/src/include/c++/v1/ios:690: undefined reference to std::__1::ios_base::init(void
)'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/sstream:244: undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits >::basic_streambuf()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:296: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(unsigned long)'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/sstream:911: undefined reference to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()'
/home/ivan/udacity/src/include/c++/v1/sstream:911: undefined reference to std::__1::basic_ios<char, std::__1::char_traits<char> >::~basic_ios()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:308: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int)' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:312: undefined reference to std::__1::to_string(int)'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:312: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:316: undefined reference to std::__1::to_string(int)'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:316: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:320: undefined reference to std::__1::to_string(long)'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:320: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:329: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string()'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:330: undefined reference to std::__1::cerr' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/src/include/c++/v1/ios:336: undefined reference to vtable for std::__1::ios_base' /home/ivan/udacity/src/include/c++/v1/ios:653: undefined reference to vtable for std::__1::basic_ios<char, std::__1::char_traits >'
/home/ivan/udacity/src/include/c++/v1/ios:690: undefined reference to std::__1::ios_base::init(void*)' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/src/include/c++/v1/sstream:244: undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::basic_streambuf()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:348: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int)' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/src/include/c++/v1/sstream:911: undefined reference to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()' /home/ivan/udacity/src/include/c++/v1/sstream:911: undefined reference to std::__1::basic_ios<char, std::__1::char_traits >::~basic_ios()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:349: undefined reference to std::__1::cerr'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:349: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/src/include/c++/v1/system_error:564: undefined reference to std::__1::generic_category()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::begin_show(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data
&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl >&)':
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:376: undefined reference to std::__1::system_error::system_error(std::__1::error_code)' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:376: undefined reference to std::__1::system_error::~system_error()'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:376: undefined reference to typeinfo for std::__1::system_error' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:312: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string()'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:316: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:320: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string()'
/home/ivan/udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h:349: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::shared_ptr<_cairo_pattern>::shared_ptr<_cairo_pattern, void (
)(_cairo_pattern*)>(_cairo_pattern*, void ()(_cairo_pattern), std::__1::enable_if<std::__1::is_convertible<_cairo_pattern*, _cairo_pattern*>::value, std::__1::shared_ptr<_cairo_pattern>::__nat>::type)':
/home/ivan/udacity/src/include/c++/v1/memory:3476: undefined reference to vtable for std::__1::__shared_count' /home/ivan/udacity/src/include/c++/v1/memory:3511: undefined reference to vtable for std::__1::__shared_weak_count'
CMakeFiles/color_fill.dir/main.cpp.o: In function void std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Render_to_native_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> > >(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl>::surfaces::_Output_surface_data*&, std::experimental::io2d::v1::basic_output_surface<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfaces<std::experimental::io2d::v1::_Graphics_math_float_impl> >&)': /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::endl<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&)':
/home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::ios_base::getloc() const' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::endl<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&)':
/home/ivan/udacity/src/include/c++/v1/__locale:238: undefined reference to std::__1::ctype<char>::id' /home/ivan/udacity/src/include/c++/v1/__locale:238: undefined reference to std::__1::locale::use_facet(std::__1::locale::id&) const'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)': /home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::locale::~locale()'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)': /home/ivan/udacity/src/include/c++/v1/ostream:1001: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits >::put(char)'
/home/ivan/udacity/src/include/c++/v1/ostream:1002: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::endl<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&)':
/home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::locale::~locale()' CMakeFiles/color_fill.dir/main.cpp.o: In function void std::experimental::io2d::v1::_Cairo::_Render_for_scaling_uniform_or_letterbox<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data>(std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl::surfaces::_Output_surface_data&)':
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access'
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long)': /home/ivan/udacity/src/include/c++/v1/ostream:721: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits >&)'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long)': /home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::ios_base::getloc() const'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long)': /home/ivan/udacity/src/include/c++/v1/__locale:238: undefined reference to std::__1::ctype::id'
/home/ivan/udacity/src/include/c++/v1/__locale:238: undefined reference to std::__1::locale::use_facet(std::__1::locale::id&) const' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*, unsigned long)':
/home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::locale::~locale()' /home/ivan/udacity/src/include/c++/v1/ios:756: undefined reference to std::__1::locale::~locale()'
/home/ivan/udacity/src/include/c++/v1/ios:529: undefined reference to std::__1::ios_base::clear(unsigned int)' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*, unsigned long)':
/home/ivan/udacity/src/include/c++/v1/ostream:721: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::~sentry()' /home/ivan/udacity/src/include/c++/v1/ostream:721: undefined reference to std::__1::basic_ostream<char, std::__1::char_traits >::sentry::~sentry()'
/home/ivan/udacity/src/include/c++/v1/ostream:739: undefined reference to std::__1::ios_base::__set_badbit_and_consider_rethrow()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::shared_ptr<cairo_path>::~shared_ptr()':
/home/ivan/udacity/src/include/c++/v1/memory:3533: undefined reference to std::__1::__shared_weak_count::__release_weak()' CMakeFiles/color_fill.dir/main.cpp.o: In function void std::experimental::io2d::v1::_Cairo::_Set_clip_propsstd::experimental::io2d::v1::_Graphics_math_float_impl(_cairo*, std::experimental::io2d::v1::basic_clip_props<std::experimental::io2d::v1::_Cairo::_Cairo_graphics_surfacesstd::experimental::io2d::v1::_Graphics_math_float_impl > const&)':
/home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to std::bad_optional_access::~bad_optional_access()' /home/ivan/udacity/src/include/c++/v1/optional:186: undefined reference to typeinfo for std::bad_optional_access'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char)': /home/ivan/udacity/src/include/c++/v1/string:1742: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init(unsigned long, char)'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char)': /home/ivan/udacity/src/include/c++/v1/locale:1408: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string()'
/home/ivan/udacity/src/include/c++/v1/locale:1404: undefined reference to std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::enable_if<std::__1::__is_forward_iterator<char*>::value, void>::type std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init<char*>(char*, char*)':
/home/ivan/udacity/src/include/c++/v1/string:1862: undefined reference to std::__1::__basic_string_common<true>::__throw_length_error() const' CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::__shared_ptr_pointer<_cairo_pattern*, void ()(_cairo_pattern), std::__1::allocator<_cairo_pattern> >::
__shared_ptr_pointer()':
/home/ivan/udacity/src/include/c++/v1/memory:3553: undefined reference to std::__1::__shared_weak_count::~__shared_weak_count()' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_14basic_iostreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to typeinfo for std::__1::basic_iostream<char, std::__1::char_traits >'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_14basic_iostreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x38): undefined reference to typeinfo for std::__1::basic_iostream<char, std::__1::char_traits<char> >' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_14basic_iostreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x60): undefined reference to typeinfo for std::__1::basic_iostream<char, std::__1::char_traits >'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_13basic_istreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to typeinfo for std::__1::basic_istream<char, std::__1::char_traits<char> >' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_13basic_istreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x38): undefined reference to typeinfo for std::__1::basic_istream<char, std::__1::char_traits >'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE16_NS_13basic_ostreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to typeinfo for std::__1::basic_ostream<char, std::__1::char_traits<char> >' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE16_NS_13basic_ostreamIcS2_EE[_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x38): undefined reference to typeinfo for std::__1::basic_ostream<char, std::__1::char_traits >'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x20): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::imbue(std::__1::locale const&)' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x28): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits >::setbuf(char*, long)'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x40): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sync()' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x48): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits >::showmanyc()'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x50): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::xsgetn(char*, long)' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x60): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits >::uflow()'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x70): undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::xsputn(char const*, long)' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTINSt3__120__shared_ptr_pointerIP14_cairo_patternPFvS2_ENS_9allocatorIS1_EEEE[_ZTINSt3__120__shared_ptr_pointerIP14_cairo_patternPFvS2_ENS_9allocatorIS1_EEEE]+0x10): undefined reference to typeinfo for std::__1::__shared_weak_count'
CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTINSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTINSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to typeinfo for std::__1::basic_iostream<char, std::__1::char_traits<char> >' CMakeFiles/color_fill.dir/main.cpp.o:(.data.rel.ro._ZTINSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTINSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to typeinfo for std::__1::basic_streambuf<char, std::__1::char_traits >'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::overflow(int)': /home/ivan/udacity/src/include/c++/v1/sstream:542: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::push_back(char)'
CMakeFiles/color_fill.dir/main.cpp.o: In function std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::overflow(int)': /home/ivan/udacity/src/include/c++/v1/string:904: undefined reference to std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::resize(unsigned long, char)'
collect2: error: ld returned 1 exit status
P0267_RefImpl/Samples/color_fill/CMakeFiles/color_fill.dir/build.make:116: recipe for target 'P0267_RefImpl/Samples/color_fill/color_fill' failed
make[2]: *** [P0267_RefImpl/Samples/color_fill/color_fill] Error 1
CMakeFiles/Makefile2:442: recipe for target 'P0267_RefImpl/Samples/color_fill/CMakeFiles/color_fill.dir/all' failed
make[1]: *** [P0267_RefImpl/Samples/color_fill/CMakeFiles/color_fill.dir/all] Error 2
Makefile:157: recipe for target 'all' failed
make: *** [all] Error 2

Problems installing cairo

I am trying to install the Io2D library as instructed in the link: https://github.com/cpp-io2d/P0267_RefImpl/blob/master/BUILDING.md
However, every time I try to install the Cairo library I encounter this issue:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
    Command failed: "C:/Program Files/src/vcpkg/downloads/tools/msys2/7e05e7aa09f1709f/usr/bin/bash.exe" --noprofile --norc --debug -c "V=1 CPP='compile cl.exe -E' CC='compile cl.exe' CC_FOR_BUILD='compile cl.exe' CXX='compile cl.exe' RC='windres-rc rc.exe' WINDRES='windres-rc rc.exe' AR='ar-lib lib.exe' LD='link.exe -verbose' RANLIB=':' STRIP=':' NM='dumpbin.exe -symbols -headers' DLLTOOL='link.exe -verbose -dll' CCAS=':' AS=':' ./../src/1.17-e2a53830aa.clean/configure --build=i686-pc-mingw32 \"--enable-extra-encodings\" \"--without-libiconv-prefix\" \"--without-libintl-prefix\" \"--enable-relocatable\" \"ac_cv_prog_ac_ct_STRIP=:\" \"gl_cv_double_slash_root=yes\" \"ac_cv_func_memmove=yes\" \"--disable-silent-rules\" \"--verbose\" \"--enable-shared\" \"--disable-static\" \"--prefix=/C/Program Files/src/vcpkg/installed/x86-windows/debug\" \"--bindir=\\${prefix}/../tools/libiconv/debug/bin\" \"--sbindir=\\${prefix}/../tools/libiconv/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/libiconv\""
    Working Directory: C:/Program Files/src/vcpkg/buildtrees/libiconv/x86-windows-dbg
    Error code: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher
    See logs for more information:

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:707 (vcpkg_execute_required_process)
  ports/libiconv/portfile.cmake:29 (vcpkg_configure_make)
  scripts/ports.cmake:146 (include)


error: building libiconv:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libiconv
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libiconv]+Build+error
Include '[libiconv] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e
    vcpkg-scripts version: 98f8d00e8 2022-07-08 (3 days ago)

You can also use the prefilled template from C:\Program Files\src\vcpkg\installed\vcpkg\issue_body.md.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.