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


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

vBulletin® Version 3.8.8