[SailfishDevel] mb gives error "sb2: Error: Invalid target specified, aborting."

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Sun Apr 21 15:16:50 UTC 2013


Hi all

I have created a Demo sailfish project in Qt Creator
(New File or Project / SailfishOS Qt Quick Application)

I have changed this project (Demo2) in no way, so it is completely  
vanilla / virgin.

I want to build / run Demo2 as "Release / Install from RPM Package

However it aborts with the error: "sb2: Error: Invalid target  
specified, aborting."

If I follow David's instructions to manually build at:
https://sailfishos.org/wiki/Mer_OBS#Sailfish_on_OBS

Then I get the same error at the mb step:
mb build -t SailfishOS-i486-x86 rpm/<name of .spec file>

I have spooled my shell output below, including a tail of the .spec file

Any ideas?

Grüsse

Chris


Apple-Pip:~ christopherlamb$ ssh -p 2222  -i ~/.ssh/mer-qt-creator-rsa  
  root at localhost
Last login: Sun Apr 21 13:32:10 2013 from 10.0.2.2

[root at SailfishSDK ~]# sdk-version
Core repos point at version: 0.20130222.0.1
Tools repos point at version: mer-tools-rolling

[root at SailfishSDK ~]# export PKG=Demo2
[root at SailfishSDK ~]# cd /home/mersdk/SailfishProjects/Demo2/Demo2/rpm/

[root at SailfishSDK rpm]# ls -l
total 8
-rwx------ 1 mersdk mersdk 771 2013-04-21 13:48 Demo2.spec
-rwx------ 1 mersdk mersdk 702 2013-04-21 13:27 Demo2.yaml

[root at SailfishSDK rpm]# (cd ..; make distclean 2>/dev/null; tar cf -  
--exclude /rpm --exclude .git/ --transform "s_./_${PKG}-0.1/_" ./)  |  
bzip2 > ${PKG}-0.1.tar.bz2
[
root at SailfishSDK rpm]# ls -l
total 216
-rwx------ 1 mersdk mersdk 211308 2013-04-21 14:29 Demo2-0.1.tar.bz2
-rwx------ 1 mersdk mersdk    771 2013-04-21 13:48 Demo2.spec
-rwx------ 1 mersdk mersdk    702 2013-04-21 13:27 Demo2.yaml

[root at SailfishSDK rpm]# specify
Info: Old spec file exists, patching Demo2.spec ...

[root at SailfishSDK rpm]# cd ..
[root at SailfishSDK Demo2]# mb build -t SailfishOS-i486-x86 rpm/Demo2.spec
Building rpm/Demo2.spec for SailfishOS-i486-x86
Checking dependencies...
sb2: Error: Invalid target specified, aborting.
Setting up temporary specfile for Demo2 from rpm/Demo2.spec
rsyncing source...
run rpmbuild
sb2: Error: Invalid target specified, aborting.

[root at SailfishSDK Demo2]# tail rpm/Demo2.spec -n 100
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.25
#

Name:       Demo2

# >> macros
# << macros

Summary:    My SailfishOS Application
Version:    0.1
Release:    1
Group:      Qt/Qt
License:    LICENSE
Source0:    %{name}-%{version}.tar.bz2
Source100:  Demo2.yaml
Requires:   sailfishsilica
BuildRequires:  pkgconfig(QtCore) >= 4.8.0

%description
Short description of my SailfishOS Application



%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qmake

make %{?jobs:-j%jobs}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake_install

# >> install post
# << install post


%files
%defattr(-,root,root,-)
/opt
# >> files
# << files
[root at SailfishSDK Demo2]#




More information about the Devel mailing list