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

Error during installation #22

Open
matygr opened this issue Aug 1, 2022 · 3 comments
Open

Error during installation #22

matygr opened this issue Aug 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@matygr
Copy link

matygr commented Aug 1, 2022

Hi,
After following the instructions in the "Building the C++ package with CMake" section I'm getting the following error:

CMake Error at doc/CMakeLists.txt:19 (add_custom_target):
  add_custom_target cannot create target "doc" because another target with
  the same name already exists.  The existing target is a custom target
  created in source directory
  "<path to dir location>/gtsam-quadrics-master/gtsam/doc".
  See documentation for policy CMP0002 for more details.

After removing the following lines from the CMakeLists.txt:

find_package(Doxygen)

if (DOXYGEN_FOUND)
  add_subdirectory(doc)
endif()

The build passed successfully.

Am I'm missing something?

thanks

@btalb
Copy link
Collaborator

btalb commented Aug 2, 2022

Thanks for reporting @matygr .

Can I confirm what line of the installation instructions you're receiving the error. Is it the cmake --build . -j$(nproc) step or are you running another make <TARGET> step afterwards?

@btalb btalb added the bug Something isn't working label Aug 2, 2022
@matygr
Copy link
Author

matygr commented Aug 2, 2022

Hi,
The error is encountered while running the following command:
cmake -DBUILD_PYTHON_WRAP=ON ..

Thanks for the quick response.

@z2415445508
Copy link

I encoutered the same Error while during installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants