#Import PCL package into my project on Windows with CMake

16 messages ยท Page 1 of 1 (latest)

tulip pawn
#

After the closed post https://discord.com/channels/331718482485837825/1284523531748638804
I try to import the compiled project into my own project.
It reports error.

I add this into my CMakeLists.txt

set(PCL_DIR "D:/myfile/software/Libraries/lib-bin/pcl/share/pcl-1.14")
find_package(PCL 1.3 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
...
target_link_libraries(${PROJECT_NAME}
    ...
    ${PCL_LIBRARIES}
)

Then

cloud pagodaBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

tulip pawn
#

I'm sure that I installed openvdb by execute pacman -S mingw-w64-x86_64-openvdb and so that I cmake and make PCL package successfully. I don't know why cmake cannot find openvdb when I import PCL. How to check it on my msys2 mingw environment ?

#

I found libopenvdb.a and libopenvdb.dll.a under the folder D:\myfile\software\Msys2\mingw64\lib

#

I am not aware that openvdb installed this way exists a .cmake file

#

ok, I'll try

#

msys2

#

I don't want to use linux ๐Ÿ˜ข I can use sub-system but I cannot leave Windows ๐Ÿฅฒ

#

game

#

I'm a steam user ๐Ÿ˜€

#

Thanks for recommending me of Linux, but there are too many softwares and data maybe I cannot move them into Linux conveniently feelsbadman

#

maybe I could work on ubuntu in vmware workstation?

#

oh, that's fine. Maybe I would try in the future ๐Ÿ‘Œ

cloud pagodaBOT
#

@tulip pawn Has your question been resolved? If so, type !solved :)