Installing package failed when trying to run to application to Meego - qt

I'm trying to run a Hamattan Application on a Meego Device, but everytime I try to run it into the Meego device:
:-1: error: Installing package failed.
always appears. But sometimes when I check my phone the application is there and it's running.
In Settings->Applications->Manage Applications it says there:
Test2
Installation Failed
Please Help me. Thank you very much!
Compile Output:
Running build steps for project test2...
Configuration unchanged, skipping qmake step.
Starting: "C:\qtsdk\madde\bin\make.exe" -w
make: Entering directory `/c/Users/bcue/Qt/test2'
make: Nothing to be done for `first'.
make: Leaving directory `/c/Users/bcue/Qt/test2'
The process "C:\qtsdk\madde\bin\make.exe" exited normally.
Creating package file ...
Package Creation: Running command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us'.
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package test2
dpkg-buildpackage: source version 0.0.1
dpkg-buildpackage: source changed by unknown <>
dpkg-buildpackage: host architecture armel
which: pgp: unknown command
debian/rules build
make: Nothing to be done for `build'.
debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/test2.
/usr/bin/make INSTALL_ROOT="/c/Users/bcue/Qt/test2"/debian/test2 install
make[1]: Entering directory `/c/Users/bcue/Qt/test2'
install -m 644 -p c:/Users/bcue/Qt/test2/test2.desktop /c/Users/bcue/Qt/test2/debian/test2/usr/share/applications/
install -m 644 -p c:/Users/bcue/Qt/test2/test2.png /c/Users/bcue/Qt/test2/debian/test2/usr/share/icons/hicolor/64x64/apps/
install -m 755 -p "test2" "/c/Users/bcue/Qt/test2/debian/test2/opt/test2/bin/test2"
make[1]: Leaving directory `/c/Users/bcue/Qt/test2'
sed 's:^Icon=.*:Icon=/usr/share/icons/hicolor/64x64/apps/test2.png:' /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop > /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed || echo -n
mv /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop || echo -n
sed 's:Exec=.*:Exec=/opt/test2/bin/test2:' /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop > /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed || echo -n
mv /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop || echo -n
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-shlibdeps: warning: dependency on libgcc_s.so.1 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libmdeclarativecache.so.0 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
a - debian-binary
a - control.tar.gz
a - data.tar.gz
dpkg-buildpackage: binary only upload (no source included)
Use of uninitialized value in undef operator at /madbin/dpkg-buildpackage line 369.
dpkg-genchanges -b -u.. >../test2_0.0.1_armel.changes
dpkg-genchanges: binary-only upload - not including any source code
Package created.
Installing package to sysroot ...
c:\Users\bcue\Qt\qt-components-qt-components\C;c:\qtsdk\madde\Users\bcue\Qt\test2\test2_0_0_1_armel.deb: No such file or directory
c:\qtsdk\madde\targets\harmattan-nokia-meego-api\bin\ar.exe:
Cannot find package name (in debian control file).
Connecting to device...
Started uploading file 'C:\Users\bcue\Qt\test2\test2_0_0_1_armel.deb'.
Successfully uploaded file 'C:\Users\bcue\Qt\test2\test2_0_0_1_armel.deb'.
Installing package to device...
warning, in file '/var/lib/dpkg/status' near line 663 package 'mp-harmattan-rm680-pr':
missing description
(Reading database ...
29097 files and directories currently installed.)
Preparing to replace test2 0.0.1 (using .../test2_0_0_1_armel.deb) ...
Unpacking replacement test2 ...
aegis-installing test2 (from 'com.nokia.maemo')
dpkg: dependency problems prevent configuration of test2:
test2 depends on libqt4-declarative (>= 4.7.4~git20110516); however:
Version of libqt4-declarative on system is 4.7.3~git20110329-0maemo1+0m6.
test2 depends on libqtcore4 (>= 4.7.4~git20110516); however:
Version of libqtcore4 on system is 4.7.3~git20110329-0maemo1+0m6.
test2 depends on libqtgui4 (>= 4.7.4~git20110516); however:
Version of libqtgui4 on system is 4.7.3~git20110329-0maemo1+0m6.
dpkg: error processing test2 (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Errors were encountered while processing:
test2
Deployment failed.
Error while building project test2 (target: Harmattan)
When executing build step 'Deploy to Harmattan device'

did you updated your Qt Creator? (2.3.1 if I'm not wrong)
the update bring along the updated SDK for the meego harmattan,.
in that case you should also update your meego phone too because there's some dependency for the newest library. (read the error, dependency-problem)
check here for the update package
http://www.developer.nokia.com/search/search.xhtml?view=ebs&hv=fn:type%3DfnType:Terminal&s=ft&tl=0&ob=best&me=false&l=20&expandDoc=false&k=N950+device+update&oldK=N950+device+update
this one problem makes me revert my QtCreator to the old one , I'm not allowed to upgrade the phone. duh

Related

Kallisto build keeps failing when attempting to link CXX executable

I'm super new to coding in general so apologies for any lack of clarity or conciseness. I'm attempting to make a build for Kallisto to use in RNA sequence alignment and I'm getting stuck at the "make" stage. The cmake was successful after a little fiddling and downloading a CXX compiler, but the make keep exiting with an error status:
[ 27%] Built target htslib
[ 93%] Built target kallisto_core
[ 96%] Linking CXX executable kallisto
/home/wahanson/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/kallisto.dir/build.make:88: src/kallisto] Error 1
make[1]: *** [CMakeFiles/Makefile2:130: src/CMakeFiles/kallisto.dir/all] Error 2
the main error appears to be "cannot find -lz" causing the subsequent errors. From what I understand, this is referencing zlib1g-dev and/or an inability to find it within the path. I have installed zlib1g-dev through conda and made sure to update to no avail. If anyone could let me know what I'm missing or a next place to look it'd be much appreciated. Thanks!
The error looks like the zlib package was not installed in the env. Fortunately, I've recently built kallisto and can share the Conda environment I have been using, which I've tested on both osx-64 and linux-64 platforms:
kallisto-build.yaml
name: kallisto-build
channels:
- bioconda
- r
- conda-forge
- defaults
dependencies:
- autoconf
- automake
- hdf5
- cmake
- cxx-compiler
- zlib
Create and then activate this environment:
conda env create -f kallisto-build.yaml
conda activate kallisto-build
then follow the kallisto instructions for building from source.

"How to fix 'error: command 'gcc' failed with exit status 1' while installing "SudachiPy" python package?

I am working in building Japanese NLP sentiment analysis, to tokenise the Japanese sentence we have a package called "SudachiPy".I tried to install it but I am getting error while installing the package. I'm using anaconda in MAC Book pro.
I tried all the steps mentioned in stack overflow by installing following libraries to debug the error.
pip3 install python3-dev
Also I tried launching an "Ubuntu" instance from AWS and try to install "SudachiPy" but still encountering the same error.
pip3 install SudachiPy
Building wheels for collected packages: dartsclone
Building wheel for dartsclone (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lf/4754h1x94x39xfw_q6c8_ryc0000gn/T/pip-install-st3sqcmm/dartsclone/setup.py'"'"'; __file__='"'"'/private/var/folders/lf/4754h1x94x39xfw_q6c8_ryc0000gn/T/pip-install-st3sqcmm/dartsclone/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/lf/4754h1x94x39xfw_q6c8_ryc0000gn/T/pip-wheel-x8k1ryul --python-tag cp36
cwd: /private/var/folders/lf/4754h1x94x39xfw_q6c8_ryc0000gn/T/pip-install-st3sqcmm/dartsclone/
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/dartsclone
copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/dartsclone
running build_ext
cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
/anaconda3/lib/python3.6/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/lf/4754h1x94x39xfw_q6c8_ryc0000gn/T/pip-install-st3sqcmm/dartsclone/dartsclone/_dartsclone.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
building 'dartsclone._dartsclone' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/dartsclone
creating build/temp.macosx-10.7-x86_64-3.6/csrc
creating build/temp.macosx-10.7-x86_64-3.6/csrc/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I./csrc/include -I/anaconda3/include/python3.6m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.6/dartsclone/_dartsclone.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
#include "ios"
^~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for dartsclone
You need to install some deps before, similar to Linux build-essential:
xcode-select install
Also, you may need to specify the right compiler, by setting this env. variable:
CFLAGS='-stdlib=libc++'

Rserve : ld: library not found for -lssl

I am getting an error while trying to install Rserve 1.8.6. I can successfully install 1.7.3 from CRAN. This is on Mac OS High Sierra.
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [forward] Error 1
make: *** [all] Error 2
ERROR: compilation failed for package ‘Rserve’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
The downloaded source packages are in
‘/private/var/folders/v7/hyxrfmk94p1_03gdrm27fnxncy3vq1/T/RtmpFHKNMe/downloaded_packages’
This worked for me (MacOS):
In terminal:
brew install openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
I'm running Mac OS 10.15 Catalina, I've spent 2 days trying to fix this same problem, scouring the internet for help. I finally managed it by cobbling together solutions from a few different sources.
The key thing I was missing was that Mac OS ships with its own version of openssl which it thinks is superior to anything else you can find. It is wrong. What you need to do is go and download the latest version of openssl, install that, then export THAT library to your library path variable. Here are the steps I took with openssl 1.1.1:
Get the version number for the latest version of openssl from the source (https://www.openssl.org/source/) and then manually install it directly where it's supposed to go:
cd /usr/local/src
If you're getting "No such file or directory", make it:
cd /usr/local && mkdir src && cd src
Download openssl using curl (shown) or using the link above to the source code (make sure you put the file in the directory you just made in the previous step):
curl --remote-name https://www.openssl.org/source/openssl-1.1.1f.tar.gz
Extract and cd in:
tar -xzvf openssl-1.1.1f.tar.gz
cd openssl-1.1.1f
Compile and install (these are the 64 bit Mac OS instructions. Refer to the openssl documentation for 32 bit and other OS instructions):
./Configure darwin64-x86_64-cc shared enable-ec_nistp_64_gcc_128 no-ssl2 no-ssl3 no-comp --openssldir=/usr/local/ssl/macos-x86_64
make depend
sudo make install
This created a new openssl folder so when you export the library path you have to feed it the right openssl folder:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl#1.1/lib/
Hope that helps you if you haven't figured it out yet, and anyone else in the future who is ready to chuck their computer across the room, like I was.

How to build a Xen unikernel of Mirage OS

I read this document(http://openmirage.org/wiki/hello-world) and tried to build a xen unikernel as follows:
mirage configure --xen
make depend
make
But failed at compilation:
ocamlbuild -classic-display -use-ocamlfind -pkgs lwt.syntax,mirage-console.xen,mirage-types.lwt -tags "syntax(camlp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -syntax(camlp4o)" -cflag -g -lflags -g,-linkpkg,-dontlink,unix main.native.o
ocamlfind ocamldep -package mirage-types.lwt -package mirage-console.xen -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package mirage-types.lwt -package mirage-console.xen -package lwt.syntax -syntax camlp4o -o main.cmo main.ml
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package mirage-types.lwt -package mirage-console.xen -package lwt.syntax -syntax camlp4o -o main.cmx main.ml
pkg-config --print-errors --exists mirage-xen
Package mirage-xen was not found in the pkg-config search path.
Perhaps you should add the directory containing `mirage-xen.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mirage-xen' found
make: *** [build] Error 1
I installed mirage-xen by opam install mirage-xen successfully.
But in my .opam directory, there are no mirage-xen.pc.
They should appear in your OPAM prefix. I get:
$ ls $(opam config var prefix)/lib/pkgconfig
gmp.pc mirage-xen-ocaml-bindings.pc mirage-xen-posix.pc
libminios-xen.pc mirage-xen-ocaml.pc openlibm.pc
mirage-xen-minios.pc mirage-xen.pc
(you may have fewer; mirage-xen.pc is the important one)
Assuming they're there, check the project's Makefile is setting PKG_CONFIG_PATH correctly.
Chances are that your version of mirage-xen is out of date. You can update it via OPAM by:
opam update -u
opam info mirage-xen
Make sure that you have mirage-xen version 2.1.1 or greater (the latest as of this comment is 2.1.3).
If you don't pick up the upgrade, then you may have a local Git checkout of the central package database. Confirm this by looking at the output of:
opam remote
The output of this should tell you where your local git checkout is, and so navigate there and refresh from git://github.com/ocaml/opam-repository and then run opam update -u.

"Unable to compile a JNI program" when installing rJava [duplicate]

I am not able to call rJava package in R 3.0. I got the following message
Error: package ‘rJava’ was built before R 3.0.0: please re-install it
I am getting error when I tried to re-install rJava package. I have provided the output of R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.7.0_21
Java home path : /usr/lib/jvm/java-7-openjdk-i386/jre
Java compiler : /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javac
Java headers gen.: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javah
Java archive tool: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/jar
trying to compile and link a JNI progam
detected JNI cpp flags :
detected JNI linker flags :
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O2 -pipe -g -c conftest.c -o conftest.o
conftest.c:1:17: fatal error: jni.h: No such file or directory
compilation terminated.
make: *** [conftest.o] Error 1
Unable to compile a JNI program
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib/R
Done.
I am using Ubuntu 13.04. I also tried apt-get install r-cran-rjava which is not helping to solve the issue. Regarding jni.h there were some solution here. But, not sure how can I use the solution here.
I ran into the exact same issue. My solution was to install the openjdk-7-* via
sudo apt-get install openjdk-7-*
Followed that with
sudo R CMD javareconf
and I was then able to install rJava in R via install.packages("rJava").
While perhaps not the most elegant solution it appears to have solved my problems with getting rJava to work.
For those getting the error:
error: unable to load shared object '/some/dir/rJava/libs/rJava.so': libjvm.so:
cannot open shared object file: No such file or directory
I solved the error locating the library in the system and linking them to /usr/lib:
$sudo updatedb
$locate libjvm.so
/usr/lib/debug/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
/usr/lib/debug/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/zero/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jamvm/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/zero/libjvm.so
$sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib/
Installing rJava from the distribution packages as proposed in this askUbuntu answer also works:
sudo apt-get install r-cran-rjava
NOTE: tried from a Debian system.
I was also facing same error which was on RHEL8.1 & i resolved it as follows:
yum --enablerepo=* install java-1.8*
later i ran same command which was giving me error logs of R server.
R CMD javareconf
which turns into following output.

Resources