为知笔记吧 关注:9,423贴子:71,685
  • 7回复贴,共1

Ubuntu 16.04 编译失败!!!!

取消只看楼主收藏回复

QT编译最后一步链接出错, 咋办?


IP属地:上海1楼2017-03-07 09:58回复
    按照博客上的教程进行编译 , 用的链接上下载的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.


    IP属地:上海2楼2017-03-07 09:59
    回复
      2026-02-26 17:02:58
      广告
      不感兴趣
      开通SVIP免广告


      IP属地:上海3楼2017-03-07 10:00
      回复
        问微信客服 , 发邮件
        都没人给解决 , 快要要倒闭了吗?
        代码都放出来了, 为啥不出个安装包呢?


        IP属地:上海4楼2017-03-07 10:02
        收起回复
          来贴个Linux不用编译的解决办法.
          1. 下载QT5.7安装好
          2. 到这里 https://www.archlinux.org/packages/community/x86_64/wiznote/ 下载已经编译好的Wiznote
          3. 把/Qt5.7.0/5.7/gcc_64/lib 加入环境变量里
          4. 就可以运行了
          搞不懂为知笔记官方怎么想的,就是不给编译好的安装包,源码编译这么多错误,搞的怎么恶心.
          不知道好多人就是因为有linux版才用wiz的吗?


          IP属地:上海9楼2017-03-13 20:11
          回复
            WizNote的输入法问题解决:
            问题是QT5.7里没有这个东西:
            /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
            安装QT5的fcitx然后把上面那个文件复制到下面两个位置:
            /opt/Qt5.7.0/5.7/gcc_64/plugins/platforminputcontexts/

            /opt/Qt5.7.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
            QT5.8现在有bug不管用
            最后再次警告一下为知笔记.
            别让我再遇到任何bug,我见一次一次

            收费了还做这么差


            IP属地:上海10楼2017-03-13 20:14
            回复
              来贴个Linux不用编译的解决办法.
              1. 下载QT5.7安装好
              2. 到这里 https://www.archlinux.org/packages/community/x86_64/wiznote/ 下载已经编译好的Wiznote
              3. 把/Qt5.7.0/5.7/gcc_64/lib 加入环境变量里
              4. 就可以运行了
              搞不懂为知笔记官方怎么想的,就是不给编译好的安装包,源码编译这么多错误,搞的怎么恶心.
              不知道好多人就是因为有linux版才用wiz的吗?


              IP属地:上海11楼2017-03-13 20:18
              收起回复
                百度还吞我贴?
                拿贴吧做论坛我也是服了.....


                IP属地:上海12楼2017-03-13 20:21
                收起回复