Reply
Thread Tools
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#11
Originally Posted by Figa View Post
Where install other files of app like save file resources file etc. ?
I asked the same question recently see the responses here

So you still have build issues? If you upload the latest sources I'll try and have a look.

Shep
__________________
- Hey! I also do other stuff Touchscreen apps for Windows and Android
- Currently developing a Diet Assistant/Weight Tracker for the N900
 
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#12
Thank you but I need to save different files. I cant do this. I have in source code this line:
fopen(file.file, "w") and What have to be in src.pro ? I have one problem with building abou dg_shlibdebs else its ok.
 
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#13
Originally Posted by Figa View Post
Thank you but I need to save different files. I cant do this. I have in source code this line:
fopen(file.file, "w") and What have to be in src.pro ? I have one problem with building abou dg_shlibdebs else its ok.
The files should be stored here if only the app will access them
Code:
/home/usr/.myapp
If you want them accessible via the mass storage mode then use
Code:
/home/user/MyDocs/.appName/
I think your src.pro file needs to have them added in the installs section. Something like this (untested):
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 \
        icon64 \
        appfiles
    target.path = $$BINDIR
    desktop.path = $$DATADIR/applications/hildon
    desktop.files += fsudoku.desktop
    icon64.path = $$DATADIR/icons/hicolor/64x64/apps
    icon64.files += fsudoku.png
	
    appfiles.path = /home/usr/.myapp
    appfiles.files += save.txt \
    candidates.txt
}
Sorry, I don't know how to fix your package dependency problem.

Shep
__________________
- Hey! I also do other stuff Touchscreen apps for Windows and Android
- Currently developing a Diet Assistant/Weight Tracker for the N900
 
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#14
Thank you very much. I had to add only $$PREFIX.

Last edited by Figa; 2010-02-27 at 20:30.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:38.