Open DeltoidDelta opened 8 years ago
Anyone who can help here? I have the same problem when I try to build it
Try using zypper instead of connman dunno if this works but it could work
When I run this command to add the target with the right repo (from the wiki):
sb2 -t SailfishOS-i486-x86 -m sdk-install -R ssu ar http://repo.merproject.org/obs/nemo:/devel:/mw/latest_i486/ nemo-latest-mw
I get this error:
sb2: Error: Invalid target specified, aborting.
and his command still results in the same error as above
@modulebaan : you see that error when target doesn't exist. sb2
should fill in available targets if you press tab key after -t
. Targets are by default "SailfishOS-i486" and/or "SailfishOS-armv7hl".
I'll try to share here how to get the browser build working ( @modulebaan / @simdol ). I'm assuming that you are using Sailfish OS Application SDK.
# On Sailfish OS Application SDK (aka QtCreator)
# Open sailfish-browser project
# Click "Start SDK" from bottom left corner
# Open a terminal
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu lr
# If "apps" repo is listed only under "Disabled repositories"
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu ar apps
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper ref
# Now go back to QtCreator and trigger build
# Alternative way of building with mb2 in sdk:
# "share" is the shared home of the active user. So, I cloned
# sailfish-browser to /home/myLaptop/workspace/sailfishos/sailfish-browser.
cd ~/share/workspace/sailfishos/sailfish-browser/
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-browser.spec build
After mb2 build is ready, you'll find rpm packages under sailfish-browser/RPMS directory.
Same steps can be applied for i486 target. I hope that this will get you started.
Thanks @rainemak I can build it now!
Hello,
I am having issue while attempting to build Sailfish-Browser by following the article https://github.com/sailfishos/sailfish-browser/wiki/BuildingInstructions. First, I am unable to add repository as it returns
[mersdk@SailfishSDK sailfish-browser]$ sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu ar http://repo.merproject.org/obs/nemo:/devel:/mw/latest_i486/ nemo-latest-mw connman not AVAILABLE DBus call failed, falling back to libssu
Next, when I attempt to build, it returns
[mersdk@SailfishSDK sailfish-browser]$ mb2 build -t SailfishOS-armv7hl rpm/sailfish-browser.spec No provider of 'pkgconfig(qt5embedwidget) >= 1.12.30' found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: pkgconfig(qt5embedwidget) >= 1.12.30 is needed by sailfish-browser-1.13.75-1.i486 pkgconfig(nemotransferengine-qt5) is needed by sailfish-browser-1.13.75-1.i486 gtest-devel is needed by sailfish-browser-1.13.75-1.i486 libgmock-devel is needed by sailfish-browser-1.13.75-1.i486 pkgconfig(Qt5Test) is needed by sailfish-browser-1.13.75-1.i486
How could I solve this dependencies issue?
Thank you.