PDA

View Full Version : Scratchbox problem


Figa
03-16-2010, 01:15 PM
Hi, if I want to post app in extras repo I will have to pack it in scratcthcbox? When I run this line in FREMANTLE_X86:
dh_make -e your.name@example.org --createorig

I get this:
bash: dh_make: command not found

When I want to install dh-make:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dh-make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package dh-make has no installation candidate

What is wrong? Thank you for your replies.

danielwilms
03-17-2010, 07:12 AM
Hi,

try:

apt-get install debhelper

Cheers Daniel

Figa
03-19-2010, 10:41 AM
Thank you, but problem was between my chair and pc:) Now I have other problem with AUTOBUILDER I try upload deb copiled in scratchbox and MADDE, but I ever get this error.

TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: source package is app
dpkg-buildpackage: source version is 0.1-1
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 0.1-1
: Using Scratchbox tools to satisfy builddeps
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make[1]: *** No rule to make target `/targets/FREMANTLE_X86/opt/qt4-maemo5/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make: *** [clean] Error 2

What is wrong?

nicorumiz
03-19-2010, 10:55 AM
I think there is something wrong with

qmake.conf

Not really sure. I have Scratchbox too but I didn't build any packages so fayr, I have install it the other day.

Figa
03-19-2010, 11:20 AM
No problem is in MAKEFILE but I dont know what.

nicorumiz
03-19-2010, 12:03 PM
Try to post qmake.conf someone can probably figure it out!

Figa
03-19-2010, 01:41 PM
OK. qmake.conf from MADDE linux g++

#
# qmake configuration for linux-g++
#

MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CONFIG += qt warn_on release incremental link_prl
QT += core gui
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/g++.conf)
include(../common/linux.conf)
load(qt_config)

crabsody
03-19-2010, 02:49 PM
I got a problem too. I changed the target of scratchbox to ARMEL and tried to install the qt packages. So I edited sources.list adding the line

deb http://repository.maemo.org/extras-devel/ fremantle free non-free

When I exec "fakeroot apt-get install libqt4-dev" I got several dependency problems.


Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libqt4-dev: Depends: libqt4-webkit but it is not going to be installed
E: Broken packages


When I try to install libqt4-webkit I got other unmet dependencies e.t.c. e.t.c. Does anyone know a way to met these dependencies? Maybe in an auto way?

Figa
03-21-2010, 01:32 AM
Now I have other problem with AUTOBUILDER I try upload deb copiled in scratchbox and MADDE, but I ever get this error.

TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: source package is app
dpkg-buildpackage: source version is 0.1-1
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 0.1-1
: Using Scratchbox tools to satisfy builddeps
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make[1]: *** No rule to make target `/targets/FREMANTLE_X86/opt/qt4-maemo5/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make: *** [clean] Error 2

What is wrong?

TNiga
03-21-2010, 08:31 AM
Have you tried to follow these instructions http://wiki.maemo.org/Packaging_a_Qt_application ? Those works for me just fine.

Figa
03-21-2010, 02:52 PM
Thx yes, i know it and do it. But still the same error. Please help me.

TNiga
03-21-2010, 04:38 PM
Could you post your *.pro files and debian/rules file?

Figa
03-21-2010, 05:02 PM
Yep, *.pro

TARGET = fsudoku
TEMPLATE = app
SOURCES += main.cpp \
window.cpp \
sudoku.cpp
HEADERS += window.h \
perm.h \
sudoku.hpp
PREFIX = ../debian/fsudoku/usr
unix {
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
DEFINES += DATADIR=\"$$DATADIR\" \
PKGDATADIR=\"$$PKGDATADIR\"

# MAKE INSTALL
INSTALLS += target \
desktop \
iconxpm \
icon26 \
icon48 \
icon64 \
appfiles
target.path = $$BINDIR
desktop.path = $$DATADIR/applications/hildon
desktop.files += fsudoku.desktop

iconxpm.path = $$DATADIR/pixmap
iconxpm.files += ../data/maemo/$${TARGET}.xpm

icon26.path = $$DATADIR/icons/hicolor/26x26/apps
icon26.files += ../data/26x26/$${TARGET}.png

icon48.path = $$DATADIR/icons/hicolor/48x48/apps
icon48.files += ../data/48x48/$${TARGET}.png

icon64.path = $$DATADIR/icons/hicolor/64x64/apps
icon64.files += ../data/64x64/$${TARGET}.png

appfiles.path = ../debian/fsudoku/home/user/.fsudoku
appfiles.files += save.txt \
resources.rcc
}

debian/rules

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1





configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.

touch configure-stamp


build: build-stamp

build-stamp: configure-stamp
dh_testdir

# Add here commands to compile the package.
$(MAKE)
#docbook-to-man debian/fsudoku.sgml > fsudoku.1

touch $@

clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp

# Add here commands to clean up after the build process.
$(MAKE) clean

dh_clean

install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs

# Add here commands to install the package into debian/fsudoku.
$(MAKE) DESTDIR="$(CURDIR)"/debian/fsudoku install


# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb -v
# dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

TNiga
03-21-2010, 05:12 PM
Well one thing which I noticed is that you don't use qmake in your debian/rules. Why don't you just modify .pro and debian/rules like said in the instructions I pointed out couple of posts ago?

Figa
03-22-2010, 02:03 AM
Because these are filessīgenerated by MADDE. I tryed add this line:
qmake-qt4 PREFIX=/usr ../$(APPNAME).pro and still the same error in autobuilder.

TNiga
03-22-2010, 03:44 AM
I downloaded your source package and it seems that you are missing Qt from dependecies, so add libqt4-dev, libqt4-core and libqt4-gui (and others if needed) to your dependecies in debian/control.

You also need to change "7" in debian/compat to "5", otherwise it won't work.

And I still suggest that you change src/src.pro, fsudoku.pro and debian/rules as described in the "Packaging a Qt application" wiki page (note that you have to run dh_make again after modifying those .pro files). I did that to my MADDE project and it worked. (Those MADDE packaging instructions ( http://wiki.maemo.org/MADDE/Packaging ) aren't really suitable for source packaging for autobuilder but only for testing on device)

Oh yeah, and add a file called "optify" to debian folder and the file should contain only text "auto". This will make your app optified nicely.

Figa
03-22-2010, 12:55 PM
Thank you I do everything and while building in scratchbox I am getting this error:

cd builddir && /scratchbox/tools/bin/make
make[1]: Entering directory `/home/figa/workspace/fsudoku-0.1/builddir'
make[1]: *** No targets specified and no makefile found. Stop.

TNiga
03-22-2010, 12:59 PM
How do you build it? Have you tried to upload to extras?

Figa
03-22-2010, 01:02 PM
No I cant build it. I get the error. I post it in last post.

TNiga
03-22-2010, 01:11 PM
Well if this is your build command: cd builddir && /scratchbox/tools/bin/make, then it shouldn't even build. Why don't you just try to upload it to extras, I'll promise to eat my pants if it doesn't succeed (if you have made all the things I have suggested you to do).

Figa
03-22-2010, 01:21 PM
Autobuilder give me the same error as scratchbox.

TNiga
03-22-2010, 01:43 PM
You are still missing Qt dependencies in debian/control and you also have removed some important stuff from src.src :D

I think it should look like this:
TARGET = fsudoku
TEMPLATE = app
SOURCES += main.cpp \
window.cpp \
sudoku.cpp
HEADERS += window.h \
perm.h \
sudoku.hpp

unix {
#VARIABLES
isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share

DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"


# MAKE INSTALL
INSTALLS += target \
desktop \
iconxpm \
icon26 \
icon48 \
icon64 \
appfiles
target.path = $$BINDIR
desktop.path = $$DATADIR/applications/hildon
desktop.files += fsudoku.desktop

iconxpm.path = $$DATADIR/pixmap
iconxpm.files += ../data/maemo/$${TARGET}.xpm

icon26.path = $$DATADIR/icons/hicolor/26x26/apps
icon26.files += ../data/26x26/$${TARGET}.png

icon48.path = $$DATADIR/icons/hicolor/48x48/apps
icon48.files += ../data/48x48/$${TARGET}.png

icon64.path = $$DATADIR/icons/hicolor/64x64/apps
icon64.files += ../data/64x64/$${TARGET}.png

appfiles.path = ../debian/fsudoku/home/user/.fsudoku
appfiles.files += save.txt \
resources.rcc
}


So I won't eat my pants just yet :)

Figa
03-22-2010, 02:24 PM
I know I immediatelly edited it and now I get old error.

make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/fsudoku-0.1'
make[1]: *** No rule to make target `/targets/FREMANTLE_X86/opt/qt4-maemo5/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/fsudoku-0.1'

Thank you for your help.

TNiga
03-22-2010, 02:48 PM
Try my attachment.
1. Go to directory fsudoku-0.1
2. Remove existing .orig (rm -rf ../fsudoku-0.1.orig)
3. dh_make --createorig
4. dpkg-buildpackage -rfakeroot -sa -S

Figa
03-22-2010, 03:36 PM
Now its ok. Thank you very much you are my hero. When will be app in devel?

TNiga
03-22-2010, 03:47 PM
Now its ok. Thank you very much you are my hero. When will be app in devel?

It can take something between 5-60 minutes to appear in devel.

Figa
03-22-2010, 04:06 PM
OMG It isnt ok. Packaging progress is ok but .deb has 2kb because command dh:installdirs doesnt work. Icons and other files arent installed. What is wrong?

TNiga
03-22-2010, 04:34 PM
Hmmm...that's interesting. I think the icon problem can be solved by adding a few lines to debian/rules (make sure it goes in right place):

# Add here commands to install the package into debian/your_appname

#icons
mkdir -p $(CURDIR)/debian/$(APPNAME)/usr/share/icons/hicolor/26x26
cp ./src/data/26x26/fsudoku.png $(CURDIR)/debian/$(APPNAME)/usr/share/icons/hicolor/26x26/fsudoku.png
# add similar lines for 48x48 and 64x64

cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install

I'm not sure if that's the best way to fix it but this is how I have done it in my projects.

But I have no idea why the app itself doesn't get installed. Weird, I must say.

Figa
03-23-2010, 06:28 PM
I had same idea about install icons but it isnt good. I really dont know where is problem. Nothing what could be installed from src,pro isnt installed. Thank you once more. I am really disappinted. How delete deb from devel?

danielwilms
03-24-2010, 07:43 AM
I had same idea about install icons but it isnt good. I really dont know where is problem. Nothing what could be installed from src,pro isnt installed. Thank you once more. I am really disappinted. How delete deb from devel?


Hi,

you have set the wrong path in your src.pro to the icons (I took the tar from post 26). You have

../data/26x26/$${TARGET}.png

and it should be:
data/26x26/$${TARGET}.png

Then it works for me. Usually you don't have to touch the rules file if the *.pro file is ok. Which other files do you want to have installed?

Daniel

Figa
03-25-2010, 02:37 AM
Thank you but it doesnt work. After build isnt in debian directory from src.pro.

TNiga
03-25-2010, 02:51 AM
Why does this thread keep bumping up even though there is never new messages?

Very annoying.

Figa
03-29-2010, 12:21 PM
Sorry my mistake. Do you have any ideas about my problem?

suihkulokki
04-01-2010, 05:27 PM
Now I have other problem with AUTOBUILDER I try upload deb copiled in scratchbox and MADDE, but I ever get this error.

TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: source package is app
dpkg-buildpackage: source version is 0.1-1
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 0.1-1
: Using Scratchbox tools to satisfy builddeps
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make[1]: *** No rule to make target `/targets/FREMANTLE_X86/opt/qt4-maemo5/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/app-0.1'
make: *** [clean] Error 2

What is wrong?

In your debian/control file, you should have at least:

Build-Depends: debhelper (>= 5), libqt4-dev

else qmake isn't installed on the autobuilder.

Figa
04-02-2010, 11:30 AM
Thank you but it isnt my problem. I havent any files in debian/fsudoku directory.

suihkulokki
04-08-2010, 08:17 AM
Maybe you could upload your sources somewhere so someone can have a look? You really should have a debian/ directory, in your case it was generated by dh_make.

Figa
04-08-2010, 09:16 AM
Here is source to pack.
http://www.megaupload.com/?d=EZ9C285J

peppe78
12-02-2010, 03:15 AM
Hi, if I want to post app in extras repo I will have to pack it in scratcthcbox? When I run this line in FREMANTLE_X86:
dh_make -e your.name@example.org --createorig

I get this:
bash: dh_make: command not found

When I want to install dh-make:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dh-make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package dh-make has no installation candidate

What is wrong? Thank you for your replies.

hello!

How to solve this problem?

Creamy Goodness
12-02-2010, 10:45 PM
we are starting over now? lol
did you try the suggestion "apt-get install debhelper"???

peppe78
12-08-2010, 08:02 AM
we are starting over now? lol
did you try the suggestion "apt-get install debhelper"???
Thanks for replying!
yep! I forgot to point out I'm trying to do this on the device using qole's sdk image..

Thank you, but problem was between my chair and pc:)
I was wondering what's between his chair and pc? :)