maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   My deb can't be installed (https://talk.maemo.org/showthread.php?t=47229)

wizkoder 2010-03-18 21:57

Re: My deb can't be installed
 
I tried it by changing the project file to:

Code:

# -------------------------------------------------
# Project created by QtCreator 2010-02-18T12:12:07
# -------------------------------------------------
TARGET = UniTrans
TEMPLATE = app
SOURCES += main.cpp \
    mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
RESOURCES += zeux.qrc
target.path = /usr/bin                    <<<<<< new
target.files = UniTrans                    <<<<<< new
INSTALLS += target                    <<<<<< new

Then the system changed the install in my makefile to this:
Code:

####### Install

install_target: first FORCE
        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/bin/
        -$(INSTALL_PROGRAM) /home/markus/MyDocs/UniTrans/UniTrans $(INSTALL_ROOT)/usr/bin/


uninstall_target:  FORCE
        -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/bin/UniTrans
        -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/


install:  install_target  FORCE

uninstall: uninstall_target  FORCE

FORCE:


But it seems not to work.
Nothing is getting installed in /usr/bin when I install the final package in the scratchbox :-(

The "dpkg -L unitrans" gives me:
Code:

[sbox-FREMANTLE_ARMEL: ~] > dpkg -L unitrans
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/unitrans
/usr/share/doc/unitrans/changelog.gz


Isn't it the right way to change this file instead of changing the Makefile by hand?

What would I have to insert into the Makefile to copy my file in /usr/bin?
The syntax is really strange to me. And I have no plans to become a debian maintainer ;-)

What I find also strange is that the project file stated that its created by "qt creator". So I guess there is a way to change this in this program. But I can't find that either.

jkq 2010-03-18 22:15

Re: My deb can't be installed
 
Quote:

Originally Posted by wizkoder (Post 572511)
Isn't it the right way to change this file instead of changing the Makefile by hand?

Oops, yeah, that's true. You shouldn't change the makefile. Sorry about that. :)

Quote:

Originally Posted by wizkoder (Post 572511)
What would I have to insert into the Makefile to copy my file in /usr/bin?

Actually what you showed looks reasonable. Somewhere in the auto-generated Makefile there should be a line starting with "INSTALL_PROGRAM = ". Can you report back what that line looks like? I am curious what the stuff on the other side of the equals sign is. For my project it is "install -m 644 -p".

Quote:

Originally Posted by wizkoder (Post 572511)
The syntax is really strange to me. And I have no plans to become a debian maintainer ;-)

Well, understanding makefiles and understanding Debian packaging are separate things. :)

If you like coding, IMO it would be beneficial to learn more about how makefiles work. It can be a pretty powerful and useful tool.

Learning how to make Debian packages is nice, but is only useful if you are working with a Debian-compatible distrubution.

-jkq

wizkoder 2010-03-18 23:54

Re: My deb can't be installed
 
I got it to work using this tutorial:
http://wiki.forum.nokia.com/index.ph...plication_menu

Means I can install it now by hand via dpkg.
When I click on it in the program manager I still get the error that its incompatible.

jkq 2010-03-19 16:29

Re: My deb can't be installed
 
Quote:

Originally Posted by wizkoder (Post 572647)
Means I can install it now by hand via dpkg.
When I click on it in the program manager I still get the error that its incompatible.

Hmm. I guess there is something that app manager does not like still. I am not that familiar with app manager's reasons for not installing packages. Maybe post the deb somewhere?

-jkq


All times are GMT. The time now is 18:42.

vBulletin® Version 3.8.8