-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I report here how to solve build error in Windows.
We can use the las2pcd by building in CMakeList.txt like below.
In the building, PCL built by vcpkg and liblas built by OSGeo4W are used.
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(las2pcd)
find_package(PCL 1.3 REQUIRED COMPONENTS common io)
include_directories(${PCL_INCLUDE_DIRS})
include_directories("C:\Users\survey\Documents\GitHub\vcpkg\installed\x86-windows\include")
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(las2pcd las2pcd.cpp)
target_link_libraries(las2pcd
${PCL_COMMON_LIBRARIES}
${PCL_IO_LIBRARIES}
"C:\OSGeo4W\lib\liblas.lib"
"C:\OSGeo4W\lib\liblas_c.lib"
)
Metadata
Metadata
Assignees
Labels
No labels