View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#9
Originally Posted by tmsha View Post
Thank you for your replay.

I have found the path of the executable to be: ”/usr/local/bin/” but there is no “ballhit.wav” in that dir.

I can go to that dir and do ./app and it runs like normal, but the sounds does not work.


I did a “find . -name “ballhit.wav”” with root and found nothing on the phone.
So, the file has not been copied ?
How can I ensure the file is copied and installed with the executable?
I think that is my problem.. I need to copy the file over to the phone when i run it from Qt Creator.

I have done the following in an attempt to fix it:

In the same folder as src.pro i got ballhit.wav, and in src.pro i added this:

OTHER_FILES += ballhit.wav

target.path = $$DESTDIR
target.files += ballhit.wav
INSTALLS += target

I have also added a build step: “make install”
See my pro file line 173 onwards.

"target" is a tag for your executable binary.
Any additional files that you want installed need to come with additional tags. In my pro file, these additional tags for my maemo5 binary are "desktop" "icon" "qss" etc.

After defining that INSTALLS needs to have extra tags, I also specified where the files in every tag should fall (tag.path) and what the source file is on my dev machine (tag.files).

Once you do all that, your deb should have everything you need.
Also: once you actually build your deb, its a good idea to go into the debian sub directory and see the directory structure in there to confirm that the deb-helpers have done what you wanted.

Remember that a deb is a compressed archive of:
1. All the files you said need to be installed (binary, media files, whatever else)
2. Control scripts to pick up things from a deb and put them into the correct corresponding locations on the user machine
3. Dependency and other meta information
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post: