Reply
Thread Tools
Posts: 8 | Thanked: 0 times | Joined on Mar 2010 @ bogota, colombia
#11
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's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#12
Originally Posted by wizkoder View Post
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.

Originally Posted by wizkoder View Post
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".

Originally Posted by wizkoder View Post
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
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Posts: 8 | Thanked: 0 times | Joined on Mar 2010 @ bogota, colombia
#13
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's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#14
Originally Posted by wizkoder View Post
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
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:03.