We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

I can't compile Nineshark for MerSDK-SailfishOS-armv7hl [SOLVED]

asked 2014-08-24 00:18:16 +0200

Alejo A. Sotelo gravatar image

updated 2014-08-28 21:02:12 +0200

Hi guys,

I have a problem with my project. I'm working very well on i486 (emulator) but when I change to compile RPM for armv7hl I can't compile. (screenshot: https://www.dropbox.com/s/3yqofb8dz05ntmv/qt-creator.png?dl=0)

Can I compile for armv7hl (device) without a jolla device? Do I have to install a armv7hl emulator in virtualbox?

Honestly I'm lost why I come to you. Thank you very much!

I have the last version of Sailfish OS SDK, I reinstalled yesterday.

Linux alejoasotelo-To-be-filled-by-O-E-M 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

edit retag flag offensive close delete

Comments

1

Yeah looks like you should be able to click the hammer. You can not click on the green Play button when a device hasn't been configured, but the compilation is available.

If you want to create RPM packages, you should select "Deploy project" from the Build menu.

This is briefly mentioned as the last topic on this page: https://sailfishos.org/develop-firstapp-article.html

kaltsi ( 2014-08-25 10:53:53 +0200 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2014-08-24 23:45:23 +0200

Sthocs gravatar image

updated 2014-08-24 23:45:57 +0200

Hey, I'm not sure of what you mean by "can't compile". The little hammer is not grayed out on your screenshot. What happen when you click on it (ctrl+B)? Nothing at all?

If you want to actually build the RPM, you need to select Build->Deploy Project "projectname".

edit flag offensive delete publish link more
2

answered 2014-08-28 19:42:49 +0200

Alejo A. Sotelo gravatar image

I changed to "Build to Release" and "Deploy to Deploy by Building an RPM Package" and work.

The problem is solved. I know I'm a newbie :S.

Thank you very much to the community for your help!

Nineshark is coming!

Best!

edit flag offensive delete publish link more

Comments

I'm glad that you got it working, but i am even more exited that nineshark is coming since it is one of my absolute favorite apps.

abc123 ( 2014-08-29 05:14:17 +0200 )edit
0

answered 2014-08-28 19:35:45 +0200

Alejo A. Sotelo gravatar image

updated 2014-08-28 19:36:48 +0200

Sorry for my delay. Thank you for your replies!

Build work well but Deploy doesn't work.

When I click on Build->Deploy Project "Nineshark" gives me the following error:

13:26:59: Running steps for project Nineshark...
13:26:59: Starting: "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/qmake" /home/alejoasotelo/Proyectos/SailfishOS/Nineshark/Nineshark.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug

Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.icCVeY
13:27:02: The process "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/qmake" exited normally.
13:27:02: Starting: "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/make" 
Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mofBTW
make: Nothing to be done for `first'.
13:27:03: The process "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/make" exited normally.
13:27:03: Deploying binaries...
13:27:03: Starting: "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/deploy" --rsync
Invalid command arguments 

merssh usage: 
merssh <command> 
environment project parameters: 
MER_SSH_TARGET_NAME 
MER_SSH_SHARED_HOME 
MER_SSH_SHARED_TARGET 
MER_SSH_SHARED_SRC 
MER_SSH_SDK_TOOLS 
MER_SSH_PROJECT_PATH 
MER_SSH_DEVICE_NAME 
evironment connection parameters: 
MER_SSH_USERNAME 
MER_SSH_PORT 
MER_SSH_PRIVATE_KEY 

13:27:03: The process "/root/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/deploy" exited with code 1.
Error while building/deploying project Nineshark (kit: MerSDK-SailfishOS-armv7hl)
When executing step 'Rsync'
13:27:03: Elapsed time: 00:04.

I installed the sdk as it comes by default. I have to install some extra libraries? Thank you very much for your help, best!

edit flag offensive delete publish link more

Comments

In your previous answer, you said that you changed some configurations. I don't have my Qt Creator here, but you shouldn't need to do that.

Here it seems that it tries to deploy the generated RPM on a device. But I think the RPM has been generated correctly, have you looked in the build directory?

Sthocs ( 2014-08-29 10:40:56 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-08-24 00:18:16 +0200

Seen: 952 times

Last updated: Aug 28 '14