Skip to content

Build Error Solved in Windows  #9

@yoshiyama

Description

@yoshiyama

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions