PointCloudLibrary / PointCloudLibrary/pcl

[compile error] Errormessage when compiling: "common is required but eigen was not found"

Open
#4,391 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted kind: compile error platform: android skill: cmake
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

(Please bear in mind I'm new to Cmake/C++/PCL. My goal is to include PCL in a Android project with NDK.

Build system

  • Windows 10
  • Android studio & CLion
  • Installed PCL by using Vcpkg.

Describe the error
When trying to compile, I get error message: common is required but eigen was not found I set PCL_DIR to C:\\Users\\xxx\\Desktop\\xxx\\vcpkg\\installed\\x64-windows\\share\\pcl. Even when trying to set PCL_DIR to a older PCL install I made without vcpkg, I will get (different but similar) error message: common is required but boost was not found

I tried compile an Android project first (NDK), but also tried this it regular c++ 14 application using CLion.

Please paste the compilation results/errors.

To Reproduce

  • install using vcpkg: .\vcpkg install pcl
  • Create new project (Both Android NDK & C++14)
  • Try compile, I get these error
  • I follow the guide from Using PCL in your own project and use their cmake setting.

Your Environment (please complete the following information):

  • OS: Windows 10
  • Compiler: Android Studio, CLion
  • PCL Version: 1.11.1 x64
  • PCL Type: Installed using Vcpkg

If needed additional information, please let me know.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the “Using PCL in your own project” tutorial and the vcpkg install command, then inspect the CMake configuration around PCL_DIR and the reported Eigen or Boost dependencies. Reproduce the failure in the listed Windows, CLion, or Android NDK setups and capture the full compilation output; done means the dependency lookup failure is explained or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cmake, cpp
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.