Ошибка связи с CGAL

У меня установлен CGAL на моем Mac OS X (10.8.4). Я успешно включил аспекты CGAL в предыдущие программы C ++ для вычисления выпуклой оболочки трехмерного облака точек. Однако сейчас я пытаюсь включить другие части CGAL для вычисления поверхностных сеток, преобразования их в многогранники и так далее. Когда я делаю это, программа компилируется просто отлично, но затем я получаю ошибки компоновки, которые мне не понятны.

Вот моя команда компоновки следующей компиляции:

c ++ -O2 -I / usr / local / include -I / usr / include -I / opt / local / include -o / Users / bullard / ShapeMetrology / Particle / bin / diffgeom diffgeom.a -L / usr / local / lib -L / usr / lib -L / opt / local / lib -lboost_math_c99 -lm -lCGAL -lCGAL_Core -lCGAL_ImageIO -lgmp

И вот (довольно подробные) ошибки компоновки, которые я получаю:

Неопределенные символы для архитектуры x86_64:
«boost :: detail :: get_tss_data (void const *)», на который ссылаются из:
CGAL :: Lazy, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval> :: zero () в diffgeom.a (Particle.o)
boost :: thread_specific_ptr, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval>> :: reset (CGAL :: Lazy, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval> *) в diffgeom. а (Particle.o)
CGAL :: Lazy>>, CGAL :: Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> :: zero () в diffgeom.a (Particle.o)
boost :: thread_specific_ptr>>, CGAL :: Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: reset (CGAL :: Lazy>>, CGAL: : Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> *) в diffgeom.a (Particle.o)
CGAL :: Lazy>>, CGAL :: Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> :: zero () в diffgeom.a (Particle.o)
boost :: thread_specific_ptr>>, CGAL :: Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: reset (CGAL :: Lazy>>, CGAL: : Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> *) в diffgeom.a (Particle.o)
«boost :: detail :: set_tss_data (void const *, boost :: shared_ptr, void *, bool)», на который ссылаются из:
boost :: thread_specific_ptr, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval>> :: reset (CGAL :: Lazy, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval> *) в diffgeom. а (Particle.o)
boost :: thread_specific_ptr, CGAL :: Gmpq, CGAL :: Lazy_exact_nt, CGAL :: To_interval>> :: ~ thread_specific_ptr () в diffgeom.a (Particle.o)
boost :: thread_specific_ptr>>, CGAL :: Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: reset (CGAL :: Lazy>>, CGAL: : Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> *) в diffgeom.a (Particle.o)
boost :: thread_specific_ptr>>, CGAL :: Point_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: ~ thread_specific_ptr () в diffgeom.a (частица. о)
boost :: thread_specific_ptr>>, CGAL :: Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: reset (CGAL :: Lazy>>, CGAL: : Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>> *) в diffgeom.a (Particle.o)
boost :: thread_specific_ptr>>, CGAL :: Sphere_3>, CGAL :: Gmpq, CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>>>> :: ~ ~ thread_specific_ptr () в diffgeom.a (частица. о)
«_mpfr_clear», по ссылке от:
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>> (CGAL :: Sphere_3)> :: тип CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Оператор Compute_squared_radius_3 > (CGAL :: Sphere_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Point_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Sphere_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>, CGAL :: To_interval, CGAL :: sphere_3> (обновить): обновить> (сфера): (обновить)> (сфера): (обновить)> (сфера>): обновить> Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_z_3>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>, CGAL :: To_interval, CGAL :: Point_3> :: update_exact () const в diffgeoma. Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)

«_mpfr_get_d», по ссылке из:
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>> (CGAL :: Sphere_3)> :: тип CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Оператор Compute_squared_radius_3 > (CGAL :: Sphere_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Point_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Sphere_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>, CGAL :: To_interval, CGAL :: sphere_3> (обновить): обновить> (сфера): (обновить)> (сфера): (обновить)> (сфера>): обновить> Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_z_3>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>, CGAL :: To_interval, CGAL :: Point_3> :: update_exact () const в diffgeoma. Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)

«_mpfr_init2», по ссылке из:
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>> (CGAL :: Sphere_3)> :: тип CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Оператор Compute_squared_radius_3 > (CGAL :: Sphere_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Point_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Sphere_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>, CGAL :: To_interval, CGAL :: sphere_3> (обновить): обновить> (сфера): (обновить)> (сфера): (обновить)> (сфера>): обновить> Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_z_3>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>, CGAL :: To_interval, CGAL :: Point_3> :: update_exact () const в diffgeoma. Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)

«_mpfr_set_q», по ссылке из:
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>> (CGAL :: Sphere_3)> :: тип CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Оператор Compute_squared_radius_3 > (CGAL :: Sphere_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Point_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Cartesian_converter, CGAL :: Simple_cartesian>, CGAL :: NT_converter>> :: operator () (CGAL :: Sphere_3> const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>>, CGAL :: CartesianKernelFunctors :: Compute_squared_radius_3>, CGAL :: To_interval, CGAL :: sphere_3> (обновить): обновить> (сфера): (обновить)> (сфера): (обновить)> (сфера>): обновить> Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)
CGAL :: Lazy_rep_1, CGAL :: Gmpq, CGAL :: CartesianKernelFunctors :: Compute_z_3>>, CGAL :: CartesianKernelFunctors :: Compute_z_3>, CGAL :: To_interval, CGAL :: Point_3> :: update_exact () const в diffgeoma. Particle.o)
CGAL :: cpp11 :: result_of>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> (CGAL :: Point_3)> :: type CGAL :: Lazy_construction_nt>>, CGAL :: CartesianKernelFunctors :: Compute_y_3>> :: operator () > (CGAL :: Point_3 const&) const в diffgeom.a (Particle.o)

ld: символы не найдены для архитектуры x86_64
clang: error: команда компоновщика завершилась неудачно с кодом выхода 1 (используйте -v для просмотра вызова)
делать: * [/ Users / Bullard / ShapeMetrology / Particle / bin / diffgeom] Ошибка 1

Я пропускаю библиотеку CGAL в команде связывания? Опять же, у меня не было проблем, когда я использовал CGAL просто для вычисления выпуклой оболочки, но эта проблема, похоже, возникла сейчас, когда я пытаюсь включить поверхностную сетку.

Я буду рад опубликовать соответствующие части кода, если это поможет, но на данный момент я не знаю, какие части будут актуальны.

2

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector