2017-11-30 8 views
-1

私はQMLを使用して、次のエラーを得たa sample Rust programをコンパイルしようとした "QMLのv0.0.9を" コンパイルエラーを示しています貨物が

error: failed to run custom build command for `qml v0.0.9` 
process didn't exit successfully: `/home/olaf/SourceCode/rust_projects/sousa/target/debug/build/qml-cf7d687f9f68bd13/build-script-build` (exit code: 101) 
--- stderr 
thread 'main' panicked at 'Cannot build qrc resource: 
-- The C compiler identification is GNU 5.4.0 
-- The CXX compiler identification is GNU 5.4.0 
-- Check for working C compiler: /usr/bin/cc 
-- Check for working C compiler: /usr/bin/cc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Detecting C compile features 
-- Detecting C compile features - done 
-- Check for working CXX compiler: /usr/bin/c++  
-- Check for working CXX compiler: /usr/bin/c++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
-- Found Doxygen: /usr/bin/doxygen (found version \"1.8.11\") 
-- Configuring incomplete, errors occurred! 
See also \"/home/olaf/SourceCode/rust_projects/sousa/target/debug/build/qml-29ff7d8391813cc4/out/DOtherSide/build/CMakeFiles/CMakeOutput.log\"." 
"Klone nach \'DOtherSide\' ... 
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message): 
    The imported target \"Qt5::Core\" references the file 

    \"/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1\" 

    but this file does not exist. Possible reasons include: 
    * The file was deleted, renamed, or moved to another location. 
    * An install or uninstall procedure did not complete successfully. 
    * The installation package was faulty and contained 

    \"/usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake\" 

    but not all the files it references. 

Call Stack (most recent call first): 
    /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:43 (_qt5_Core_check_file_exists) 
    /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:134 (_populate_Core_target_properties) 
    lib/CMakeLists.txt:10 (find_package) 

"', /home/olaf/.cargo/registry/src/github.com-1ecc6299db9ec823/qml-0.0.9/build.rs:32:8 
note: Run with `RUST_BACKTRACE=1` for a backtrace. 

編集:私はQtの5.8、5.9.1および5.9をインストールしている 。 3であるが、私のホームフォルダ〜/ Qtにインストールされているので、Cargoが/ usr/lib /どこか他の場所を探していると思う。 Qargを探す場所をCargoに伝えるにはどうすればよいですか? Qtの特定のパッケージを/ usr/lib/...の下にインストールする必要がありますか?あなたがエラーで見ることができるように

答えて

0

は、問題がある(Qtの動的ライブラリ)を使用すると、あなたのマシン上でのQtのこのバージョンをインストールする必要があることを意味し、存在しないファイル/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1います。

UbuntuまたはUbuntu派生ディストリビューションの場合は、hereの指示に従ってインストールすることができます。

+0

Thx ...私は私の質問を変えました。 libQt5Core.soがインストールされていますが、正しい場所にはありません。 –

+0

Qtランタイムを/ usr/lib/x86にインストールするためのインストールルーチンもありますか? –

関連する問題