I am trying to compile Falkon browser in yocto using qt5, aftre resloved so many errors getting error like below on cmake.
| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:7 (message):
| SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:1 (find_package)
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:459 (include)
| CMakeLists.txt:15 (include)
| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:43 (message):
| Failed call: qmake-qt5 -query "QT_INSTALL_PREFIX"
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
| CMakeLists.txt:15 (include)
| CMake Error at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:44 (message):
| QMake call failed: No such file or directory
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
| CMakeLists.txt:15 (include)
BELOW IS MY RECIPE
DESCRIPTION = "falkon browser"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM=file://LICENSE.GPLv3;md5=8f0e2cd40e05189ec81232da84bd6e1a"
inherit qmake5 cmake systemd
require recipes-qt/qt5/qt5-git.inc
SRC_URI = "git://anongit.kde.org/falkon.git"
SRCREV = "${AUTOREV}"
DEPENDS = "qtbase qtdeclarative qtwebengine"
S = "${WORKDIR}/git"
PACKAGECONFIG ?= ""
PACKAGECONFIG[desktop] = "-DDESKTOP_BUILD,,"
RDEPENDS_${PN} += " \
extra-cmake-modules \
qtvirtualkeyboard \
qtquickcontrols \
qtwebengine \
qtgraphicaleffects \
qtmultimedia \
ttf-dejavu \
"
Is there anything to add extra. I think installations variable problems?
You just open the Cmakefiles.txt in falkon source check the required qt5 version.
I think this falkon browser requires atleast qt5.9. I guess you are using lowest version. So upgtrade your qt5 version to qt5.9.
or go for low version of falkon which requires qt5.6.
Related
I have a directory qt project with a application (customqtapp) and two libraries (libprotocustom and libcustom).
I created a simple yocto recipe inherit qmake5.
All works fine if the target install dir is /usr/bin for application and /usr/lib for libraries but don't work if
the target install directories are /usr/local/bin and /usr/local/lib
project.pro
SUBDIRS += \
libprotocustom \
libcustom \
customqtapp
...
libprotocustom.pro
target.path=/usr/local/lib
INSTALL = target
...
libcustom.pro
target.path=/usr/local/lib
INSTALL = target
...
customqtapp.pro
target.path=/usr/local/bin
INSTALL = target
...
customqtapp.bb
SUMMARY = "customqtapp"
SRC_URI = " git:///customqt.git;protocol=file;branch=master "
SRCREV = "master"
S = "${WORKDIR}/git"
inherit qmake5
The error messages was
ERROR: customqtapp-1.0.0-r0 do_package: QA Issue: customqtapp: Files/directories were installed but not shipped in any package:
/usr/local/lib/libprotocustom.so.1.0.0
/usr/local/lib/libprotocustom.so.1.0
/usr/local/lib/libprotocustom.so
/usr/local/lib/libprotocustom.so.1
/usr/local/lib/liblibcustom.so.1.0.0
/usr/local/lib/liblibcustom.so.1
/usr/local/lib/liblibcustom.so
/usr/local/lib/liblibcustom.so.1.0
/usr/local/bin/customqtapp
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
customqtapp: 11 installed and not shipped files. [installed-vs-shipped]
ERROR: customqtapp-1.0.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package.6581
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package) failed with exit code '1'
So I added the files to FILES variable in recipe
FILES_${PN} = "\
/usr/local/sbin \
/usr/local/lib/libprotocustom.so.1.0.0 \
/usr/local/lib/libprotocustom.so.1.0 \
/usr/local/lib/libprotocustom.so \
/usr/local/lib/libprotocustom.so.1 \
/usr/local/lib/liblibcustom.so.1.0.0 \
/usr/local/lib/liblibcustom.so.1 \
/usr/local/lib/liblibcustom.so \
/usr/local/lib/liblibcustom.so.1.0 \
/usr/local/bin/customqtapp \
"
But don't work
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/libprotocustom.so'
non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/liblibcustom.so' [dev-so]
WARNING: customqtapp-1.0.0-r0 do_package_qa: QA Issue: customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/libprotocustom.so.1.0.0
customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0 [libdir]
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package_qa.7056
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package_qa) failed with exit code '1'
some ideas?
Thanks in advance.
I'm trying to add sqlite support in my rust project. I found rusqlite on crates.io. I added the version line to Cargo.toml. I added some imports (unused) that I found on the rusqlite docs page. After running car go build I revived an error.
I hadn't implemented anything yet. I just wanted to get the dependency added and compiling. main.rs:
extern crate rusqlite;
use rusqlite::{Connection, Result};
use rusqlite::NO_PARAMS;
Cargo.toml:
[package]
name = "program"
version = "0.1.0"
authors = ["97"]
[dependencies]
argparse = "0.2.2"
rand = "0.4.0"
rusqlite = "0.20.0"
Error recived:
$ cargo build
Compiling pkg-config v0.3.16
Compiling fallible-iterator v0.2.0
Compiling memchr v2.2.1
Compiling bitflags v1.2.1
Compiling lru-cache v0.1.2
error[E0432]: unresolved import `std::ops::Bound`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:72:16
|
72 | use std::ops::{Bound, RangeBounds};
| ^^^^^ no `Bound` in `ops`
error[E0432]: unresolved import `std::ops::RangeBounds`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:72:23
|
72 | use std::ops::{Bound, RangeBounds};
| ^^^^^^^^^^^ no `RangeBounds` in `ops`
error[E0658]: `dyn Trait` syntax is unstable (see issue #44662)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:143:32
|
143 | fn cause(&self) -> Option<&dyn error::Error> {
| ^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
error: Could not compile `pkg-config`.
warning: build failed, waiting for other jobs to finish...
error[E0658]: `crate` in paths is experimental (see issue #45477)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/fallible-iterator-0.2.0/src/lib.rs:98:5
|
98 | use crate::imports::*;
| ^^^^^
error[E0658]: `dyn Trait` syntax is unstable (see issue #44662)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/fallible-iterator-0.2.0/src/lib.rs:2606:24
|
2606 | fn _is_object_safe(_: &dyn DoubleEndedFallibleIterator<Item = (), Error = ()>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
error: Could not compile `fallible-iterator`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Edit
cargo 0.26.0 (41480f5cc 2018-02-26)
rustc 1.25.0 (84203cac6 2018-03-25)
Most crates support only the latest Rust version. You could try to use an older version of the crate, but the easiest way is to update Rust to a currently-supported version.
If you're using Rust from a Linux distro, then uninstall it, and get it from https://rustup.rs which can keep it up to date. Rust ecosystem moves much faster than most distributions.
Run rustup update.
I'm use openstack queens and devstack,ubuntu16.04
I want to create a dashboard,when i use follow commands
$ mkdir openstack_dashboard/dashboards/mydashboard
$ tox -e manage -- startdash mydashboard --target openstack_dashboard/dashboards/mydashboard
from openstack website https://docs.openstack.org/horizon/queens/contributor/tutorials/dashboard.html#the-quick-version
i get errors:
js#dmdb-23:~/Desktop/openstack.bak/stack/horizon$ tox -e manage -- startdash mydashboard --target openstack_dashboard/dashboards/mydashboard
manage develop-inst-noop: /home/js/Desktop/openstack.bak/stack/horizon
manage installed: horizon==13.0.2.dev22
manage run-test-pre: PYTHONHASHSEED='2095316472'
manage runtests: commands[0] |
/home/js/Desktop/openstack.bak/stack/horizon/.tox/manage/bin/python
/home/js/Desktop/openstack.bak/stack/horizon/manage.py startdash
mydashboard --target openstack_dashboard/dashboards/mydashboard
Traceback (most recent call last): File "/home/js/Desktop/openstack.bak/stack/horizon/manage.py", line 18, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management ERROR:
InvocationError for command
'/home/js/Desktop/openstack.bak/stack/horizon/.tox/manage/bin/python
/home/js/Desktop/openstack.bak/stack/horizon/manage.py startdash
mydashboard --target openstack_dashboard/dashboards/mydashboard'
(exited with code 1)
This is the first time i answer questions,so the format may be poor,but i hope someone can help me ,thanks a lot.
I was install openstack swift-all-in-one on my virtual mechine with system Ubuntu Destop 14.04.
It told me that my liberausercode has deprecating version that I need to upgrade when I excute '$HOME/swift/.unittests' in terminal. But the question is how can I upgrade it.
Here is the response:
liberasurecode[11645]: liberasurecode_backend_open: dynamic linking error libJerasure.so.2: cannot open shared object file: No such file or directory
ERROR: Failure: MissingSectionHeaderError (File contains no section headers. file: /etc/swift/swift.confg, line: 1 ' cd $HOME/swift/doc; sudo cp -r saio/swift /etc/swift; cd -\n')
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
MissingSectionHeaderError: File contains no section headers.
file: /etc/swift/swift.confg, line: 1
' cd $HOME/swift/doc; sudo cp -r saio/swift /etc/swift; cd -\n'
pyeclib: WARNING: DEPRECATED WARNING: your liberasurecode 1.0.9 will be deprecated in the near future because of the issue https://bugs.launchpad.net/swift/+bug/1639691; Please upgrade to >=1.3.1 and rebuild pyeclib to suppress this message
--------------------- >> end captured logging << ---------------------
FAILED (errors=1)
/root
On websit : https://github.com/openstack/liberasurecode, I find the answer how to update the library.
Carefully followed the inscructions at: https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-CentOS-6.6
Get to the very end and it fails. Rather frustrating. Any idea what the problem might be?
-- Found LIBGLOG: /usr/local/lib/libglog.so
-- Could NOT find LIBINOTIFY (missing: LIBINOTIFY_LIBRARY)
-- Could NOT find LIBICONV (missing: LIBICONV_LIBRARY)
-- Performing Test LIBICONV_CONST
-- Performing Test LIBICONV_CONST - Failed
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Found LIBMEMCACHED: /usr/local/lib/libmemcached.so
-- Found PCRE: /usr/lib64/libpcre.so
-- Performing Test SYSTEM_PCRE_HAS_JIT
-- Performing Test SYSTEM_PCRE_HAS_JIT - Failed
-- System PCRE does not have JIT enabled - will use hhvm-third-party/pcre
-- Found libevent: /usr/lib64/libevent.so
-- Looking for evhttp_bind_socket_with_fd
-- Looking for evhttp_bind_socket_with_fd - not found
-- Could NOT find LibUODBC (missing: LIBODBC_LIBRARIES LIBODBC_INCLUDE_DIRS)
-- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
-- Looking for curl_multi_select
-- Looking for curl_multi_select - not found
-- Looking for curl_multi_wait
-- Looking for curl_multi_wait - not found
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found LibXslt: /usr/lib64/libxslt.so (found version "1.1.26")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.0.1")
-- Using third-party bundled libsqlite3
-- Could NOT find DOUBLE_CONVERSION (missing: DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR)
-- Using third-party bundled double-conversion
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
-- Using third-party bundled LZ4
-- Could NOT find FastLZ (missing: FASTLZ_LIBRARY FASTLZ_INCLUDE_DIR)
-- Using third-party bundled fastlz
-- Could NOT find LIBZIP (missing: LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR_ZIP LIBZIP_INCLUDE_DIR_ZIPCONF)
-- Using third-party bundled libzip
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Performing Test JEMALLOC_VERSION_MINIMUM
-- Performing Test JEMALLOC_VERSION_MINIMUM - Success
-- Found jemalloc: /usr/local/lib/libjemalloc.so
-- Found Intel TBB
CMake Error at CMake/FindMcrypt.cmake:31 (message):
Could NOT find mcrypt library.
Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:306 (find_package)
CMake/HPHPSetup.cmake:125 (include)
third-party/CMakeLists.txt:18 (include)
-- Configuring incomplete, errors occurred!
See also "/usr/local/hhvm/CMakeFiles/CMakeOutput.log".
See also "/usr/local/hhvm/CMakeFiles/CMakeError.log".
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# hhvm --version
-bash: hhvm: command not found
gahoachma#remote [/usr/local/hhvm]#