Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build on Windows #427

Open
felixf4xu opened this issue Aug 15, 2023 · 0 comments · May be fixed by #474
Open

build on Windows #427

felixf4xu opened this issue Aug 15, 2023 · 0 comments · May be fixed by #474

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)
@traversaro traversaro linked a pull request Jan 13, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant