cwi-dis / cwi-pcl-codec

Point Cloud Codec invented by Rufael Mekuria, based on PCL (Point Cloud Library)
Other
48 stars 18 forks source link

when compile cwi-pcl-codec-1.0, neets CMake error #3

Closed cucrui closed 5 years ago

cucrui commented 5 years ago

CMake Error at CMakeLists.txt:59 (find_package): By not providing "Findcwipc_util.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "cwipc_util", but CMake did not find one.

Could not find a package configuration file provided by "cwipc_util" with any of the following names:

cwipc_utilConfig.cmake
cwipc_util-config.cmake

Add the installation prefix of "cwipc_util" to CMAKE_PREFIX_PATH or set "cwipc_util_DIR" to a directory containing one of the above files. If "cwipc_util" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

jackjansen commented 5 years ago

I cannot repeat this problem on the master branch.

The cwipc_util references should only occur on (I think) the exp-jack-kees-pcl191 branch. This is a different packaging of the codec (allowing handling of "pointclouds" in code that doesn't need to know anything of PCL).

If you are indeed trying to build this branch you must first build and install the cwipc_util package, details are in the installation instruction section of the readme.

keesblom commented 5 years ago

Fixed problem in cwi-dis/cwi-pcl-codec master branch.

On 10 Apr 2019, at 14:15, Jack Jansen notifications@github.com wrote:

I cannot repeat this problem on the master branch.

The cwipc_util references should only occur on (I think) the exp-jack-kees-pcl191 branch. This is a different packaging of the codec (allowing handling of "pointclouds" in code that doesn't need to know anything of PCL).

If you are indeed trying to build this branch you must first build and install the cwipc_util package, details are in the installation instruction section of the readme.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

cucrui commented 5 years ago

I cannot repeat this problem on the master branch.

The cwipc_util references should only occur on (I think) the exp-jack-kees-pcl191 branch. This is a different packaging of the codec (allowing handling of "pointclouds" in code that doesn't need to know anything of PCL).

If you are indeed trying to build this branch you must first build and install the _cwipcutil package, details are in the installation instruction section of the readme. I downloud master branch, and meet below error


[100%] Linking CXX executable evaluate_compression
../../jpeg_io/libpcl_jpeg_io.a(jpeg_io.cpp.o): In function `pcl::io::JPEGReader<char>::readJPEG(std::vector<char, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, pcl::PCLImage&)':
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:98: undefined reference to `jpeg_std_error'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:105: undefined reference to `jpeg_destroy_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:110: undefined reference to `jpeg_CreateDecompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:119: undefined reference to `jpeg_mem_src'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:129: undefined reference to `jpeg_stdio_src'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:140: undefined reference to `jpeg_read_header'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:141: undefined reference to `jpeg_start_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:159: undefined reference to `jpeg_read_scanlines'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:165: undefined reference to `jpeg_finish_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:188: undefined reference to `jpeg_destroy_decompress'
../../jpeg_io/libpcl_jpeg_io.a(jpeg_io.cpp.o): In function `pcl::io::JPEGReader<unsigned char>::readJPEG(std::vector<unsigned char, std::allocator<unsigned char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, pcl::PCLImage&)':
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:98: undefined reference to `jpeg_std_error'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:105: undefined reference to `jpeg_destroy_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:110: undefined reference to `jpeg_CreateDecompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:119: undefined reference to `jpeg_mem_src'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:129: undefined reference to `jpeg_stdio_src'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:140: undefined reference to `jpeg_read_header'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:141: undefined reference to `jpeg_start_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:159: undefined reference to `jpeg_read_scanlines'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:165: undefined reference to `jpeg_finish_decompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:188: undefined reference to `jpeg_destroy_decompress'
../../jpeg_io/libpcl_jpeg_io.a(jpeg_io.cpp.o): In function `pcl::io::JPEGWriter<char>::writeJPEG(pcl::PCLImage const&, std::vector<char, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool)':
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:219: undefined reference to `jpeg_std_error'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:239: undefined reference to `jpeg_CreateCompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:245: undefined reference to `jpeg_destroy_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:290: undefined reference to `jpeg_set_defaults'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:291: undefined reference to `jpeg_set_quality'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:296: undefined reference to `jpeg_mem_dest'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:298: undefined reference to `jpeg_stdio_dest'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:301: undefined reference to `jpeg_start_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:310: undefined reference to `jpeg_write_scanlines'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:314: undefined reference to `jpeg_finish_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:324: undefined reference to `jpeg_destroy_compress'
../../jpeg_io/libpcl_jpeg_io.a(jpeg_io.cpp.o): In function `pcl::io::JPEGWriter<unsigned char>::writeJPEG(pcl::PCLImage const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool)':
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:219: undefined reference to `jpeg_std_error'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:239: undefined reference to `jpeg_CreateCompress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:245: undefined reference to `jpeg_destroy_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:290: undefined reference to `jpeg_set_defaults'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:291: undefined reference to `jpeg_set_quality'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:296: undefined reference to `jpeg_mem_dest'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:298: undefined reference to `jpeg_stdio_dest'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:301: undefined reference to `jpeg_start_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:310: undefined reference to `jpeg_write_scanlines'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:314: undefined reference to `jpeg_finish_compress'
/home/ict/Downloads/cwi-pcl-codec-master (1)/cwi-pcl-codec-master/jpeg_io/include/pcl/io/impl/jpeg_io.hpp:324: undefined reference to `jpeg_destroy_compress'
collect2: error: ld returned 1 exit status
apps/evaluate_compression/CMakeFiles/evaluate_compression.dir/build.make:302: recipe for target 'apps/evaluate_compression/evaluate_compression' failed
make[2]: *** [apps/evaluate_compression/evaluate_compression] Error 1
CMakeFiles/Makefile2:228: recipe for target 'apps/evaluate_compression/CMakeFiles/evaluate_compression.dir/all' failed
make[1]: *** [apps/evaluate_compression/CMakeFiles/evaluate_compression.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
jackjansen commented 5 years ago

This seems to be a completely unrelated problem: somehow you're not linking to the jpeg library. For that I suggest you check your cmake log file to see which jpeg library has been selected. If there are issues in that area please open another bug report.

With respect to this issue, the reference to cwipc_util-config.cmake missing, I'm presuming that that has been fixed if you got this far, so I'm closing the bug report. Please reopen with more details if you feel that's wrong.

cucrui commented 5 years ago

This seems to be a completely unrelated problem: somehow you're not linking to the jpeg library. For that I suggest you check your cmake log file to see which jpeg library has been selected. If there are issues in that area please open another bug report.

With respect to this issue, the reference to cwipc_util-config.cmake missing, I'm presuming that that has been fixed if you got this far, so I'm closing the bug report. Please reopen with more details if you feel that's wrong.

Thanks for your reply.