errors on building qt sample of occt7.6

I successfully build v7.6 on debian 11 and managed to extend system environment in qtcreator to run OCCTOverview.pro, but build fails with these linker-errors:

/usr/bin/ld: warning: libTKCAF.so.7, needed by /usr/local/lib/libTKVCAF.so, may conflict with libTKCAF.so.11
/usr/bin/ld: Linux/objd/OcafSamples.o: undefined reference to symbol '_ZNK18TNaming_NamedShape8DumpJsonERSoi'
/usr/bin/ld: /usr/local/lib/libTKCAF.so.7: error adding symbols: DSO missing from command line