Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Surface_reconstruction_points_3 compilation error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Surface_reconstruction_points_3 compilation error


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] Surface_reconstruction_points_3 compilation error
  • Date: Fri, 3 Oct 2014 16:49:05 -0700

Thank you for the help Sebastien.

So I blew away CMakeMache.txt and copied libCGAL.so to /usr/local/lib (it
was not in fact there and now I am getting:


:~/src/CGAL/CGAL-4.0/examples/Surface_reconstruction_points_3$ make
Scanning dependencies of target poisson_reconstruction_example
Linking CXX executable poisson_reconstruction_example
CMakeFiles/poisson_reconstruction_example.dir/poisson_reconstruction_example.cpp.o:
In function `boost::lock_error::lock_error(int, char const*)':
poisson_reconstruction_example.cpp:(.text._ZN5boost10lock_errorC2EiPKc[_ZN5boost10lock_errorC5EiPKc]+0x1c):
undefined reference to `boost::system::system_category()'
CMakeFiles/poisson_reconstruction_example.dir/poisson_reconstruction_example.cpp.o:
In function `boost::thread_resource_error::thread_resource_error(int, char
const*)':
poisson_reconstruction_example.cpp:(.text._ZN5boost21thread_resource_errorC2EiPKc[_ZN5boost21thread_resource_errorC5EiPKc]+0x1c):
undefined reference to `boost::system::system_category()'
CMakeFiles/poisson_reconstruction_example.dir/poisson_reconstruction_example.cpp.o:
In function `bool
CGAL::Poisson_reconstruction_function<CGAL::Epick>::compute_implicit_function<CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
0, int>, 1, Eigen::DiagonalPreconditioner<double> > >
>(CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
0, int>, 1, Eigen::DiagonalPreconditioner<double> > >)':
poisson_reconstruction_example.cpp:(.text._ZN4CGAL31Poisson_reconstruction_functionINS_5EpickEE25compute_implicit_functionINS_19Eigen_solver_traitsIN5Eigen17ConjugateGradientINS5_12SparseMatrixIdLi0EiEELi1ENS5_22DiagonalPreconditionerIdEEEEEEEEbT_[_ZN4CGAL31Poisson_reconstruction_functionINS_5EpickEE25compute_implicit_functionINS_19Eigen_solver_traitsIN5Eigen17ConjugateGradientINS5_12SparseMatrixIdLi0EiEELi1ENS5_22DiagonalPreconditionerIdEEEEEEEEbT_]+0x1aa):
undefined reference to
`Eigen::internal::noncopyable::noncopyable(Eigen::internal::noncopyable
const&)'
CMakeFiles/poisson_reconstruction_example.dir/poisson_reconstruction_example.cpp.o:
In function `_GLOBAL__sub_I_main':
poisson_reconstruction_example.cpp:(.text.startup+0x2fa3): undefined
reference to `boost::system::generic_category()'
poisson_reconstruction_example.cpp:(.text.startup+0x2faf): undefined
reference to `boost::system::generic_category()'
poisson_reconstruction_example.cpp:(.text.startup+0x2fbb): undefined
reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [poisson_reconstruction_example] Error 1
make[1]: *** [CMakeFiles/poisson_reconstruction_example.dir/all] Error 2
make: *** [all] Error 2



> On 10/03/2014 10:57 AM,
>
> wrote:
>>
>> So I downloaded boost 1.56 and copied boost into /usr/local/include/
>> and now when I try and compile the example I get:
>>
>> ~/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3$ make
>> make[2]: *** No rule to make target `/usr/local/lib/libCGAL.so', needed
>> by
>> `poisson_reconstruction'. Stop.
>> make[1]: *** [CMakeFiles/poisson_reconstruction.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Thoughts? CGAL itself compiles just fine?
>
> CHeck that the lib is there. Maybe you cleaned more than expected.
> If not, try removing the file CMakeCache.txt and try again.
>
> Sebastien.
>
>>
>>
>>> On 10/03/2014 09:39 AM,
>>>
>>> wrote:
>>>> 1.55 - I tried a couple boost versions based on the error messages, is
>>>> there a preferred version?
>>>>
>>>
>>> In the file boost/thread/xtime.hpp of boost 1.55 I have
>>>
>>> 22: enum xtime_clock_types
>>> 23: {
>>> 24: TIME_UTC_=1
>>>
>>> No idea why you have such an error.
>>>
>>> Sebastien.
>>>
>>>> Thanks!
>>>>
>>>>> On 10/03/2014 09:18 AM,
>>>>>
>>>>> wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I am a new user and have tried to compile this example from a number
>>>>>> of
>>>>>> CGAL releases, I have also installed the requirements and
>>>>>> "reinstalled"
>>>>>> boost... Can someone please help me out? I'm not quite sure what the
>>>>>> hang-up is. Thank you in advance!
>>>>>>
>>>>>
>>>>> Look like a pb with the boost library. What version are you using?
>>>>>
>>>>> Sebastien.
>>>>>
>>>>>> kc
>>>>>>
>>>>>> ===========================================
>>>>>> ~/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3$ make
>>>>>> Scanning dependencies of target poisson_reconstruction
>>>>>> [ 50%] Building CXX object
>>>>>> CMakeFiles/poisson_reconstruction.dir/poisson_reconstruction.cpp.o
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier
>>>>>> before numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before
>>>>>> numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected
>>>>>> unqualified-id
>>>>>> before numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:46:14: error: expected
>>>>>> type-specifier
>>>>>> before ‘system_time’
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp: In function ‘int
>>>>>> xtime_get(xtime*,
>>>>>> int)’:
>>>>>> /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’
>>>>>> was
>>>>>> not declared in this scope
>>>>>> /usr/include/boost/thread/xtime.hpp:73:40: note: suggested
>>>>>> alternative:
>>>>>> In file included from /usr/include/boost/thread/locks.hpp:12:0,
>>>>>> from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:12,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/thread_time.hpp:19:24: note:
>>>>>> ‘boost::get_system_time’
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp: At global scope:
>>>>>> /usr/include/boost/thread/xtime.hpp:88:1: error: expected
>>>>>> declaration
>>>>>> before ‘}’ token
>>>>>> make[2]: ***
>>>>>> [CMakeFiles/poisson_reconstruction.dir/poisson_reconstruction.cpp.o]
>>>>>> Error
>>>>>> 1
>>>>>> make[1]: *** [CMakeFiles/poisson_reconstruction.dir/all] Error 2
>>>>>> make: *** [all] Error 2
>>>>>> kc@oblivion-tre:~/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3$
>>>>>> make
>>>>>> [ 50%] Building CXX object
>>>>>> CMakeFiles/poisson_reconstruction.dir/poisson_reconstruction.cpp.o
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier
>>>>>> before numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before
>>>>>> numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:23:5: error: expected
>>>>>> unqualified-id
>>>>>> before numeric constant
>>>>>> /usr/include/boost/thread/xtime.hpp:46:14: error: expected
>>>>>> type-specifier
>>>>>> before ‘system_time’
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp: In function ‘int
>>>>>> xtime_get(xtime*,
>>>>>> int)’:
>>>>>> /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’
>>>>>> was
>>>>>> not declared in this scope
>>>>>> /usr/include/boost/thread/xtime.hpp:73:40: note: suggested
>>>>>> alternative:
>>>>>> In file included from /usr/include/boost/thread/locks.hpp:12:0,
>>>>>> from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:12,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/thread_time.hpp:19:24: note:
>>>>>> ‘boost::get_system_time’
>>>>>> In file included from
>>>>>> /usr/include/boost/thread/pthread/mutex.hpp:14:0,
>>>>>> from /usr/include/boost/thread/mutex.hpp:16,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Kd_tree.h:34,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/K_neighbor_search.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/Orthogonal_k_neighbor_search.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/internal/AABB_tree/AABB_search_tree.h:24,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/../../include/CGAL/AABB_tree.h:28,
>>>>>> from
>>>>>> /home/kc/src/CGAL/CGAL-4.4/examples/Surface_reconstruction_points_3/poisson_reconstruction.cpp:12:
>>>>>> /usr/include/boost/thread/xtime.hpp: At global scope:
>>>>>> /usr/include/boost/thread/xtime.hpp:88:1: error: expected
>>>>>> declaration
>>>>>> before ‘}’ token
>>>>>> make[2]: ***
>>>>>> [CMakeFiles/poisson_reconstruction.dir/poisson_reconstruction.cpp.o]
>>>>>> Error
>>>>>> 1
>>>>>> make[1]: *** [CMakeFiles/poisson_reconstruction.dir/all] Error 2
>>>>>> make: *** [all] Error 2
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You are currently subscribed to cgal-discuss.
>>>>> To unsubscribe or access the archives, go to
>>>>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> You are currently subscribed to cgal-discuss.
>>> To unsubscribe or access the archives, go to
>>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
>





Archive powered by MHonArc 2.6.18.

Top of Page