Hi,
I
am able to successfully install deal-ii with petsc, p4est and metis,
and am able to run the examples that use those libraries after the
installation finishes.
And yet, when I try to compile those same examples separately, i.e., if I copy them to some other path and do, for example:
cd step-2/build
cmake .. -DDEAL_II_DIR=path/to/deal-ii/install
make,
then the
compilation fails during the linking phase. A brief snapshot of the
errors is copied below. Please advise, how do I fix this?
Error message (partial):
CMakeFiles/step-2.dir/step-2.cc.o:step-2.cc:function
tbb::detail::d1::task_group_context::~task_group_context(): error:
undefined reference to
'tbb::detail::r1::destroy(tbb::detail::d1::task_group_context&)'
CMakeFiles/step-2.dir/step-2.cc.o:step-2.cc:function
tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<unsigned
long>, dealii::parallel::ParallelForInteger::apply_parallel(unsigned
long, unsigned long, unsigned long)
const::{lambda(tbb::detail::d1::blocked_range<unsigned long>
const&)#1}, tbb::detail::d1::auto_partitioner
const>::finalize(tbb::detail::d1::execution_data const&): error:
undefined r
eference
to
'tbb::detail::r1::deallocate(tbb::detail::d1::small_object_pool&,
void*, unsigned long, tbb::detail::d1::execution_data const&)'
CMakeFiles/step-2.dir/step-2.cc.o:step-2.cc:function
tbb::detail::d1::start_for<tbb::detail::d1::blocked_range<unsigned
long>, dealii::parallel::ParallelForInteger::apply_parallel(unsigned
long, unsigned
long,
unsigned long)
const::{lambda(tbb::detail::d1::blocked_range<unsigned long>
const&)#1}, tbb::detail::d1::auto_partitioner
const>::finalize(tbb::detail::d1::execution_data const&): error:
undefined reference to 'tbb::detail::r1::notify_waiters(unsigned long)'