Skip to content
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

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

Closed
mFontoura opened this issue Jan 21, 2020 · 7 comments

Comments

@mFontoura
Copy link

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?

@j-jakubowski
Copy link

I've encountered the same problem and what helped was to add vckpg\installed\x64-windows\bin and add vckpg\installed\x64-windows\include to PATH. (probably just one of them would be enough I need to check which one).

Also I guess modyfing CMakeLists.txt to include paths above would do the trick

@walid-chekkouri
Copy link

@mFontoura and @j-jakubowski I'm having the same problem, how did you fix it please? I tried to add the directories you mentioned to PATH but I still get this error message. I would really appreciate your help since I've been stuck with the problem for a week now.
image

@j-jakubowski
Copy link

To be honest after solving this problem I encountered some more difficulties and decided it's not worth wasting time on setting up this one-time project on windows.

I'd recommend using udacity workspace or setting up everything on regular VM or on Ubuntu for Windows (the latter being my weapon of choice - linux environment with IDE on windows, brilliant!)

@j-jakubowski
Copy link

j-jakubowski commented Jun 10, 2020 via email

@baoqger
Copy link

baoqger commented Jun 27, 2020

On windows, I met the same issue.

@walid-chekkouri
Copy link

On windows, I met the same issue.

I simply used their own Udacity Workspace instead.

@SudKul
Copy link
Contributor

SudKul commented Feb 23, 2021

Hi @mFontoura and other participants,
If setting up the environment takes you too long (and troublesome), consider creating a containerized environment, as suggested in this #25
Otherwise, Udacity workspace is a ready-to-work solution for you.
Thanks

@SudKul SudKul closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants