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

build on Windows #427

Open
felixf4xu opened this issue Aug 15, 2023 · 0 comments
Open

build on Windows #427

felixf4xu opened this issue Aug 15, 2023 · 0 comments

Comments

@felixf4xu
Copy link

felixf4xu commented Aug 15, 2023

Hi,

I am trying to build this project on Windows 11 (Visual Studio 2022).

I had an error like this:

CMake Error at C:/autoware/install/share/pcl_ros/cmake/export_pcl_rosExport.cmake:104 (message):
  The imported target "pcl_ros::pcl_ros_filters" references the file

     "C:/autoware/install/lib/pcl_ros_filters.lib"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "C:/autoware/install/share/pcl_ros/cmake/export_pcl_rosExport.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  C:/autoware/install/share/pcl_ros/cmake/ament_cmake_export_targets-extras.cmake:9 (include)
  C:/autoware/install/share/pcl_ros/cmake/pcl_rosConfig.cmake:41 (include)
  CMakeLists.txt:15 (find_package)

I found that I need to change the lib type from SHARED to STATIC:

add_library(pcl_ros_filters STATIC

add_library(pcd_to_pointcloud_lib STATIC tools/pcd_to_pointcloud.cpp)
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

1 participant