按照博客上的教程进行编译 , 用的链接上下载的QT5.7 , 从git上clone的代码.但是编译失败,总是报这个错误 .
[ 98%] Building CXX object src/CMakeFiles/WizNote.dir/WizPositionDelegate.cpp.o
[ 98%] Building CXX object src/CMakeFiles/WizNote.dir/main.cpp.o
[100%] Building CXX object src/CMakeFiles/WizNote.dir/WizInitBizCertDialog.cpp.o
In file included from /home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/rsa.h:9:0,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/share/WizEnc.h:5,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/WizInitBizCertDialog.cpp:8:
/home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/pubkey.h: In member function 'CryptoPP::PK_MessageAccumulator* CryptoPP::DL_SignerImpl<SCHEME_OPTIONS>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const':
/home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/pubkey.h:1343:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
std::auto_ptr<PK_MessageAccumulatorBase> p(new PK_MessageAccumulatorImpl<CPP_TYPENAME SCHEME_OPTIONS::HashFunction>);
^
In file included from /usr/include/c++/5/memory:81:0,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/sync/WizJSONServerBase.h:4,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/sync/WizKMServer.h:5,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/WizInitBizCertDialog.cpp:4:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^
[100%] Building CXX object src/CMakeFiles/WizNote.dir/qrc_wiznote.cpp.o
[100%] Building CXX object src/CMakeFiles/WizNote.dir/WizNote_automoc.cpp.o
[100%] Linking CXX executable ../bin/WizNote
/usr/bin/ld: CMakeFiles/WizNote.dir/share/WizMd5.cpp.o: undefined reference to symbol '_ZNSt13runtime_errorC1EPKc@@GLIBCXX_3.4.21'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/WizNote] Error 1
make[1]: *** [src/CMakeFiles/WizNote.dir/all] Error 2
make: *** [all] Error 2
src/CMakeFiles/WizNote.dir/build.make:4153: recipe for target 'bin/WizNote' failed
CMakeFiles/Makefile2:1172: recipe for target 'src/CMakeFiles/WizNote.dir/all' failed
Makefile:127: recipe for target 'all' failed
17:22:07: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project Project (kit: Desktop Qt 5.7.0 GCC 64bit)
When executing step "Make"
17:22:07: Elapsed time: 06:18.
[ 98%] Building CXX object src/CMakeFiles/WizNote.dir/WizPositionDelegate.cpp.o
[ 98%] Building CXX object src/CMakeFiles/WizNote.dir/main.cpp.o
[100%] Building CXX object src/CMakeFiles/WizNote.dir/WizInitBizCertDialog.cpp.o
In file included from /home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/rsa.h:9:0,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/share/WizEnc.h:5,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/WizInitBizCertDialog.cpp:8:
/home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/pubkey.h: In member function 'CryptoPP::PK_MessageAccumulator* CryptoPP::DL_SignerImpl<SCHEME_OPTIONS>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const':
/home/lab712/Desktop/Development/WizTeam/WizQTClient/lib/cryptopp/pubkey.h:1343:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
std::auto_ptr<PK_MessageAccumulatorBase> p(new PK_MessageAccumulatorImpl<CPP_TYPENAME SCHEME_OPTIONS::HashFunction>);
^
In file included from /usr/include/c++/5/memory:81:0,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/sync/WizJSONServerBase.h:4,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/sync/WizKMServer.h:5,
from /home/lab712/Desktop/Development/WizTeam/WizQTClient/src/WizInitBizCertDialog.cpp:4:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^
[100%] Building CXX object src/CMakeFiles/WizNote.dir/qrc_wiznote.cpp.o
[100%] Building CXX object src/CMakeFiles/WizNote.dir/WizNote_automoc.cpp.o
[100%] Linking CXX executable ../bin/WizNote
/usr/bin/ld: CMakeFiles/WizNote.dir/share/WizMd5.cpp.o: undefined reference to symbol '_ZNSt13runtime_errorC1EPKc@@GLIBCXX_3.4.21'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/WizNote] Error 1
make[1]: *** [src/CMakeFiles/WizNote.dir/all] Error 2
make: *** [all] Error 2
src/CMakeFiles/WizNote.dir/build.make:4153: recipe for target 'bin/WizNote' failed
CMakeFiles/Makefile2:1172: recipe for target 'src/CMakeFiles/WizNote.dir/all' failed
Makefile:127: recipe for target 'all' failed
17:22:07: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project Project (kit: Desktop Qt 5.7.0 GCC 64bit)
When executing step "Make"
17:22:07: Elapsed time: 06:18.











