compile error occurs when link flann as follows:
[ 77%] Linking CXX executable ../../bin/ConvertPointCloud
Undefined symbols for architecture x86_64:
"_LZ4_compress_HC_continue", referenced from:
/** | |
* @brief Mapping functions from Eigen data types to OpenCV | |
* @author Eugene Khvedchenya <ekhvedchenya@gmail.com> | |
* @details This header file contains code snippet for easy mapping Eigen types to OpenCV and back with minimal overhead. | |
* @more computer-vision.talks.com/articles/mapping-eigen-to-opencv/ | |
* Features: | |
* - Mapping plain data types with no overhead (read/write access) | |
* - Mapping expressions via evaluation (read only acess) | |
* | |
* Known issues: |
compile error occurs when link flann as follows:
[ 77%] Linking CXX executable ../../bin/ConvertPointCloud
Undefined symbols for architecture x86_64:
"_LZ4_compress_HC_continue", referenced from:
// A simple quickref for Eigen. Add anything that's missing. | |
// Main author: Keir Mierle | |
#include <Eigen/Dense> | |
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d. | |
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols. | |
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd. | |
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major. | |
Matrix3f P, Q, R; // 3x3 float matrix. |
mysql> create database db_name; | |
mysql> use db_name; | |
mysql> set autocommit=0; | |
mysql> source dump_file.sql; | |
mysql> commit; |
template<class Vector3> | |
std::pair<Vector3, Vector3> best_plane_from_points(const std::vector<Vector3> & c) | |
{ | |
// copy coordinates to matrix in Eigen format | |
size_t num_atoms = c.size(); | |
Eigen::Matrix< Vector3::Scalar, Eigen::Dynamic, Eigen::Dynamic > coord(3, num_atoms); | |
for (size_t i = 0; i < num_atoms; ++i) coord.col(i) = c[i]; | |
// calculate centroid | |
Vector3 centroid(coord.row(0).mean(), coord.row(1).mean(), coord.row(2).mean()); |
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# install vcpkg
git clone https://github.com/Microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.sh -disableMetrics
sudo ln -s /xxx/vcpkg/vcpkg /usr/local/bin
vcpkg help
# use it in CMakeLists.txt
set(ENV{VCPKG_ROOT} "/xxx/vcpkg/vcpkg")
C++ 3 hrs 24 mins ██████████████████▍░░ 87.7% | |
JSON 15 mins █▍░░░░░░░░░░░░░░░░░░░ 6.7% | |
CMake 12 mins █░░░░░░░░░░░░░░░░░░░░ 5.3% | |
Other 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.2% | |
C 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1% |