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 Error Solved in Windows #9

Open
yoshiyama opened this issue Mar 27, 2022 · 0 comments
Open

Build Error Solved in Windows #9

yoshiyama opened this issue Mar 27, 2022 · 0 comments

Comments

@yoshiyama
Copy link

yoshiyama commented Mar 27, 2022

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"
)

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