Re: [SailfishDevel] Building/Deploying app fails with 1312 SDK
Hello, Thanks for your reply, apparently I hadn't read a part of your reply (I was viewing it on my N900). I discovered the other part of your reply only when I reread the message on my computer ;) Well, anyway, I have now just created a new project and copied over my C++ source files and .qml's, I also edited the main.cpp/QuickClamshell.cpp to this one (thanks Artem! :) ) and my app now runs in the emulator of the 1312 SDK release. It also created i586 RPMs. But unfortunately for some reason it doesn't create armv7hl RPMs when I switch to the armv7hl target and build it with MerSDK-SailfishOS-armv7hl -gt; Release -gt; Deploy As RPM or Deploy By Building An RPM Package (the run option is grayed out when the armv7hl target is chosen) . So I headed to the Projects tab and checked the steps the SDK runs when building or running. Apparently the SDK runs a mb2 rpm command/step when running, so I simply added that step to the build process with Custom Build Step. Unfortunately that didn't work, because I'm now getting: p, li { white-space: pre-wrap; } 18:35:34: Could not start process mb2 rpm however there were no problems with the makeing: p, li { white-space: pre-wrap; } The process $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/make exited normally. So how can I build armv7hl RPMs for a Jolla Device? Kind Regards, Superpelican On Fri, 13 Dec 2013 11:09:26 -0800 Juha Kallioinen lt;juha.kallioi...@jolla.comgt; wrote On 13.12.2013 20:02, superpelican wrote: 12192051540.946002420813249...@zoho.com type=citegt; Hello, I just completely removed my old SDK with the SDK Maintenance tool (and also removed $HOME/.scratchbox2 as the installer of the new SDK version suggested, I also removed the Mer SDK VM and Emulator VM of the old SDK version in the Virtualbox Manager) and installed the new 1312 SDK. When I tried to build my simple, little multiplication tables practising application Quick Clamshell it failed with the following messages in the Compile Output pane: Hi, did this build in the previous 1310 release of the SDK? The application seems to use the old way of specifying a sailfishapplication, since it doesn't use libsailfishapp, which is the new (since 1310 installer) and recommended way of creating applications for Sailfish OS. Before trying to build your project with 1312 be sure to clean all previous build results from the project directory. Your bitbucket repository has lots of build generated files (like the application binary) that should not be there. 12192051540.946002420813249...@zoho.com type=citegt; + QT_SELECT=5 + make install INSTALL_ROOT=/home/deploy/installroot install -m 755 -p Quick2Clamshell /home/deploy/installroot/usr/bin/Quick2Clamshell : /home/deploy/installroot/usr/bin/Quick2Clamshell install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/pages /home/deploy/installroot/usr/share/Quick2Clamshell/ cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/cover /home/deploy/installroot/usr/share/Quick2Clamshell/ install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/Quick2Clamshell.desktop /home/deploy/installroot/usr/share/applications/ : /home/deploy/installroot/usr/share/applications/Quick2Clamshell.desktop + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/mersdk/Coding/ClamshellSailfish/build-Quick2Clamshell-MerSDK_SailfishOS_i486_x86-Release/ ... 12192051540.946002420813249...@zoho.com type=citegt; Processing files: Quick2Clamshell-0.1-1.i586 error: File not found: /home/deploy/installroot/icons That File not found is the initial problem. 12192051540.946002420813249...@zoho.com type=citegt; RPM build errors: error: File not found: /home/deploy/installroot/images error: File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images File not found: /home/deploy/installroot/icons File not found: /home/deploy/installroot/images File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images Looking at the make install output from earlier in the log, we can see that the /icons and /images directories are not installed, leading to the initial problem. The output below comes just because the build engine tries to copy files to the emulator, but there are no files it can find because the build failed already. The build/deploy process should have ended to the RPM build errors and seems like something to fix in future SDK releases.
[SailfishDevel] Building/Deploying app fails with 1312 SDK
Hello, I just completely removed my old SDK with the SDK Maintenance tool (and also removed $HOME/.scratchbox2 as the installer of the new SDK version suggested, I also removed the Mer SDK VM and Emulator VM of the old SDK version in the Virtualbox Manager) and installed the new 1312 SDK. When I tried to build my simple, little multiplication tables practising application Quick Clamshell it failed with the following messages in the Compile Output pane: Loading repository data... Reading installed packages... 'pkgconfig(Qt5Core)' not found in package names. Trying capabilities. 'qt5-qtcore-devel' providing 'pkgconfig(Qt5Core)' is already installed. 'pkgconfig(Qt5Qml)' not found in package names. Trying capabilities. 'qt5-qtdeclarative-devel' providing 'pkgconfig(Qt5Qml)' is already installed. 'pkgconfig(Qt5Quick)' not found in package names. Trying capabilities. 'qt5-qtdeclarative-qtquick-devel' providing 'pkgconfig(Qt5Quick)' is already installed. 'pkgconfig(qdeclarative5-boostable)' not found in package names. Trying capabilities. 'mapplauncherd-qt5-devel' providing 'pkgconfig(qdeclarative5-boostable)' is already installed. Resolving package dependencies... Nothing to do. Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.asdslT Project WARNING: qdeclarative-boostable not available; startup times will be slower 18:41:33: The process $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/qmake exited normally. 18:41:33: Starting: $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ya8VtM make: Nothing to be done for `first'. 18:41:35: The process $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make exited normally. 18:41:35: Emulator is already running. Nothing to do. 18:41:35: Deploying rpm package... 18:41:35: Starting: $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/deploy --pkcon Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.jVTaWB + umask 022 + cd /home/mersdk/Coding/ClamshellSailfish/build-Quick2Clamshell-MerSDK_SailfishOS_i486_x86-Release + '[' /home/deploy/installroot '!=' / ']' + rm -rf /home/deploy/installroot ++ dirname /home/deploy/installroot + mkdir -p /home/deploy + mkdir /home/deploy/installroot + LANG=C + export LANG + unset DISPLAY + rm -rf /home/deploy/installroot + export QT_SELECT=5 + QT_SELECT=5 + make install INSTALL_ROOT=/home/deploy/installroot install -m 755 -p Quick2Clamshell /home/deploy/installroot/usr/bin/Quick2Clamshell : /home/deploy/installroot/usr/bin/Quick2Clamshell install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/pages /home/deploy/installroot/usr/share/Quick2Clamshell/ cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/cover /home/deploy/installroot/usr/share/Quick2Clamshell/ install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/Quick2Clamshell.desktop /home/deploy/installroot/usr/share/applications/ : /home/deploy/installroot/usr/share/applications/Quick2Clamshell.desktop + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/mersdk/Coding/ClamshellSailfish/build-Quick2Clamshell-MerSDK_SailfishOS_i486_x86-Release/ extracting debug info from /home/deploy/installroot/usr/bin/Quick2Clamshell 12 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/meego/brp-compress + /usr/lib/rpm/meego/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/meego/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile + /usr/lib/rpm/meego/brp-python-hardlink + /usr/lib/rpm/meego/find-docs.sh /home/deploy/installroot + /usr/lib/rpm/meego/brp-java-repack-jars Processing files: Quick2Clamshell-0.1-1.i586 error: File not found: /home/deploy/installroot/icons RPM build errors: error: File not found: /home/deploy/installroot/images error: File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images File not found: /home/deploy/installroot/icons File not found: /home/deploy/installroot/images File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images receiving incremental file list sent 8 bytes received 87 bytes 190.00 bytes/sec total size is 0 speedup is 0.00 rsync: change_dir /home/nemo/RPMS failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [Receiver=3.1.0] rsync: [Receiver] write error: Broken pipe (32) Command failed: A filename to install is required 18:41:38: The process
Re: [SailfishDevel] Building/Deploying app fails with 1312 SDK
On 13.12.2013 20:02, superpelican wrote: Hello, I just completely removed my old SDK with the SDK Maintenance tool (and also removed $HOME/.scratchbox2 as the installer of the new SDK version suggested, I also removed the Mer SDK VM and Emulator VM of the old SDK version in the Virtualbox Manager) and installed the new 1312 SDK. When I tried to build my simple, little multiplication tables practising application Quick Clamshell https://bitbucket.org/Superpelican/quick_clamshell it failed with the following messages in the Compile Output pane: Hi, did this build in the previous 1310 release of the SDK? The application seems to use the old way of specifying a sailfishapplication, since it doesn't use libsailfishapp, which is the new (since 1310 installer) and recommended way of creating applications for Sailfish OS. Before trying to build your project with 1312 be sure to clean all previous build results from the project directory. Your bitbucket repository has lots of build generated files (like the application binary) that should not be there. + QT_SELECT=5 + make install INSTALL_ROOT=/home/deploy/installroot install -m 755 -p Quick2Clamshell /home/deploy/installroot/usr/bin/Quick2Clamshell : /home/deploy/installroot/usr/bin/Quick2Clamshell install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/pages /home/deploy/installroot/usr/share/Quick2Clamshell/ cp -f -R /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/cover /home/deploy/installroot/usr/share/Quick2Clamshell/ install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/main.qml /home/deploy/installroot/usr/share/Quick2Clamshell/ : /home/deploy/installroot/usr/share/Quick2Clamshell/main.qml install -m 755 -p /home/mersdk/Coding/ClamshellSailfish/Quick2Clamshell/Quick2Clamshell.desktop /home/deploy/installroot/usr/share/applications/ : /home/deploy/installroot/usr/share/applications/Quick2Clamshell.desktop + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/mersdk/Coding/ClamshellSailfish/build-Quick2Clamshell-MerSDK_SailfishOS_i486_x86-Release/ ... Processing files: Quick2Clamshell-0.1-1.i586 error: File not found: /home/deploy/installroot/icons That File not found is the initial problem. RPM build errors: error: File not found: /home/deploy/installroot/images error: File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images File not found: /home/deploy/installroot/icons File not found: /home/deploy/installroot/images File not found: /home/deploy/installroot/usr/share/Quick2Clamshell/images Looking at the make install output from earlier in the log, we can see that the /icons and /images directories are not installed, leading to the initial problem. The output below comes just because the build engine tries to copy files to the emulator, but there are no files it can find because the build failed already. The build/deploy process should have ended to the RPM build errors and seems like something to fix in future SDK releases. receiving incremental file list sent 8 bytes received 87 bytes 190.00 bytes/sec total size is 0 speedup is 0.00 rsync: change_dir /home/nemo/RPMS failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [Receiver=3.1.0] rsync: [Receiver] write error: Broken pipe (32) Command failed: A filename to install is required 18:41:38: The process $HOME/.config/SailfishAlpha3/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/deploy exited with code 3. Error while building/deploying project Quick2Clamshell (kit: MerSDK-SailfishOS-i486-x86) When executing step 'Rpm' 18:41:38: Elapsed time: 00:06. I believe this isn't related to my app, but rather a problem with the new SDK, so I thought I'd post it on the ML ;) There is something incorrect in the way you have specified the RPM packaging for your application. Looking at your .yaml file, its files section specifies that /images and /icons should be added to the RPM package. That means images and icons directories in the root of the filesystem. I'm sure you don't really want them to be there, but somewhere under /usr/share/applicationname instead. Please take a look at the following links, which [1] describe what kind of requirements there are for an application you might want to ship to the Harbour one day and [2] in detail describe creating an installation package (RPM) for your application. [1] https://harbour.jolla.com/faq [2] https://sailfishos.org/develop-packaging-apps.html Also, take a while to study the latest application template File-New Project and the example and tutorial applications that come with the 1312 SDK to see how to use libsailfishapp