maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Scratchbox problem (https://talk.maemo.org/showthread.php?t=47538)

Figa 2010-03-16 17:15

Scratchbox problem
 
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:
Code:

dh_make -e your.name@example.org --createorig
I get this:
Code:

bash: dh_make: command not found
When I want to install dh-make:
Code:

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 2010-03-17 11:12

Re: Scratchbox problem
 
Hi,

try:

Code:

apt-get install debhelper
Cheers Daniel

Figa 2010-03-19 14:41

Re: Scratchbox problem
 
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.
Code:

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 2010-03-19 14:55

Re: Scratchbox problem
 
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 2010-03-19 15:20

Re: Scratchbox problem
 
No problem is in MAKEFILE but I dont know what.

nicorumiz 2010-03-19 16:03

Re: Scratchbox problem
 
Try to post qmake.conf someone can probably figure it out!

Figa 2010-03-19 17:41

Re: Scratchbox problem
 
OK. qmake.conf from MADDE linux g++
Code:

#
# 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 2010-03-19 18:49

Re: Scratchbox problem
 
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.

Code:

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 2010-03-21 05:32

Re: Scratchbox problem
 
Now I have other problem with AUTOBUILDER I try upload deb copiled in scratchbox and MADDE, but I ever get this error.
Code:

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 2010-03-21 12:31

Re: Scratchbox problem
 
Have you tried to follow these instructions http://wiki.maemo.org/Packaging_a_Qt_application ? Those works for me just fine.

Figa 2010-03-21 18:52

Re: Scratchbox problem
 
Thx yes, i know it and do it. But still the same error. Please help me.

TNiga 2010-03-21 20:38

Re: Scratchbox problem
 
Could you post your *.pro files and debian/rules file?

Figa 2010-03-21 21:02

Re: Scratchbox problem
 
Yep, *.pro
Code:

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
Code:

#!/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 2010-03-21 21:12

Re: Scratchbox problem
 
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 2010-03-22 06:03

Re: Scratchbox problem
 
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 2010-03-22 07:44

Re: Scratchbox problem
 
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 2010-03-22 16:55

Re: Scratchbox problem
 
Thank you I do everything and while building in scratchbox I am getting this error:
Code:

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 2010-03-22 16:59

Re: Scratchbox problem
 
How do you build it? Have you tried to upload to extras?

Figa 2010-03-22 17:02

Re: Scratchbox problem
 
No I cant build it. I get the error. I post it in last post.

TNiga 2010-03-22 17:11

Re: Scratchbox problem
 
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 2010-03-22 17:21

Re: Scratchbox problem
 
Autobuilder give me the same error as scratchbox.

TNiga 2010-03-22 17:43

Re: Scratchbox problem
 
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:
Code:

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 2010-03-22 18:24

Re: Scratchbox problem
 
I know I immediatelly edited it and now I get old error.
Code:

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 2010-03-22 18:48

Re: Scratchbox problem
 
1 Attachment(s)
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 2010-03-22 19:36

Re: Scratchbox problem
 
Now its ok. Thank you very much you are my hero. When will be app in devel?

TNiga 2010-03-22 19:47

Re: Scratchbox problem
 
Quote:

Originally Posted by Figa (Post 577695)
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 2010-03-22 20:06

Re: Scratchbox problem
 
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 2010-03-22 20:34

Re: Scratchbox problem
 
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):

Code:

    # 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 2010-03-23 22:28

Re: Scratchbox problem
 
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 2010-03-24 11:43

Re: Scratchbox problem
 
Quote:

Originally Posted by Figa (Post 579448)
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

Code:

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

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 2010-03-25 06:37

Re: Scratchbox problem
 
Thank you but it doesnt work. After build isnt in debian directory from src.pro.

TNiga 2010-03-25 06:51

Re: Scratchbox problem
 
Why does this thread keep bumping up even though there is never new messages?

Very annoying.

Figa 2010-03-29 16:21

Re: Scratchbox problem
 
Sorry my mistake. Do you have any ideas about my problem?

suihkulokki 2010-04-01 21:27

Re: Scratchbox problem
 
Quote:

Originally Posted by Figa (Post 575476)
Now I have other problem with AUTOBUILDER I try upload deb copiled in scratchbox and MADDE, but I ever get this error.
Code:

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 2010-04-02 15:30

Re: Scratchbox problem
 
Thank you but it isnt my problem. I havent any files in debian/fsudoku directory.

suihkulokki 2010-04-08 12:17

Re: Scratchbox problem
 
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 2010-04-08 13:16

Re: Scratchbox problem
 
Here is source to pack.
http://www.megaupload.com/?d=EZ9C285J

peppe78 2010-12-02 08:15

Re: Scratchbox problem
 
Quote:

Originally Posted by Figa (Post 569508)
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:
Code:

dh_make -e your.name@example.org --createorig
I get this:
Code:

bash: dh_make: command not found
When I want to install dh-make:
Code:

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 2010-12-03 03:45

Re: Scratchbox problem
 
we are starting over now? lol
did you try the suggestion "apt-get install debhelper"???

peppe78 2010-12-08 13:02

Re: Scratchbox problem
 
Quote:

Originally Posted by Creamy Goodness (Post 888096)
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..

Quote:

Originally Posted by Figa (Post 573421)
Thank you, but problem was between my chair and pc:)

I was wondering what's between his chair and pc? :)


All times are GMT. The time now is 22:16.

vBulletin® Version 3.8.8