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, but build fails with these linker-errors:

/usr/bin/ld: warning:, needed by /usr/local/lib/, may conflict with
/usr/bin/ld: Linux/objd/OcafSamples.o: undefined reference to symbol '_ZNK18TNaming_NamedShape8DumpJsonERSoi'
/usr/bin/ld: /usr/local/lib/ error adding symbols: DSO missing from command line
Rick Rich's picture

I ran into the same problem. Have you solved this problem?????