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

Compiling packages with Platform SDK: curl error

asked 2016-08-20 23:12:48 +0300

ArmsOfSorrow gravatar image

updated 2016-08-22 10:52:27 +0300

jiit gravatar image

I have installed the Platform SDK and a valid target following the instructions from the developer wiki; however, when trying to build ngfd in its project directory with mb2 -t sfos-armv7hl (which is the name of my installed target) I'm getting following errors:

Download (curl) error for 'https://releases.jolla.com/releases/2.0.2.48/hotfixes/armv7hl/repodata/repomd.xml': Error code: Unrecognized error Error message: SSL certificate problem: unable to get local issuer certificate

The same error pops up for two other URLs. Now, if I type in one of those URLs into Firefox, it redirects me to, e.g. https://dvvwui2qyedk6.cloudfront.net/releases/2.0.2.48/hotfixes/armv7hl/repodata/repomd.xml, for the one I've posted above. Going back to curl, it downloads it correctly if I run it myself with the -L flag, otherwise it fails.

Does anyone have a workaround so the SDK can figure out package dependencies correctly?

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
1

answered 2016-08-21 00:44:53 +0300

ArmsOfSorrow gravatar image

updated 2016-08-21 01:00:46 +0300

Alright, I've found the answer buried somewhere in the porters' IRC channel logs. For further reference, here it goes:

sudo zypper http://repo.merproject.org/obs/home:/sledge:/mer/latest_i486/ curlfix
sudo zypper ref curlfix
sudo zypper dup --from curlfix

Run that from the MerSDK prompt and resolving package dependencies will work.

Edit: it still tells me that libtool is needed. To resolve that, enter sb2 with your desired target and install it there instead of at the SDK prompt. Here's some info on how to install packages in sb2. I'm closing this now, as I was able to compile ngfd successfully.

Could anyone add that to the instructions in the developer wiki? It is in the HADK because that's where I've got it from, but it's also relevant if one doesn't want to do hardware, but just platform development.

edit flag offensive delete publish link more

Comments

sudo zypper ar http://repo.merproject.org/obs/home:/sledge:/mer/latest_i486/ curlfix

paulivil ( 2017-02-15 13:05:34 +0300 )edit
0

answered 2016-08-20 23:43:03 +0300

tortoisedoc gravatar image

This seems to be a key issue; can you install packages from the QtCreator interface?

edit flag offensive delete publish link more

Comments

To clarify: I'm talking about the chroot-based Mer SDK, not the one that comes bundled with Qt Creator. That one works fine.

ArmsOfSorrow ( 2016-08-21 00:27:07 +0300 )edit

Chrooted SDK? hmm sounds interesting.

tortoisedoc ( 2016-08-21 09:58:41 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-08-20 23:12:48 +0300

Seen: 284 times

Last updated: Aug 21 '16