-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake fails to find io2d package #1
Comments
An update, if anyone sees this. Issue resolved by following the steps here, https://github.com/cpp-io2d/P0267_RefImpl/blob/master/BUILDING.md Make sure to do this first, https://github.com/cpp-io2d/P0267_RefImpl/blob/master/BUILDING.md#xcode-and-libc A small trick is to edit the CMakeLists.txt under P0267_RefImpl and comment out the part with samples. Then, using Thanks to Benjamin H. in our classroom for the detail explanation. |
@aoozdemir Hi I also meet such problem in Ubuntu. After I built the P0267_RefImpl, what else should I do to let io2d be found? Should I change something in the CMAKE file of CppND-Route-Planning-Project? |
@karlTUM hi! I didn't change anything in the CMAKE of this project. But, perhaps after this build, https://github.com/cpp-io2d/P0267_RefImpl/blob/master/BUILDING.md#cairoxlib-on-linux, you can try to run I'm not sure how to install on ubuntu I'm afraid. |
@aoozdemir Thank you. I installed P0267_RefImpl as root and it worked. But I have come across anoterh problem:
Did you have this problem? |
@karlTUM nice. I didn't get this error, no. Perhaps, ask in the classroom too. It's possible someone already came across to this. |
I'm trying to follow the instructions what's the next step after opening io2d.xcodeproj? my Xcode throws error on this library "cstddef" |
Any solution for arch linux, besides VM |
Available. Contact me. LAKSHMANZEN@YAHOO.COM
Sent from Yahoo Mail on Android
On Tue, Jul 16, 2019 at 5:10 PM, Ivan Zvonimir Horvat<notifications@github.com> wrote:
Any solution for arch linux, besides VM
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This issue should not be closed. I am trying to setup with an ubuntu container after trying with my mac. |
I agree. I am having the same issues, after trying to build the project. There's little documentation listed with the CppND-Route-Planning-Project on how to build the project. I managed to get around the io2d cmake build problem by following the above instructions and then using a load of hacky workarounds, but now I cannot run make as the io2d headers can't be found. It would be helpful to have more guidance here. |
@aoozdemir |
install IO2D
|
I am using windows system. If a docker image for this project is provided, it will be great. |
I used a ubuntu docker image, but fail to build. Can you share more information? Or just follow the doc working for you. |
"comment out the part with samples", this means what? Can you give more details. Thank you |
If I recall correctly, I meant this. |
Does anyone have a workaround for windows I am also getting the errors where IO2D is missing header files and cannot be found within the project? |
I just met the exactly the same error on my ubuntu.
and after some experiments i find out that it is because the CMake find_package will not be able to find "io2d". So just we need to git clone io2d into /opt/c++ for example, and follow the install instruction. After this everything goes well in my case. |
After this will copy the necessary files at places where Cmake can find them. |
I'm having a hard time building CppND-Route-Planning-Project as it can't find the IO2dconfig.cmake files. |
This is a solution for Ubuntu Linux. I have successfully tried it. |
unfortunately I'm working on wndiows |
Why use windows such a broken OS, come to use Linux :) |
I will eventually ;) |
For one that does not have enough exp in working with cmake/make building this thing it is not easy. I think a bit more help and documentation is required. |
Hello Anyone from the future: Here is a detailed wiki for fixing the same: |
Nice post, you could also install GTest and pugiXML via Conan |
@Horki thanks for introducing Conan to me. I did not hear of it till now. Will surely take a look. |
Hi @azzamshaikh , I installed the io2d through the vcpkg and used the following command so that it is identified by cmake. Was able to create a MSVC project this way. |
So what now about solving this on Windows ? Could not find a package configuration file provided by "io2d" with any of
error. Additionally i dont know how to make sense of this instruction: I kind of got it running in windows.. vcpkg can install io2d, it compiles the other libraries as x86 and then used CMAKE_PREFIX_TOOLCHAIN to point to the vcpkg cmake script.. it created a MSVC project.. but I think that is not what they expect... was not able to build io2d myself such that CMake finds it or this: I installed the io2d through the vcpkg and used the following command so that it is identified by cmake. since doesn't seem to exist. |
Many Thanks. This helped a lot saving my time. Perfect documentation in fact. |
Thanks, that worked for me! |
When i reach this step i get an error.
/home/charity/UAD/P0267_RefImpl/P0267_RefImpl/Samples/svg/external/svgpp/include/svgpp/policy/value_events.hpp:23:5: note: candidate expects 2 arguments, 3 provided |
"cmake --config Debug "-DCMAKE_BUILD_TYPE=Debug" .. " seems doesn't work, since it tells me "CMake Error: Unknown argument --config" |
I changed something and it worked for me |
Thanks, it worked for me, too. |
I managed to get it working under windows with the following steps:
|
I have followed the steps of this tutorial: Readme for the installation of IO2d in MacOS At the time of running the command The line 9 of that file is: And the problem is that both display_buffer_size.width and display_buffer_size.height are 1. If I comment those lines, IO2D executes a blank window: I'm currently using macOS Big Sur with the chip M1. |
I got IO2D installed on OSX using Xcode and MacPorts. I'm going to leave my environment variables here. Hope it helps someone. Details:
|
In which directory to clone ? |
@bhavikkasundra55 did you install it in the cloned route planner folder or separately? |
@charity1475 , i tried this , make throws the same error again? do you have a workaround? also, did you install this in the route planner folder or separately? |
I did it separately, |
No , you didn't. The issue on linux has to do with the version of the svgpp submodule. Check issue #136 for more information. |
I encountered the same issue. Have you been able to solve it? @aaronespasa |
Wow, what a journey to get the test and empty project build locally on my Windows machine. But that's why we are taking this course right, to learn about those kind of headaches and come away stronger! :P |
Hey charity1475 / yyccphus , |
i redid the whole process and it worked for me with the following steps:
|
what confuses me and i didn't looked at it exactly - there are two repositories!
|
I can confirm this, on Ubuntu 20.04 I had to update svgpp to the 1.3.0 tag in the svgpp submodule to get io2d to build. Issue #136 refers to the io2d issue where this was raised. For some reason the Do: You can |
Whenever i reach 66% in
|
Where do you clone io2d or does it not matter? |
Commenting out Line 38 to 30 in the CMakeLists.txt file gets rid of the errors in installing the sample and lets you proceed with the rest of the build. This is on Ubuntu 20.04. |
Yeah it does matter and clone it into the third-party folder |
Add simple solution for TODO udacity#1
I managed to finally get it running* on windows.
|
Did you get it working in windows or not? |
I have the same issue using macOS Sonoma with M2 chip and not been able to solve it so far. |
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 ..
:The text was updated successfully, but these errors were encountered: