[Solved] TBB with GCC, using Netbeans - Raspberry Pi Forums


i'm trying tbb -library working in code. i'm using netbeans, compiling/running in raspberry pi 3b on ssh connection. i'm pretty noob linux / raspberry , including these more complicated libraries.

include gives no error, creating task_group does:

code: select all

#include <tbb/tbb.h> using namespace tbb; task_group g;
results in:

code: select all

in function `tbb::internal::throw_exception(tbb::internal::exception_id)': /usr/include/tbb/tbb_exception.h:117: undefined reference `tbb::internal::throw_exception_v4(tbb::internal::exception_id)'
think it's because don't have library installation right. don't know how add correct line in "additional options" compiler. should add -ltbb or related that, whatever try says can't find location/file.

i'm following instructions , leads old forum posts. have general idea what's going on, couldn't come myself.

whole process did this
downloaded library .tgz , extracted it.

code: select all

tar -xvzf tbb2017_20161004oss_src.tgz
modified 2 lines in linux.gcc.inc somewhere around lines 72 + 74 add this:

code: select all

cplus_flags+=-dtbb_use_gcc_builtins=1 -d__tbb_64bit_atomics=0
did "make" successfully.

code: select all

cd /home/pi/tbb2017_20161004oss/ make
ran source tbbvars.sh in newly appeared folders in ./build/

code: select all

cd ./build/linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.13_debug/ source tbbvars.sh cd .. cd ./build/linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.13_release/ source tbbvars.sh
copied folders /usr/lib/

code: select all

sudo cp -r ./linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.13_debug/ /usr/lib/ sudo cp -r ./linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.13_release/ /usr/lib/
in netbeans tried out kinds of combinations 1 one "-ltbb -llibtbb_debug -l/usr/lib/linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.13_debug/......etc" lines have in additional options other parts of code "-lpq -l/usr/lib/arm-linux-gnueabihf -lcurl -std=c++11", i've tried add after those.
either complains can't find files or without them complains can't find somehting .h -files trying access.

believe i'm making kind of terrible newbie mistake, missing important step or such. should have in /opt/ or something?

post helped me in compiling library raspberry:
https://software.intel.com/en-us/forums ... pic/500680

is not possible "sudo make install" after "make" ?
have been considerate of library creator.


raspberrypi



Comments