Re: Maemo 5 on Nokia N900 had a downfall - please advise how to retrive data from the phone

2012-10-02 Thread Daniil Ivanov
Hi Elena,

It would help to know exact answer from the support center. What did they
indicate as an exact problem? Does phone boot at all?  When you connect your
phone through cable to PC does it connect as Mass storage device or
anything like that? For the latter question indicate whether you use PCSuite
or not.

Thanks, Daniil

On Tue, Oct 2, 2012 at 11:05 AM, Elena Panina elena_p...@bk.ru wrote:
 Hello,

 I decided to send an e-mail to Maemo developers as a last resort measure.

 Briefly, I have been a Nokia customer for more than 8 years with my recent
 phone N900 bought right after its release in Russia in January 2010.
 I have never experienced any problems with this phone until recently, when I
 went to the USA and switched on this phone - the touch screen immediately
 stopped working. Upon my return to Moscow, I called Nokia hot line, applied
 to local Moscow repair  maintenance centers (authorised by Nokia), however,
 the response that I got was that the problem is not about the touch screen,
 but about the operating system and they cannot do anything about it to
 return the phone to a normal working mode.

 The problem is that I have lost all the data - the address book, messages,
 notes, photos, everything. I have never made back ups for my Nokia phones.

 Can you please advise if there is at least a little chance to retrieve the
 data from the phone and if yes, how can it be done?
 Would be grateful for your response.

 Best regards,
 Elena

 P.S. I am located in Moscow, you can reach me either via this e-mail or at
 my cell: + 7 903 961 20 94 (may be someone is based in Moscow as well?)

 

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-24 Thread Daniil Ivanov
You are welcome!
GNU/Linux consist of a lot of subsystems. Each must be checked to make
sure everything is working properly. On the other hand, when something is
not working, user will likely notice, so no need for a code.

Thanks, Daniil

On Mon, Sep 24, 2012 at 6:56 PM, Eyal Erez ere...@gmail.com wrote:
 Ok so to the Result:

 i added the lines that were missing in the
 /etc/apt/souces.list.d/hildon-application-manager.list file. as abubakear
 wrote.
 did apt-get update
 and then apt-get install libcv4 --and it's seems to be working.

 now First of ALL i want to thank Daniil and abubakar for all the help...

 thanks a lot guys.

 now does anybody know how i can check that everything is working , some
 small code to check the system?

 Again thanks a lot guys




 On Fri, Sep 21, 2012 at 8:31 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Apparently, it would be much easier to place content you've posted to
 /etc/apt/souces.list.d/hildon-application-manager.list
 and make sure that /etc/apt/sources.list is empty.

 Thanks, Daniil

 On Fri, Sep 21, 2012 at 9:03 PM, Abubakar abubak...@gmail.com wrote:
  Well one option is to flash your phone and you can read instructions
  here
  http://wiki.maemo.org/Updating_the_tablet_firmware.
  You can use the built-in Backup application to take a backup, put it on
  your
  pc and flash the cell phone and then transfer back the backup to phone
  and
  restore it (using mass storage option).
  That flashing info page contains info for many maemo devces other then
  n900,
  so try to focus on the right things :)
 
  On Fri, Sep 21, 2012 at 9:07 PM, Eyal Erez ere...@gmail.com wrote:
 
  Well, that's doesn't sound good for me.
 
  So is there a manual how to reset the phone, in a way that i will
  ensure
  that i could work with OpenCV afterwards??
 
  Again, thank u very much for the help and info
  Great appreciation to all.
 
  eyal
 
 
 
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-21 Thread Daniil Ivanov
Apparently, it would be much easier to place content you've posted to
/etc/apt/souces.list.d/hildon-application-manager.list
and make sure that /etc/apt/sources.list is empty.

Thanks, Daniil

On Fri, Sep 21, 2012 at 9:03 PM, Abubakar abubak...@gmail.com wrote:
 Well one option is to flash your phone and you can read instructions here
 http://wiki.maemo.org/Updating_the_tablet_firmware.
 You can use the built-in Backup application to take a backup, put it on your
 pc and flash the cell phone and then transfer back the backup to phone and
 restore it (using mass storage option).
 That flashing info page contains info for many maemo devces other then n900,
 so try to focus on the right things :)

 On Fri, Sep 21, 2012 at 9:07 PM, Eyal Erez ere...@gmail.com wrote:

 Well, that's doesn't sound good for me.

 So is there a manual how to reset the phone, in a way that i will ensure
 that i could work with OpenCV afterwards??

 Again, thank u very much for the help and info
 Great appreciation to all.

 eyal



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-20 Thread Daniil Ivanov
Could anyone please share content of /etc/apt/sources.list
and /etc/apt/sources.list.d/ from their N900 for a cross check?

Thanks, Daniil

On Wed, Sep 19, 2012 at 12:55 PM, Daniil Ivanov daniil.iva...@gmail.com wrote:
 I don't have N900 any more, so I cannot check. But it looks like it's
 related to configuration of Nokia closed source packages. You need to
 fetch the key afer signing the EULA and let apt know the key as it's
 explained in the page
 http://tablets-dev.nokia.com/eula/index.php

 This command will show the content of apt current configuration in command 
 line:
 cat /etc/apt/sources.list

 Thanks, Daniil.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-20 Thread Daniil Ivanov
Thank you very mych, Abubakar!

As I expected there is no really SDK repository as it's not meant to
be used on the device.
My guess would be that apt configuration on Eyal's N900 was messed up
at some point and now
have to be restored to pristine state to work again.

Thanks, Daniil

On Thu, Sep 20, 2012 at 10:54 AM, Abubakar abubak...@gmail.com wrote:
 sorry i didnt do a reply-all, so sending again:

 my /etc/apt/sources.list is empty.

 /etc/apt/souces.list.d/ has hildon-application-manager.list which
 contains:

 deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./
 deb https://downloads.maemo.nokia.com/fremantle/ssu/003 ./
 deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./
 deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
 deb http://repository.maemo.org/extras-devel/ fremantle-1.3 free non-free

 On Thu, Sep 20, 2012 at 11:34 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Could anyone please share content of /etc/apt/sources.list
 and /etc/apt/sources.list.d/ from their N900 for a cross check?

 Thanks, Daniil

 On Wed, Sep 19, 2012 at 12:55 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:
  I don't have N900 any more, so I cannot check. But it looks like it's
  related to configuration of Nokia closed source packages. You need to
  fetch the key afer signing the EULA and let apt know the key as it's
  explained in the page
  http://tablets-dev.nokia.com/eula/index.php
 
  This command will show the content of apt current configuration in
  command line:
  cat /etc/apt/sources.list
 
  Thanks, Daniil.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-19 Thread Daniil Ivanov
On Tue, Sep 18, 2012 at 10:39 PM, Eyal Erez ere...@gmail.com wrote:
 I'm thinking about using linux, i even install it, but i'm not familier with
 that and i'm not that familier with Nokia OS(Meamo) so i try minimize that
 things that i don't know ..

The name of OS is Maemo, and it's actually Debian based, so it shares
many tools with Debian and Ubuntu, making it much easier to do things
there.

 i type apt-get quits and i get : E:Invalid opertion quits

Whenever in future you have doubts about what commands parameters are
and what they actually do,
consult their manual pages:
http://linux.die.net/man/8/apt-get

 then i type exit twice and close the X-Terminal and still the file is
 empty.
 what can i do to solve this?
 i also check and i can reach the file in windows but i's empty

I'm puzzled why this happens for you. Maybe you interrupt apt-get
before it's able to produce
any error messages.

 The error msg that i get are :

 Hit http://repository.maemo.org fremantle/non-free packages
 W: Failed to fetch
 http://repository.maemo.org/dists/fremantle/sdk/fremantle/binary-armel/packages
 404 Not Found [IP:81.218.31.152 80]

 W:Failed to fetch
 http://repository.maemo.org/dists/fremantle/sdk/non/binary-armel/packages
 404 Not Found [IP:81.218.31.152 80]

 E:Some index files failed to download, they have been ignored, or old ones
 used instead.

I don't have N900 any more, so I cannot check. But it looks like it's
related to configuration of Nokia closed source packages. You need to
fetch the key afer signing the EULA and let apt know the key as it's
explained in the page
http://tablets-dev.nokia.com/eula/index.php

This command will show the content of apt current configuration in command line:
cat /etc/apt/sources.list

Thanks, Daniil.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-18 Thread Daniil Ivanov
On Tue, Sep 18, 2012 at 7:30 PM, Eyal Erez ere...@gmail.com wrote:
 but then i wrote apt-get update eyal.log and it writes a lot of stuff and
 then the errors i wrote before, but i dont get a new line until i will press
 enter..

This command redirects both error stream and output stream to a file, you should
see exactly nothing until apt-get quits. Also I didn't notice you were
mentioning
errors at update phase. Could you please provide exact error messages?

 then i use midnight Comm in order to copy the file to a place where i can
 use(copy to windows 8 file system) or using the mail app to send it (i cant
 reach it using the nokia pc-connectivity or the mass storage.. ) but it
 seems the file is empty...

In mass storage mode /home/user/MyDocs/ gets mounted to your PC.
However, when you start X terminal a working directory is /home/user/
So to make it easier for yourself you have two options:
1. Use ssh with USB-networking. AFAIK it didn't work on Windows 7,
does Windows 8 has a driver for networking over USB?
2. Execute cd MyDocs before apt-get update  eyal.log, then mount
phone to PC in Mass storage mode and copy the file.

Also consider using Linux for Linux development. It will make your life easier.

Thanks, Daniil
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OpenCV problem

2012-09-17 Thread Daniil Ivanov
Hi Eyal!

Could you please post full output of apt-get update,
so we can see what exactly configured and was update successful or not.

You can save  do it conveniently by saving output to a file:
apt-get update  my.log
Just in case: pwd shows a current working path where file is saved.

Thanks, Daniil

On Tue, Sep 11, 2012 at 8:19 PM, Eyal Erez ere...@gmail.com wrote:

 Hello Abubaker,

 i setup the extras-devel repository by
 http://wiki.maemo.org/Extras-devel#How_to_activate_Extras-devel , it says
 only to write fremantle not fremantle-1.3 but i change it anyway and still
 i get the same error msg.

 Is there anything else that i can do?? if i will format the machine will
 it help?? what else can i do?

 any idea will be apprciate.

 eyal


 On Mon, Sep 10, 2012 at 10:44 PM, Abubakar abubak...@gmail.com wrote:

 Hi Shamsul, are you sure your repo is added properly? I have extras-devel
 link added to fapman (faster application manager) as follows:

 Name: extras-devel
 URL: http://repository.maemo.org/extras-devel/
 Distribution: fremantle-1.3
 Components: free non-free

 I do a:

 ~ $ root

 and then:

 orb:~# apt-get install libcv4

 and I get the following:

 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following extra packages will be installed:
   libavcodec52 libavformat52 libavutil49 libfaad2-0 libtheora0 libvorbis0a
   libvorbisenc2
 The following NEW packages will be installed:
   libavcodec52 libavformat52 libavutil49 libcv4 libfaad2-0 libtheora0
   libvorbis0a libvorbisenc2
 0 upgraded, 8 newly installed, 0 to remove and 17 not upgraded.
 Need to get 5556kB of archives.
 After this operation, 13.0MB of additional disk space will be used.
 Do you want to continue [Y/n]?

 On Mon, Sep 10, 2012 at 11:50 PM, Eyal Erez ere...@gmail.com wrote:

 Hello Shamsul,

 Thanks for the resposns.

 I enable the Extras-devel repository.
 when i write the apt-get update i get a list of update and then(i
 started from the last line that is good.. )
 Hit http://repository.maemo.org fremantle/non-free packages
 W: Failed to fetch
 http://repository.maemo.org/dists/fremantle/sdk/fremantle/binary-armel/packages404
  Not Found [IP:81.218.31.152 80]

 W:Failed to fetch
 http://repository.maemo.org/dists/fremantle/sdk/non/binary-armel/packages404
  Not Found [IP:81.218.31.152 80]

 E:Some index files failed to download, they have been ignored, or old
 ones used instead.

 and i get the same error, the i mention before about the dependencies...

 i will add, that i even tried to surf from the N900 to this site go to  
 Fremantle Extras-devel free armel  libcv4 2.0.0-5 (both of them) and
 download and install the .deb file and then i get
 unable to install 'libcv4'. Incompatible application package.
 so what else can i do?

 eyal

 On Mon, Sep 10, 2012 at 9:30 PM, shamsul hassan 
 shamsulbu...@gmail.comwrote:

 Hi Eyal,

 below link will help ..
 http://maemo.org/packages/view/libcv4/

 you need to enable Extras-devel or Extras-testing in the repository
 manager and then apt-get update

 Thanks
 Shamsul

 On Mon, Sep 10, 2012 at 7:23 PM, Eyal Erez ere...@gmail.com wrote:

 Hello all,

 I'm trying to use OpenCV on my Nokia N900, my first goal was to
 install the libcv4.

 I tried to use X-Terminal sudo gainroot and then apt-get install
 libcv4, then i got:
 Some packages could not be installed. THis may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages ave now yest been created or been
 moved out of incoming...
 The following information may help to resolve the situation:

 The following pakcages have unmet dependencies:
 libvcv4: Depends:libavcodec52 (=3:0.svn20090303-1) but it is not
 goint to be installed or (lot of spaces)
 libavcodec-extra-52 (=3:0.svn20090303-1) but it is not installable
 Depends:libavformat52 (=3:0.svn20090303-1)but it is not going to be
 installed or (lot of spaces)
 libavformat-extra-52 (=3:0.svn20090303-1) but it is not installable
 E:Broken packages.

 i tried to install missing lib separte, apt-get install libavcodec52
 ---libspeex1 =package libspeex1 is not available, but is referred to by
 an other package (if this information is important just tell me and i
 will add the rest of it...)

 Then i mailed Daniil Ivanov who was very kind and replay with :
 1. Enable Extras-Devel repository.
 2. apt-get update
 3. apt-get intstall libcv4

 but i got the same result, so now i pretty much stuck and dont really
 know what else i can do , so any help will be very appricate.

 My product info is:
 Nokia N900
 Maemo 5
 Version 21.2011.38-1

 if any information is needed and missing pls let me know and i will
 add it,

 eyal

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers




 ___
 maemo-developers mailing

Re: N900 dbus interfaces

2012-07-28 Thread Daniil Ivanov
On Sat, Jul 28, 2012 at 10:58 AM, Pali Rohár pali.ro...@gmail.com wrote:
 On Saturday 28 July 2012 12:16:43 Jonathan Wilson wrote:
 I have created a Wiki post to document the known Nokia-specific
 dbus interfaces used on the N900.
 http://wiki.maemo.org/N900_dbus

 Let me know if you have any feedback on the page or if you have
 anything to add to it.

 Hi! This is really good page. Maybe usefull would be write for
 each dbus interface which daemon it handle (+deb package which
 install that daemon). Also can you add if daemon/package is
 proprietary or open source?

One can check service files under /usr/share/dbus-1/system-services/
to match binary names to
DBus names and then dpkg -S to match packages to that.

Thanks, Daniil
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Binary compiled in scratchbox HARMATTAN_ARMEL fails to execute on N950

2011-12-06 Thread Daniil Ivanov
Hi, Sudheer!

  Try the following command
  file /usr/lib/debug/usr/lib/telepathy/mission-control-5
  and post its output here.

Thanks, Daniil

On Tue, Dec 6, 2011 at 8:15 AM, Sudheer K. scifi1...@gmail.com wrote:
 Hi,

 I downloaded telepathy mission control 5.8.0 source from freedesktop.org and
 built a deb package using HARMATTAN_ARMEL on scratchbox. My intention is to
 use telepathy-mission-control-5-dbg binary to debug my application.

 The compilation was successful and I was able to install the deb on N950.
 However, when I run the binary on N950 I get this error:

 ~ $ /usr/lib/debug/usr/lib/telepathy/mission-control-5
 /usr/lib/debug/usr/lib/telepathy/mission-control-5: line 1: syntax error:
 unexpected word (expecting ))

 The full output of the command dpkg-buildpackage -sa -rfakeroot from
 scratchbox is here[1].  I did not pass any custom arguments to configure
 script. Also, I am able to compile my/other applications on the same
 scratchbox instance and run on device without this error. What am I missing
 here?

 [1] - http://pastebin.com/uwpQAXbX

 - Sudheer

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Looking for some help with autoconf/automake/dpkg (and general feedback on my code)

2011-10-25 Thread Daniil Ivanov
At least debian/install is missing in debianization of a package
http://www.debian.org/doc/manuals/maint-guide/dother.en.html#install

Thanks, Daniil

On Tue, Oct 25, 2011 at 9:07 AM, Jonathan Wilson jfwf...@tpgi.com.au wrote:
 I have uploaded my code and files to
 http://www.cncmods.net/files/operator-name-cbs-widget-0.1.zip

 I am looking for general feedback on this code and packaging but
 specifically I am having problems getting it to create, include in the .deb
 file and run the cbspatch binary

 I suspect also I need more in the postinst file in terms of verifying the
 correct binary and things, any help would be appreciated.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Looking for some help with autoconf/automake/dpkg (and general feedback on my code)

2011-10-25 Thread Daniil Ivanov
I second proposition to use CBDS instead of debhelper directly.

Thanks, Daniil

On Tue, Oct 25, 2011 at 11:13 AM, Jonathan Wilson jfwf...@tpgi.com.au wrote:
 Daniil Ivanov wrote:
 At least debian/install is missing in debianization of a package
 http://www.debian.org/doc/manuals/maint-guide/dother.en.html#install
 Thanks, that's a start. Still cant get it to even produce a cbspatch binary
 though.


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N950 SEGFAULT - help?

2011-10-07 Thread Daniil Ivanov
apt-get install libqtwebkit4-dbg
or
apt-get install libqt4-webkit-dbg.

2011/10/7 Ивайло Димитров freemangor...@abv.bg:
 Why not install Qt debug symbols on the device and run/attach to your
 program there under gdb?



  Оригинално писмо 
 От: Felipe Crochik
 Относно: N950 SEGFAULT - help?
 До: maemo-developers@maemo.org
 Изпратено на: Петък, 2011, Октомври 7 05:20:55 EEST
 I hit a wall with my application so I am looking for someone to help
 everywhere I can.

 The short version: how can I get qt creator to debug my application on the
 device. Right now I get CRC mismatch warnings for all libraries and I assume
 this is what prevents me to see any trace information

 That is what I get when I start to debug:
 ...
 the debug information found in
 c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvrPVR2D_DRI2WSEGL_r125.so
 does not match
 c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvrPVR2D_DRI2WSEGL.so
 (CRC mismatch).

 the debug information found in
 c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvr2d_r125.so
 does not match
 c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvr2d.so
 (CRC mismatch).

 ...

 I assume I need to install debug symbols/versions for the qt libraries on
 the device somehow. Am I right? How can I accomplish this?

 The long version:

 My applications uses qml\webview and everything works fine until I swipe out
 of my application and then later come back to it. With one click or two I
 get a segfault. This is all the information that I managed to get running
 gdb on the device:

 (gdb) backtrace
 #0  0x42068924 in QPainter::save() () from /usr/lib/libQtGui.so.4
 #1  0x48ec294c in ?? () from /usr/lib/libQtWebKit.so.4
 #2  0x48ec294c in ?? () from /usr/lib/libQtWebKit.so.4

 Program received signal SIGSEGV, Segmentation fault.

 Any suggestions?

 Thanks in advance,
 Felipe

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtCreator, libraries, and multiple platforms

2011-08-07 Thread Daniil Ivanov
Hi Roman!

The most likely it won't work in Harmattan since it's MeegoTouch based
and partially QtQuick based. At least UI part have to be re-done.

~Daniil

On Sun, Aug 7, 2011 at 10:48 AM, Roman Morawek ma...@morawek.at wrote:
 Hello David,

 On 06.08.2011 11:00, David Talmage wrote:
 I am writing another application that will link with the library.  At least
 one other developer was interested in using my library last year.  I failed 
 to
 release the code. I don't know if he's still interested.

 Yes, I am still interested. Not interested for Fremantle anymore (I use
 the native dialogs there) but for Harmattan. If you intend to deploy the
 lib for Harmattan, please tell me.

 On the other hand, as this fits the thread:
 I also think it would be easier for me if you'd release the source code
 in an open source license and I just include it directly in my package.
 I know that this approach also has disadvantages (ROM usage, redundancy,
 bug fixes,...) but as I expect the functionality to be rather simple I
 personally see more advantages.

 Regards,
 Roman
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtCreator, libraries, and multiple platforms

2011-08-06 Thread Daniil Ivanov
Hi David!

There is no difference in building static and dynamically linked library as
part of qmake project as such.

It's hard to say what is the problem without seeing project files. My guess
there is wrong path in one of variables added to INSTALLS qmake variable

~Daniil

On Sat, Aug 6, 2011 at 1:04 AM, David Talmage talm...@acm.org wrote:
 Thanks, Daniil! This is nearly working.

 I structured my directories as you advised. Everything builds and the app
 links with lib. There is an executable, oh-my/app/app.

 Then some task called copydeploymentfolders is invoked and it fails. The
 output is:

 Copying application data...

 cp: cannot overwrite non-directory
 `/home/talmage/N900/oh-my-build-simulator/app/app' with directory
 `/home/talmage/N900/oh-my/app/'

 make[1]: *** [copydeploymentfolders] Error 1

 I can't imagine qmake thinks it's doing.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtCreator, libraries, and multiple platforms

2011-08-05 Thread Daniil Ivanov
Hi David!

This is how you directory structure should look,
you have only one project with name oh-my and it contains one
application and one library

$ tree oh-my
oh-my
├── app
│   ├── app.cpp
│   ├── app.h
│   └── app.pro
├── lib
│   ├── lib.cpp
│   ├── lib.h
│   └── lib.pro
└── oh-my.pro

2 directories, 7 files

And you don't need replace() for anything.

~Daniil

On Fri, Aug 5, 2011 at 11:39 PM, David Talmage talm...@acm.org wrote:
 Thanks to Danil, Ville, and Christian for taking the time to answer my call
 for help.

 On Thursday, August 04, 2011 06:16:16 AM Daniil Ivanov wrote:

  I agree that three project files are the way to go:
 ...
  This is how you declare your library for your application
  http://doc.qt.nokia.com/latest/qmake-project-files.html#declaring-other-li
 braries

 I got about that far.  More below.

 To answer Ville's question about the need for a separate library: I refactored
 my application into a library that other applications can use and an
 application that uses the library.  I have at least one more application in
 mind that will use this library.  For the curious, it's a home-grown dialog
 for choosing contacts.  I wrote it last year because the native Maemo contacts
 dialog didn't support pre-selecting some contacts. (The documentation said it
 did but I couldn't make it work at all.)

 To answer Christian's question about linking: By can't link I mean that the
 linker can't find my library, so it complains about undefined symbols.


 I have a directory structure like this:

 N900/app
 N900/app-uberproject
 N900/lib

 The contain, respectively, the app, the subdirs project, and the library.

 I'm building for Maemo, Harmattan, Simulator, and Remote Compiler. In short,
 everything but Desktop.

 When I build for Simulator, I get directories

 N900/app-build-simulator
 N900/app-uberproject-build-simulator
 N900/lib-build-simulator

 The next challenge is to teach app.pro how to find the library for the build
 platform, simulator in the example above.  It looks like some hackery-pokery
 with replace() will do the job.  I was hoping that QMake would Do The Right
 Thing for me.

 After that, my challenge is to install liblib.so in the simulator so that app
 can load it.  That's just the usual packaging task, right?


 Dave

 On Thu, Aug 4, 2011 at 12:48 PM, Ville M. Vainio vivai...@gmail.com wrote:
  Do you have a particular reason for the requirement (like license) to
  have a separate library, instead of just having one monolithic
  application?
 
  On Wed, Aug 3, 2011 at 10:03 PM, David Talmage talm...@acm.org wrote:
  I need help making QtCreator build an application and a library for
  Maemo, Symbian (using the remote compiler), and the simulator.  I've
  been all over the documentation, the forum on Qt Developer Network, and
  Google.  I can't find an example that does what I need.
 
  I have a library (lib) and an application (app). Each one is a QtCreator
  project.  I can build them individually but I can't link app with
  liblib.so. Whatever I use has to work with maemo.org's autobuilder and
  Nokia's remote compiler for Symbian.
 
  As a first pass, it would help if there is an environment variable I can
  reference in app.pro like $$OUT_PWD that contains the name of the build
  directory for lib.  Then linking might work.  I can hack something
  together with qmake's replace(), like replace($$OUT_PWD, app, lib) and
  that might work as long as app/ and lib/ were in the same directory.  I
  don't know how well it would port or whether it would continue to work
  when I install app and liblib.so on the phones.
 
  Dave
  ...
  ...
 ...
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtCreator, libraries, and multiple platforms

2011-08-04 Thread Daniil Ivanov
Hi all!

 I agree that three project files are the way to go:

 Main project file:
 TEMPLATE = subdirs
 SUBDIRS = library application
 CONFIG += ordered

 Then use TEMPLATE= lib
 and TEMPLATE=app
 in library and application subdirectories project files.

 This is how you declare your library for your application
 
http://doc.qt.nokia.com/latest/qmake-project-files.html#declaring-other-libraries

Thanks, Daniil

On Thu, Aug 4, 2011 at 12:48 PM, Ville M. Vainio vivai...@gmail.com wrote:
 Do you have a particular reason for the requirement (like license) to
 have a separate library, instead of just having one monolithic
 application?

 On Wed, Aug 3, 2011 at 10:03 PM, David Talmage talm...@acm.org wrote:
 I need help making QtCreator build an application and a library for Maemo,
 Symbian (using the remote compiler), and the simulator.  I've been all over
 the documentation, the forum on Qt Developer Network, and Google.  I can't 
 find
 an example that does what I need.

 I have a library (lib) and an application (app). Each one is a QtCreator
 project.  I can build them individually but I can't link app with liblib.so.
 Whatever I use has to work with maemo.org's autobuilder and Nokia's remote
 compiler for Symbian.

 As a first pass, it would help if there is an environment variable I can
 reference in app.pro like $$OUT_PWD that contains the name of the build
 directory for lib.  Then linking might work.  I can hack something together
 with qmake's replace(), like replace($$OUT_PWD, app, lib) and that might work
 as long as app/ and lib/ were in the same directory.  I don't know how well 
 it
 would port or whether it would continue to work when I install app and
 liblib.so on the phones.

 Dave
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox setup on ubuntu 64bit

2011-08-04 Thread Daniil Ivanov
Hi Oliver!

  No problem, wiki allows editorial changes even without having an
maemo.org account:
  
http://wiki.maemo.org/Documentation/Maemo5_Final_Installation#Installing_Maemo_5_SDK_using_GUI_Installer

--Daniil

On Thu, Aug 4, 2011 at 6:41 PM, Oliver ohook...@gmail.com wrote:
 So at some point my replies stopped going to the list... I must have
 clicked the wrong button.

 I have now got packages building and submitted to the autobuildbot
 (and tested working on my device) so it seems the advice was a
 success. So the question is, should the wiki then be updated to
 reflect the different build-environment setup instructions that
 actually work on modern systems?

 Likewise, how can the maemo-sdk-install_5.0.sh script linked from
 these instructions be updated?

 I accept that it is effectively dead platform but I know there is much
 community involvement still, and until I get an N950 dev device I'm
 still going to be actively using and developing (or at least
 maintaining) for my N900.

 On 2 August 2011 16:12, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Yes, it's wise.
 Scratchbox Apophis (stable branch, predecessor of Hathor)
 http://www.scratchbox.org/download/

 On Tue, Aug 2, 2011 at 4:39 PM, Oliver ohook...@gmail.com wrote:
 On 2 August 2011 15:31, Daniil Ivanov daniil.iva...@gmail.com wrote:
 There will be no harm if you install scratchbox packages before
 running SDK installation script
 http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/amd64/
 http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/i386/
 at least you will learn exact reason for dependency problem.

 The version installed by
 http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh
 is apophis, which is later than hathor. Is it wise to install this
 version? Or are you suggesting installing the previous version then
 upgrading?


 --Daniil

 On Tue, Aug 2, 2011 at 4:11 PM, Oliver ohook...@gmail.com wrote:
 On 2 August 2011 13:39, Luca Donaggio donag...@gmail.com wrote:
 Hi Oliver,

 have you tried to install scratchbox manually using tarballs? You can 
 launch
 the Harmattan SDK install script after that to complete your setup.
 That did the trick for me.

 No I haven't, as I've been trying to follow the official
 instructions. I should also mention that I'm setting this up for
 development on Fremantle but perhaps this doesn't make any difference?


 On Tue, Aug 2, 2011 at 1:26 PM, Oliver ohook...@gmail.com wrote:

 Hi,

 I'm trying to set up Scratchbox again on my Ubuntu 11.04 64-bit
 machine. I've done this in the past and it has worked but this time
 around it is failing unexpectedly:

 dpkg: dependency problems prevent configuration of scratchbox-core:i386:
  scratchbox-core:i386 depends on python

 I believe python is a meta-package anyway, it is for all
 architectures and it is definitely installed. No amount of --force-all
 and --ignore-depends=python will allow scratchbox-core to be installed
 unfortunately and it is blocking my entire installation. I've followed
 the rest of the guide more or less to the letter (my machine already
 had the kernel workarounds for VDSO etc in place) so I'm stumped as to
 why this is happening now.

 Any ideas?
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 --
 Luca Donaggio

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers





___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox setup on ubuntu 64bit

2011-08-02 Thread Daniil Ivanov
Hi!

python is not a metapackage:
http://packages.ubuntu.com/natty/python

--Daniil

On Tue, Aug 2, 2011 at 2:26 PM, Oliver ohook...@gmail.com wrote:
 Hi,

 I'm trying to set up Scratchbox again on my Ubuntu 11.04 64-bit
 machine. I've done this in the past and it has worked but this time
 around it is failing unexpectedly:

 dpkg: dependency problems prevent configuration of scratchbox-core:i386:
  scratchbox-core:i386 depends on python

 I believe python is a meta-package anyway, it is for all
 architectures and it is definitely installed. No amount of --force-all
 and --ignore-depends=python will allow scratchbox-core to be installed
 unfortunately and it is blocking my entire installation. I've followed
 the rest of the guide more or less to the letter (my machine already
 had the kernel workarounds for VDSO etc in place) so I'm stumped as to
 why this is happening now.

 Any ideas?
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox setup on ubuntu 64bit

2011-08-02 Thread Daniil Ivanov
There will be no harm if you install scratchbox packages before
running SDK installation script
http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/amd64/
http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/i386/
at least you will learn exact reason for dependency problem.

--Daniil

On Tue, Aug 2, 2011 at 4:11 PM, Oliver ohook...@gmail.com wrote:
 On 2 August 2011 13:39, Luca Donaggio donag...@gmail.com wrote:
 Hi Oliver,

 have you tried to install scratchbox manually using tarballs? You can launch
 the Harmattan SDK install script after that to complete your setup.
 That did the trick for me.

 No I haven't, as I've been trying to follow the official
 instructions. I should also mention that I'm setting this up for
 development on Fremantle but perhaps this doesn't make any difference?


 On Tue, Aug 2, 2011 at 1:26 PM, Oliver ohook...@gmail.com wrote:

 Hi,

 I'm trying to set up Scratchbox again on my Ubuntu 11.04 64-bit
 machine. I've done this in the past and it has worked but this time
 around it is failing unexpectedly:

 dpkg: dependency problems prevent configuration of scratchbox-core:i386:
  scratchbox-core:i386 depends on python

 I believe python is a meta-package anyway, it is for all
 architectures and it is definitely installed. No amount of --force-all
 and --ignore-depends=python will allow scratchbox-core to be installed
 unfortunately and it is blocking my entire installation. I've followed
 the rest of the guide more or less to the letter (my machine already
 had the kernel workarounds for VDSO etc in place) so I'm stumped as to
 why this is happening now.

 Any ideas?
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 --
 Luca Donaggio

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox setup on ubuntu 64bit

2011-08-02 Thread Daniil Ivanov
Yes, it's wise.
Scratchbox Apophis (stable branch, predecessor of Hathor)
http://www.scratchbox.org/download/

On Tue, Aug 2, 2011 at 4:39 PM, Oliver ohook...@gmail.com wrote:
 On 2 August 2011 15:31, Daniil Ivanov daniil.iva...@gmail.com wrote:
 There will be no harm if you install scratchbox packages before
 running SDK installation script
 http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/amd64/
 http://www.scratchbox.org/download/files/sbox-releases/hathor/deb/i386/
 at least you will learn exact reason for dependency problem.

 The version installed by
 http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh
 is apophis, which is later than hathor. Is it wise to install this
 version? Or are you suggesting installing the previous version then
 upgrading?


 --Daniil

 On Tue, Aug 2, 2011 at 4:11 PM, Oliver ohook...@gmail.com wrote:
 On 2 August 2011 13:39, Luca Donaggio donag...@gmail.com wrote:
 Hi Oliver,

 have you tried to install scratchbox manually using tarballs? You can 
 launch
 the Harmattan SDK install script after that to complete your setup.
 That did the trick for me.

 No I haven't, as I've been trying to follow the official
 instructions. I should also mention that I'm setting this up for
 development on Fremantle but perhaps this doesn't make any difference?


 On Tue, Aug 2, 2011 at 1:26 PM, Oliver ohook...@gmail.com wrote:

 Hi,

 I'm trying to set up Scratchbox again on my Ubuntu 11.04 64-bit
 machine. I've done this in the past and it has worked but this time
 around it is failing unexpectedly:

 dpkg: dependency problems prevent configuration of scratchbox-core:i386:
  scratchbox-core:i386 depends on python

 I believe python is a meta-package anyway, it is for all
 architectures and it is definitely installed. No amount of --force-all
 and --ignore-depends=python will allow scratchbox-core to be installed
 unfortunately and it is blocking my entire installation. I've followed
 the rest of the guide more or less to the letter (my machine already
 had the kernel workarounds for VDSO etc in place) so I'm stumped as to
 why this is happening now.

 Any ideas?
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 --
 Luca Donaggio

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Installing HTML help files in Maemo and Symbian^3

2011-05-16 Thread Daniil Ivanov
Maemo 5 has no system wide help engine.
And Symbian has help engine, but you will need native Symbian API to use it.
On the other hand, Qt has it's own help engine
http://doc.qt.nokia.com/latest/qthelp-framework.html
and probably you want to use as it will solve all cross-platform issues.

--Daniil

On Mon, May 16, 2011 at 4:09 PM, David Talmage talm...@acm.org wrote:
 Thanks, Timur.

 On Monday, May 16, 2011 03:33:07 AM Timur Kristóf wrote:
 ...
 I'd recommend you to put those files into your app's resources, then Qt
 will embed them into your app's executable.
 ...
 Read more about this at http://doc.qt.nokia.com/latest/resources.html
 ...

 I considered that.  I don't think that's the right solution.  It's my
 intention to translate the help files into a number of languages.  Embedding
 each one in my application will make my application much bigger.  There has to
 be another way.  When I find it, I will share it here.

 On 05/16/2011 04:56 AM, David Talmage wrote:
  I'm sure some of you develop for both Maemo and Symbian^3.  I need some
  advice about deployment on those platforms.  I'm looking for a place to
  put support files, such as help files, that can't be made into resource
  files.  In Maemo, I'm putting them in /opt/usr/share/doc/myapp/.  Where
  does Symbian^3 keep such files?
  ...
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: where to get development file for liblocation?

2011-03-18 Thread Daniil Ivanov
Or directly here
http://tablets-dev.nokia.com/eula/token.php

On Fri, Mar 18, 2011 at 3:36 PM, gregor herrmann
gregor+ma...@comodo.priv.at wrote:
 On Fri, 18 Mar 2011 18:57:23 +0530, Karthick wrote:

 I am trying to install that in scratchbox.
 if i try following cmd in scrachbox,
 apt-get install liblocation-dev, i was getting error like the one which is
 given below.
 ERROR:
 Reading package list...done.
 Building dependency tree...done.
 E:couldn't find package liblocation-dev.

 You have to add the nokia-binaries repository to
 /etc/apt/sources.list in scratchbox

 http://wiki.forum.nokia.com/index.php/Maemo_5_SDK_installation_for_beginners#Nokia_binaries_installation
 http://tablets-dev.nokia.com/eula/index.php

 Cheers,
 gregor

 --
  .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
  : :' :  Debian GNU/Linux user, admin,  developer - http://www.debian.org/
  `. `'   Member of VIBE!AT  SPI, fellow of Free Software Foundation Europe
   `-    NP: Ben Weaver: Lonesome as AM radio

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)

 iQIcBAEBCAAGBQJNg1/HAAoJELs6aAGGSaoGnAgP/2wvsiI3SA1I6pSOZIHAUrRV
 Siq+u98V2RCvwlrrHstrP2vxYkqf/qU7tbF93kB0mBW5ddufIw3X9ZCIyow/+fo/
 mBlXH2Pr4pOPgOEn78+O4++RMI8/iSONe5MD5r1zUIiJNuyQLx4hDZaM2fZm/0GA
 OhyPe5CTG6FaXCYzNisrVCMmSIS1WPjZs9FEvSdkt1aYsUSc+J3uh3ZZ2esjqhNM
 2rbCOB/OCtj+rgxHirpxCAGTCCGs6Mrtr3dSgtu2KR5t7iRSrBB7eMiyvGBikvg4
 Sa0xnEfhe2pQWxKpfc2qv4YyQ4TVf4qDOM+oNet54KTwQzfKJlsv2f5YKSc8ELAC
 LehAmwHnzl/KESUubH1r+v726Mo4yWRLDl8dHyVwMgDQqOx912JFIRvt5lQy2xtB
 FtXbbEww5AwNXtRj/L+PW/q48EJonYoaZG+QU7cv0uTQfXbWoJWP8ya87CeSvqmp
 Ze3KRfz2ZxJZOEKDWtDTsn8ed3ngJXOshodfmfoscv/8uHiQlihUKXPmWTUjlGlB
 fSYUThDW4/3fG0ebDoRGfxMehT15Fqzi/nkPZEo9+cUuHE1L52ZRxtafDxYJOMJe
 GFLhNQecH3/OktdHsUYYI3nCEj5vVCDMzZ1j1yhdOLVJ/Jy86TMB/u76O/dSx29b
 +MAs/33w8DtzbhRcw/mz
 =KHir
 -END PGP SIGNATURE-

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Google Summer of Code 2011

2011-02-21 Thread Daniil Ivanov
Hi Max!

As Maemo has been discontinued probably now MeeGo should be in the focus.

~Daniil

On Mon, Feb 21, 2011 at 10:27 AM, Max Usachev maxusac...@gmail.com wrote:
 Hi to all!
 I wonder to know, if Nokia and Maemo community will participate in GSoC 2011
 as last years?
 I think it's a good chance to help Maemo platform in so hard time for
 community and Nokia.


 Br, Max Usachev.

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: to Moderators

2011-02-21 Thread Daniil Ivanov
Hi Dmitry!

1. The vast majority emails clients allow filtering of incoming
messages. It's possible to make filters to move mails
from inbox to different subfolders. For example Mozilla Thunderbird or
Gmail web interface allows that.
2. At the end of every email there is a link to mailman web interface,
where one can unsubscribe.

~Daniil

On Mon, Feb 21, 2011 at 3:58 PM, DmitryTurin.narod.ru
dima.tu...@yandex.ru wrote:
 Adjust your server of mailing list,
 that it automatically append the following
 into EACH letter:

 1) [MeeGo] into topic of letter.

 Now i'm subscribed to not one mailing list,
 and i cannot distinguish your letters from others.

 2) http://; with address of page, where i can unsubscribe


 P.S.
 Look at example on
 lists.dyne.org/mailman/listinfo/netsukuku
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: osso-abook-plugin-example

2010-09-02 Thread Daniil Ivanov
Hi Kaj-Michael!

  Did you try to change 4.20100302+0m5 to 4.20100302+0m5?

Thanks, Daniil.

On Thu, Sep 2, 2010 at 4:16 PM, Kaj-Michael Lang mil...@tal.org wrote:
 I'm trying to build the example plugin from
 http://maemo.gitorious.org/osso-abook-plugin-example/osso-abook-plugin-example
 but it fails with configure script requiring
 libosso-abook-1.0 = 4.20100415

 Device and sdk has version 4.20100302+0m5

 Any ideas?

 --
 Kaj-Michael Lang mil...@tal.org

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to resolve network connectivity without using Qt Mobility in Qt?

2010-07-22 Thread Daniil Ivanov
Hi Ville!

   Unfortunately what Sascha is saying is true. You cannot use Qt
Mobility in paid
   applications. See this thread for a details:
   http://lists.maemo.org/pipermail/maemo-developers/2010-July/027109.html

Thanks, Daniil.

On Thu, Jul 22, 2010 at 4:54 PM, Ville M. Vainio vivai...@gmail.com wrote:
 I believed this is a misunderstanding or bad test case on ovi QA side. They
 are trying dpkg -i to ensure dependencies on clean environment, without
 awareness that dependencies to nokia repositories are ok.

 Advice them of this.



 - Original message -
 Hi Ville,

 Let me just copy and paste here a few emails I got from Publish To Ovi
 Support:

 As a matter of fact, this app is failed in QA because of feature of
 application manager direct installing from deb file cause that installing
 will complain two dependence library: 'libqtm-bearer and
 libqtm-systeminfo are missing.', quoted from internal communication
 with our back-end.

 The reason is that Nokia hasn't yet embedded Qt Mobility on N900.
 Although it will happen soon, currently developers have to manually
 package the Qt Mobility package with their apps.

 You may find the Qt Mobility package and its individual packages here:
 http://repository.maemo.org/pool/fremantle/free/q/qt-mobility/.

 Files ending with _armel.deb are those ones that should be pre-installed
 on N900 devices, whereas _i386.deb ones are for PC environment.

 To be specific, for your case, you should at least package the

 http://repository.maemo.org/pool/fremantle/free/q/qt-mobility/libqtm-bearer_1.0.0-maemo1+0m5_armel.deb
 and
 the

 http://repository.maemo.org/pool/fremantle/free/q/qt-mobility/libqtm-systeminfo_1.0.0-maemo1+0m5_armel.debinto
 your final build.



 And here is a other one:

 In fact, the issue is not we cannot install the missing libraries on our
 own; it is that we cannot assume that end-users/consumers have this
 knowledge to install the dependencies by themselves.

 Thus, the current workaround for this is to package the dependencies into
 the app build so that end-users/consumers do not have to handle this
 hassle.



 And here is the final one:

 You can always try to build the Qt Mobility source with your app. The
 source package can be downloaded at

 http://repository.maemo.org/pool/fremantle/free/q/qt-mobility/qt-mobility_1.0.2-maemo1.tar.gz;
 or you can use apt-get source libqtm-bearer to acquire.

 I'm also working on possible other solutions. Packaging a deb file into
 another looks like having some trouble currently. I'll let you know if
 I've made any progress. Sorry for the inconvenience.



 As you can see what I'm told by them, it seems that they are not using a
 repository for paid apps. Do you have other information?

 Cheers,

 Sascha



 On Thu, Jul 22, 2010 at 16:16, Ville M. Vainio vivai...@gmail.com
 wrote:

  Well, that's certainly not the general understanding (inside Nokia) of
  how it should work. Do you care to elaborate so that we can escalate
  the issue (with the understanding that it's holiday period...)?
 
  Definitely qtmobility is to be usable for Ovi store applications, and
  same applies for all the other packages that can be downloaded from
  nokia repos. If this is not currently the case, the process is broken
  at the moment. You should not change your apps design because of this
  glitch.
 
  - Original message -
   Hi Ville,
  
   Yes, this is what I thought too, but apparently Ovi Store is NOT
   using a repository for paid apps. So it simply using dpgk to
   install the deb files and therefore it's not able to install
   dependencies. It's frankly quite shocking, but this is the situation.
  
   Cheers,
  
   Sascha
  
   On Thu, Jul 22, 2010 at 15:54, Ville M. Vainio vivai...@gmail.com
   wrote:
  
Qt mobility is in official nokia repo (not extras). It's ok to
depend on those packages when publishing at ovi store.
   
- Original message -
 Hi,

 After struggling for about a month with my app and the Ovi Store
 QA, this is what I found out: apparently Ovi Store is not using a
 repository, at least for paid apps, and therefore cannot install
 dependencies. However, at the same time their QA team requires
 quite a few things when dealing with network connectivity.
 Obviously these requirements are not published anywhere,
 otherwise this would be much
 
 too easy!

 Anyway, this is what I think they want:

 1. Detectect if the device is Offline and give appropriate
 warning. 2. Detect if the device is connected and if not
 establish the connection.
   
 3. If the connection is set to manual, the app needs to give the
 necessary prompt.
 4. If the connection is set to automatic, it should connect
 without any prompt.

 So these, I believe, are the requirements of the Ovi Store
 QA regarding network connectivity. Now the question is how can
 this be done without using Qt Mobility 

Re: How to resolve network connectivity without using Qt Mobility in Qt?

2010-07-22 Thread Daniil Ivanov
Hi Yves-Alexis!

   The point is security as these are paid applications.

Thanks, Daniil.

On Thu, Jul 22, 2010 at 11:21 AM, Yves-Alexis Perez cor...@debian.org wrote:
 On 22/07/2010 10:10, Marius Vollmer wrote:
 The Application Manager has been 'optimized' for repositories, and the
 code for dealing with Debian package files has been neglected.  Now with
 the Ovi Store using standalone Debian packages, we should finally fix
 that.

 Again, wouldn't it be easier and smarter (at least technically) to fix
 ovi store? What's the point of (basically) running dpkg -i instead of
 apt-get install?

 Cheers,
 --
 Yves-Alexis
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Ovi Store disk space requirements miscalculations

2010-07-21 Thread Daniil Ivanov
Hi Martin!

  I will tell you a dirty secret:

 Nokia-N900:~# ls -l /usr/share/ | grep icons
 lrwxrwxrwx1 root root   20 Jul 13 14:27 icons -
/opt/usr/share/icons

Thanks, Daniil.

On Wed, Jul 21, 2010 at 4:50 PM, Marius Vollmer
marius.voll...@nokia.com wrote:
 ext Martin Storsjö mar...@martin.st writes:

 OPT folder value should be 80% of USR folder.

 Taken literally, this means that the OPT folder is actually supposed to
 be smaller than the USR folder... :-)

 ACTUAL OUTCOME:
 Opt folder value is not 80% of usr folder ,usr=84,opt=388k.

 This actually checks out for me:

    388 / (388 + 84) = 0.82  0.8

 Maybe they want USR to be at most 20% of OPT?  That would be a bit strange, 
 but
 would explain the verdict:

    84 / 388 = 0.21  0.20

 If I remember right, Urho and me invented these numbers hand wavingly
 some time ago.  The idea back then was that if the OPT/USR ratio of a
 package is always larger than the OPT/USR ration of the actual
 partitions, then you can install as many packages as will fit into OPT
 without running out of USR.

 The partitions are 2G / 256M = 8.

 With the du numbers on ext3, your package has a ratio of

     388 / 84 = 4.6  8

 which would indeed fail the requirements.


 With your numbers on ubifs, we have

    368 / 20 = 18.4  8

 and you win by a huge margin.

 However, I agree that directories should not be counted at all.  Then
 you will probably win by a even larger margin.


 To summarize: I don't know what they have calculated, but I think they
 should calculate the OPT/USR ratio and require it to be larger than 8.
 Furthermore, only actual files should be counted.  Filesystem specific
 effects like directories should be exluded.  This is a heuristic anyway
 and making it simpler and easier to reproduce in different environments
 is therefore more important than accurate simulation of what would
 happen on the device.

 (If we want to simulate the device, we need to take UBIFS compression
 into account.)

 Also, is there any idea in trying to discuss these issues in Ovi Publish
 by commenting back? On Ovi/Symbian things, I've never ever seen a reviewer
 actually take my comments in account, so I don't think anybody ever reads
 the comments the submitter writes.

 I'll try to ping the right people here.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to to manually package Qt Mobility?

2010-07-21 Thread Daniil Ivanov
Hi!

This means application won't work without having connection after installation
and I guess Qvi Store QA is good enough to find that and reject the application.
Moreover, you would need root permissions to install additional packages, so
apparently there is need to modify sudoers settings, which may be seen as
security breakage.  If all these succeed I would be surprised.

Thanks, Daniil.

On Wed, Jul 21, 2010 at 5:40 PM, Attila Csipa ma...@csipa.in.rs wrote:
 On Wednesday 21 July 2010 08:13:27 Marius Vollmer wrote:
 ext Sascha Mäkelä sascha.mak...@gmail.com writes:
  OK. If Ovi Store for paid apps is no using a repository, then what about
  using preinst script or something to install the dependencies?

 You unfortunately can't run dpkg recursively and thus can't install
 packages from maintainer scripts.

 I have no good ideas, sorry.

 It's probably not a good idea but you can work around the issue like the Qt
 smart installer does - omit any non-base firmware dependencies, and use a
 loader. That way the install will succeed, and then via the loader you can
 apt-get/application-manager install whatever you need on the first run of the
 application. It's a horrible hack (and probably breaks a dozen Ovi rules and
 common sense along the way), but it might work.

 Regards,
 Attila
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: extras-devel .install files issue

2010-07-20 Thread Daniil Ivanov
Hi Niels!

  How many month do you believe it will take to fix this issue?

Thanks, Daniil.

On Thu, Jun 10, 2010 at 5:32 PM,  tero.k...@nokia.com wrote:
 Utterly missed the link, sorry about that. (wans't really aware that we have 
 .install files for extras-devel :) )

 Looks like a case for.. the admin!
 Niels?

 Tero
 
 From: ext Daniil Ivanov [daniil.iva...@gmail.com]
 Sent: 10 June 2010 17:24
 To: Kojo Tero (Nokia-D/Helsinki)
 Cc: antonio.aloi...@gmail.com; maemo-developers@maemo.org
 Subject: Re: extras-devel .install files issue

 Hi Tero!

  The problem is that there is no fremantle-1.2 for extras-devel.

 Thanks, Daniil.

 On Thu, Jun 10, 2010 at 5:21 PM,  tero.k...@nokia.com wrote:
 The N900 automatically inserts the proper dist when you open the install 
 file in Application manager.
 fremantle-1.2 for PR1.2 and just fremantle for all prior PR's

 Could you describe what the problem you exactly were experiencing and where?

 Tero

 
 From: maemo-developers-boun...@maemo.org 
 [maemo-developers-boun...@maemo.org] On Behalf Of ext Daniil Ivanov 
 [daniil.iva...@gmail.com]
 Sent: 10 June 2010 14:00
 To: Antonio Aloisio
 Cc: maemo-developers@maemo.org
 Subject: Re: extras-devel .install files issue

 Hi Antonio!

   Extras has it, but extras-devel not. At least at the moment of writing 
 this.

 Thanks, Daniil.

 On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio
 antonio.aloi...@gmail.com wrote:
 Hi Ram,
 According to [1] there is just one devel repsitory and it's fremantle.
 Btw extras has the fremantle-1.2 rep too.
 Cheers,
 Antonio
 [1] http://repository.maemo.org/extras-devel/pool/

 On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote:

 is it dist = fremantle or dist = fremantle-1.2 ?

 I thought the latter is linked to the PR1.2 repos, or has it changed ?

 Ive had similar issues with .install files.

 Thanks for raising it Daniil.

 Regards,

 -krk969

 - Original Message -

 From: Daniil Ivanov

 Sent: 06/10/10 11:24 AM

 To: maemo-developers@maemo.org

 Subject: extras-devel .install files issue

 Hi all!   It seems that are the problems
 http://repository.maemo.org/extras-devel/dists/fremantle/install/  and that
 dist = fremantle  should be added to the .install files.  Thanks, Daniil.
 ___ maemo-developers mailing
 list maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers





 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Attach an icon to an application does not work

2010-07-15 Thread Daniil Ivanov
Hi all!

  Also there is a bug
  https://bugs.maemo.org/show_bug.cgi?id=6931
  requiring device reboot to show proper application icon after installation.

Thanks, Daniil.

On Thu, Jul 15, 2010 at 4:12 PM, David King dav...@openismus.com wrote:
 On 2010-07-15 14:45, Pierre CLARENC pierre@gmail.com wrote:

 Hello,

 I have developed a small program using ESbox. It works well when I execute
 it on my N900.

 I want to attach a specific icon to this program. I use a 48*48 px image
 (PNG format) that I have resized with the GIMP. I use the following
 command
 to generate a base64 coded image:

 uuencode -m icon.png icon.png  icon_64.base64

 But when I install my deb package on the device, the icon does not work. I
 only have the blue square instead.

 The instructions at:

 http://wiki.maemo.org/Packaging#Displaying_an_icon_in_the_Application_Manager_next_to_your_package

 (that you apparently followed) refer to an icon in the application manager
 only. If you wish to have an icon shown in the application menu, then you
 should install it to the correct location (usually
 /usr/share/icons/hicolor/size where size is one of a range of possible
 values, e.g. 16x16, 32x32, scalable). Then, you must refer to that icon in
 the desktop file, see:

 http://wiki.maemo.org/Packaging#Desktop_files

 and the links in that section for some more details.

 --
 David King | http://amigadave.com/ | dav...@openismus.com
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


GPG keyring package for Fremantle SDK repository

2010-06-23 Thread Daniil Ivanov
Hi all!

 Does any one remember name of the GPG keyring package for Fremantle
SDK repository?
  apt-cache search keyring
  gives me anything interesting.

Thanks, Daniil.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: libosso-abook-1.0 and librtcom-eventlogger

2010-06-22 Thread Daniil Ivanov
Hi Saurabh!

   Have you heard about Windows Vista?

Thanks, Daniil.

On Tue, Jun 22, 2010 at 8:20 AM, saurabh aggarwal
aggarwal.saur...@gmail.com wrote:
 So, are we supposed to produce multiple binaries for every version of Maemo
 platform? That doesn't sound right.

 Unfortunately, I am new to linux applications and have always had my old
 apps working on new versions of Windows (without a re-compile). So, am a bit
 confused.

 -Saurabh

 On Tue, Jun 22, 2010 at 2:54 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Saurabh!

  It depends on library. In general case answer is no.

 Thanks, Daniil.

 On Mon, Jun 21, 2010 at 6:30 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Once, I upgrade the SDK, would the produced library still be compatible
  with
  devices which don't have PR 1.2 installed?
 
  Regards,
  -Saurabh
 
  On Mon, Jun 21, 2010 at 6:56 PM, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
  Hi Saurabh!
 
   Upgrade your SDK with
   fakeroot apt-get update
   fakeroot apt-get dist-upgrade
 
  Thanks, Daniil.
 
  On Mon, Jun 21, 2010 at 3:47 PM, saurabh aggarwal
  aggarwal.saur...@gmail.com wrote:
   We were building out application and testing on N900 with PR1.1. We
   recently
   upgraded our device to PR1.2, and now are getting error when we try
   to
   launch it.
  
   The error we get is error while loading shared libraries:
   librtcom-eventlogger.so.
  
   I checked in the pro file, and we are using libosso-abook-1.0 which
   is
   adding the dependency for this library which seems to be
   non-compatible
   from
   previous version.
  
   How should I handle this in my application? Does this mean that I
   can't
   use
   libosso-abook-1.0 anymore, or do I need to update my dev libraries ?
   BTW, I
   did try to check and there wasn't an update to libosso-abook-dev
   available.
  
   -Saurabh
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
  
  
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: libosso-abook-1.0 and librtcom-eventlogger

2010-06-22 Thread Daniil Ivanov
  What you should do is to include strict dependency to
libosso-abook-1.0 in dependencies of your package.
  Then during installation process of your application apt will
automatically pull the newer versions of libraries on devices with
PR1.1.

Thanks, Daniil.

On Tue, Jun 22, 2010 at 10:57 AM, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Hi Saurabh!

   Have you heard about Windows Vista?

 Thanks, Daniil.

 On Tue, Jun 22, 2010 at 8:20 AM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
 So, are we supposed to produce multiple binaries for every version of Maemo
 platform? That doesn't sound right.

 Unfortunately, I am new to linux applications and have always had my old
 apps working on new versions of Windows (without a re-compile). So, am a bit
 confused.

 -Saurabh

 On Tue, Jun 22, 2010 at 2:54 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Saurabh!

  It depends on library. In general case answer is no.

 Thanks, Daniil.

 On Mon, Jun 21, 2010 at 6:30 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Once, I upgrade the SDK, would the produced library still be compatible
  with
  devices which don't have PR 1.2 installed?
 
  Regards,
  -Saurabh
 
  On Mon, Jun 21, 2010 at 6:56 PM, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
  Hi Saurabh!
 
   Upgrade your SDK with
   fakeroot apt-get update
   fakeroot apt-get dist-upgrade
 
  Thanks, Daniil.
 
  On Mon, Jun 21, 2010 at 3:47 PM, saurabh aggarwal
  aggarwal.saur...@gmail.com wrote:
   We were building out application and testing on N900 with PR1.1. We
   recently
   upgraded our device to PR1.2, and now are getting error when we try
   to
   launch it.
  
   The error we get is error while loading shared libraries:
   librtcom-eventlogger.so.
  
   I checked in the pro file, and we are using libosso-abook-1.0 which
   is
   adding the dependency for this library which seems to be
   non-compatible
   from
   previous version.
  
   How should I handle this in my application? Does this mean that I
   can't
   use
   libosso-abook-1.0 anymore, or do I need to update my dev libraries ?
   BTW, I
   did try to check and there wasn't an update to libosso-abook-dev
   available.
  
   -Saurabh
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
  
  
 
 



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: libosso-abook-1.0 and librtcom-eventlogger

2010-06-21 Thread Daniil Ivanov
Hi Saurabh!

  Upgrade your SDK with
  fakeroot apt-get update
  fakeroot apt-get dist-upgrade

Thanks, Daniil.

On Mon, Jun 21, 2010 at 3:47 PM, saurabh aggarwal
aggarwal.saur...@gmail.com wrote:
 We were building out application and testing on N900 with PR1.1. We recently
 upgraded our device to PR1.2, and now are getting error when we try to
 launch it.

 The error we get is error while loading shared libraries:
 librtcom-eventlogger.so.

 I checked in the pro file, and we are using libosso-abook-1.0 which is
 adding the dependency for this library which seems to be non-compatible from
 previous version.

 How should I handle this in my application? Does this mean that I can't use
 libosso-abook-1.0 anymore, or do I need to update my dev libraries ? BTW, I
 did try to check and there wasn't an update to libosso-abook-dev available.

 -Saurabh
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: nokia qt sdk and symbian

2010-06-21 Thread Daniil Ivanov
Hi Martin!

  Symbian development tools never was officially ported to Linux and
unlikely it will happen in future.
  I don't know if you notice, but this mailing list is devoted to
Maemo, so your question is offtopic here.

Thanks, Daniil.

On Mon, Jun 21, 2010 at 5:20 PM, Martin DeMello martindeme...@gmail.com wrote:
 The Nokia Qt SDK RC1 says The Linux version of this beta provides for
 compiling to Maemo only. Does anyone know if this is an RC1
 limitation only, and whether the final version will allow
 cross-compiling to Symbian from linux?

 martin
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: nokia qt sdk and symbian

2010-06-21 Thread Daniil Ivanov
Hi Martin!

  However, unofficial tools are available ttp://www.martin.st/symbian/
  I think there is no emulator.

Thanks, Daniil.

On Mon, Jun 21, 2010 at 5:28 PM, Martin DeMello martindeme...@gmail.com wrote:
 On Mon, Jun 21, 2010 at 7:55 PM, Daniil Ivanov daniil.iva...@gmail.com 
 wrote:
 Hi Martin!

  Symbian development tools never was officially ported to Linux and
 unlikely it will happen in future.

 That's sad, if true :(
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: nokia qt sdk and symbian

2010-06-21 Thread Daniil Ivanov
Hi Sivan!

  http://wiki.forum.nokia.com/index.php/Nokia_Qt_SDK#Limitations

Thanks, Daniil.

On Mon, Jun 21, 2010 at 5:58 PM, Sivan Greenberg si...@omniqueue.com wrote:
 The Nokia QT SDK support cross platform development across S60 and
 Maemo (Including simulator and on device debugging), you just need to
 have the proper debugging plugin installed onto each target platform
 and set up your USB network iface if under Linux. There was somewhere
 a how to a very nice guy from Nokia showed me but I forgot the URL.

 Once I find it I'll post it here.

 Sivan

 On Mon, Jun 21, 2010 at 5:28 PM, Martin DeMello martindeme...@gmail.com 
 wrote:
 On Mon, Jun 21, 2010 at 7:55 PM, Daniil Ivanov daniil.iva...@gmail.com 
 wrote:
 Hi Martin!

  Symbian development tools never was officially ported to Linux and
 unlikely it will happen in future.

 That's sad, if true :(

  I don't know if you notice, but this mailing list is devoted to
 Maemo, so your question is offtopic here.

 True enough, but I can't be the only Maemo developer who is interested
 in the possibility of using the Qt SDK to deliver apps that run on
 both platforms.

 martin
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: libosso-abook-1.0 and librtcom-eventlogger

2010-06-21 Thread Daniil Ivanov
Hi Saurabh!

  It depends on library. In general case answer is no.

Thanks, Daniil.

On Mon, Jun 21, 2010 at 6:30 PM, saurabh aggarwal
aggarwal.saur...@gmail.com wrote:
 Once, I upgrade the SDK, would the produced library still be compatible with
 devices which don't have PR 1.2 installed?

 Regards,
 -Saurabh

 On Mon, Jun 21, 2010 at 6:56 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Saurabh!

  Upgrade your SDK with
  fakeroot apt-get update
  fakeroot apt-get dist-upgrade

 Thanks, Daniil.

 On Mon, Jun 21, 2010 at 3:47 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  We were building out application and testing on N900 with PR1.1. We
  recently
  upgraded our device to PR1.2, and now are getting error when we try to
  launch it.
 
  The error we get is error while loading shared libraries:
  librtcom-eventlogger.so.
 
  I checked in the pro file, and we are using libosso-abook-1.0 which is
  adding the dependency for this library which seems to be non-compatible
  from
  previous version.
 
  How should I handle this in my application? Does this mean that I can't
  use
  libosso-abook-1.0 anymore, or do I need to update my dev libraries ?
  BTW, I
  did try to check and there wasn't an update to libosso-abook-dev
  available.
 
  -Saurabh
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-14 Thread Daniil Ivanov
Hi Sudheer!

  It's a very sad decision to give up on such simple thing.

Thanks, Daniil.

On Mon, Jun 14, 2010 at 7:49 AM, Sudheer K. scifi@hotmail.com wrote:
 Hi Daniil,

 From the testing I have done with latest Qt designer, scrolling is still not
 working. Somehow, I am not able to get the scrolling working with your .ui
 file too.

 But I feel at this point we have spent too much time for a non-critical
 issue such as this. Right now I am using tabs to organize the form fields
 and I will continue to use it. Scrolling would have been nice but is not
 absolutely necessary.

 Thank you for staying with this thread and continuously responding to my
 questions.

 ~Sudheer

 Date: Thu, 10 Jun 2010 10:20:56 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 It should be something like .ui file in attachment.

 Thanks, Daniil.

 On Thu, Jun 10, 2010 at 10:14 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:
  Hi Sudheer!
 
    The name of a tool is Qt Designer and it should allow to do what you
  want,
    however I'm wrong person to ask how to use Qt Designer.
 
  Thanks, Daniil.
 
  On Thu, Jun 10, 2010 at 7:47 AM, Sudheer K. scifi@hotmail.com
  wrote:
  Hi Daniil,
 
  Thanks for looking into the code. The main problem I have is that, Qt
  creator does not give enough flexibility to create the hierarchy that
  you
  suggested.
 
  This is the hierarchy created using Qt creator.
  http://i49.tinypic.com/2rxbm75.jpg
 
  - centralWidget is automatically created by Qt creator and is locked,
  so I
  cannot even delete it.
  - scrollAreaWidgetContents is also automatically created by Qt creator
  and
  is locked. I cannot modify this too.
  - I created two groupboxes (Basic and Advanced) which contain one form
  layout each. These are added to the scrollAreaWidgetContents because I
  can
  not directly add them to scrollArea.
 
  I am using Qt Creator 1.3.1. Is there a way to make the scrolling work
  using
  Creator or should I stop using Qt creator and code the form class
  myself?
 
  Date: Wed, 9 Jun 2010 18:33:55 +0300
  Subject: Re: How to get kinetic scrolling working using Qt creator
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
 
  Hi Sudheer!
 
  There are many bugs there. For example you don't need centralWidget
  at all, place scrollArea instead of it.
  Then you create multiple layout, set them to widgets and never place
  them into scrollArea.
  On desktop you don't have scroll bars as well.
 
  Thanks, Daniil.
 
 
 
  
  The New Busy is not the too busy. Combine all your e-mail accounts with
  Hotmail. Get busy.
 

 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtSql and Debian package probelm

2010-06-11 Thread Daniil Ivanov
Hi Sascha!

   Can you change your code like this:
   QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
   QString name = QDir::homePath() + /CurrencyConverter;
   db.setDatabaseName(name);
if (!db.open()) {
qDebug()  name  db.lastError();
return false;
} else
return true;

   and then run your application from the console?

Thanks, Daniil.

On Fri, Jun 11, 2010 at 11:11 AM, Sascha Mäkelä sascha.mak...@gmail.com wrote:
 I have now like this:
 QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
 QString name = QDir::homePath() + /CurrencyConverter;
 db.setDatabaseName(name);
 return db.open();
 It works fine directly from Qt Creator, but it doesn't work when installing
 the Debian package. Any ides?

 On Thu, Jun 10, 2010 at 16:39, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

   It's actually better to use getenv(HOME), instead of /home/user.

 Thanks, Daniil.

 On Thu, Jun 10, 2010 at 4:37 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:
  Ok, no need for directory:
 
   QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
   db.setDatabaseName(/home/user/.AppName);
   if (!db.open())
       qDebug()  db.lastError();
 
  Thanks, Daniil.
 
  On Thu, Jun 10, 2010 at 4:33 PM, Sascha Mäkelä sascha.mak...@gmail.com
  wrote:
  Ehr... no. And how would I do that? Sorry for these silly questions...
  Thanks,
  Sascha
  PS. As such it didn't work in the package. But then again, I did not
  create
  the directory...
 
  On Thu, Jun 10, 2010 at 16:31, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
   Did you create /home/user/.somedir/?
 
  Thanks, Daniil.
 
  On Thu, Jun 10, 2010 at 4:28 PM, Sascha Mäkelä
  sascha.mak...@gmail.com
  wrote:
   OK, let me try that. But at least it doesn't like it when running
   from
   Qt
   Creator (I'm using Nokia Qt SDK). The database stops working and
   behaves
   the
   same way as in the package.
  
   On Thu, Jun 10, 2010 at 16:08, Daniil Ivanov
   daniil.iva...@gmail.com
   wrote:
  
   Hi!
  
     You should be using something like this:
  
     QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
     db.setDatabaseName(/home/user/.somedir/AppName);
  
  
     return db.open();
  
   Thanks, Daniil.
  
   On Thu, Jun 10, 2010 at 4:01 PM, Sascha Mäkelä
   sascha.mak...@gmail.com
   wrote:
I'm just getting:
QSqlQuery::value: not positioned on a valid record
It's like the app is unable to write any data to the SQLite
database.
As
I
said, it does work fine when running it from Qt Creator or MADDE.
   
On Thu, Jun 10, 2010 at 15:57, David King dav...@openismus.com
wrote:
   
On 2010-06-10 15:47, Sascha Mäkelä sascha.mak...@gmail.com
wrote:
   
This how it looks now:
   
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network,
libqt4-sql,
libqt4-sql-sqlite
   
But still it doesn't work. Am I missing something? The app
works
fine
when I
run it in N900 from Qt Creator.
   
Which database provider do you use, I guess SQLite? If so, your
Depends:
line looks correct. When you say that the SQL parts of the
application
do
not work, what is the problem? You could try starting your
program
from
the
terminal to check for clues in the output. Either that, or
report
any
error
messages that the application gives you.
   
Thanks for all your help,
Sascha
   
On Thu, Jun 10, 2010 at 15:12, David King
dav...@openismus.com
wrote:
   
On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@gmail.com
wrote:
   
Hi,
   
I just made a Debian package of my app. I'm using QtSql in
it.
But
for
some
reason when I install the package, all the SQL things don't
work.
My
guess
is that I'm missing something in the Build-Depends line in
the
control
file.
How can I check what libs I need to add there and what are
their
correct
names?
   
Cheers,
Sascha
   
PS. Currently it's like this: Build-Depends: dephelper (5),
libqt4-dev,
libqt4-network
   
   
You need to add the relevant Qt SQL provider packages to the
‘Depends:’
line, not the ‘Build-Depends:’ line, as the SQL providers are
plugins
that
are not required at build time, but at runtime. You probably
want
libqt4-sql-mysql or libqt4-sql-sqlite in Depends, depending on
which
database provider you are using.
   
--
David King | http://amigadave.com/
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
   
   
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
   
   
  
  
 
 
 


___
maemo-developers mailing list
maemo

Re: QtSql and Debian package probelm

2010-06-11 Thread Daniil Ivanov
Try this?

  QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
  QString name = QDir::homePath() + /CurrencyConverter;
  db.setDatabaseName(name);
   if (!db.open()) {
   qDebug()  name  db.lastError();
   return false;
   } else {
   qDebug()  name  Great success!;
   return true;
  }

Thanks, Daniil.

On Fri, Jun 11, 2010 at 11:37 AM, Sascha Mäkelä sascha.mak...@gmail.com wrote:
 I get no error about that. Just the usual:
 QSqlQuery::value: not positioned on a valid record
 If there is a database, it's completely empty and I can't write anything
 into it.
 Thanks,
 Sascha
 On Fri, Jun 11, 2010 at 11:16, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Sascha!

   Can you change your code like this:
   QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
   QString name = QDir::homePath() + /CurrencyConverter;
   db.setDatabaseName(name);
    if (!db.open()) {
        qDebug()  name  db.lastError();
        return false;
    } else
        return true;

   and then run your application from the console?

 Thanks, Daniil.

 On Fri, Jun 11, 2010 at 11:11 AM, Sascha Mäkelä sascha.mak...@gmail.com
 wrote:
  I have now like this:
  QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
  QString name = QDir::homePath() + /CurrencyConverter;
  db.setDatabaseName(name);
  return db.open();
  It works fine directly from Qt Creator, but it doesn't
  work when installing
  the Debian package. Any ides?
 
  On Thu, Jun 10, 2010 at 16:39, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
    It's actually better to use getenv(HOME), instead of /home/user.
 
  Thanks, Daniil.
 
  On Thu, Jun 10, 2010 at 4:37 PM, Daniil Ivanov
  daniil.iva...@gmail.com
  wrote:
   Ok, no need for directory:
  
    QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
    db.setDatabaseName(/home/user/.AppName);
    if (!db.open())
        qDebug()  db.lastError();
  
   Thanks, Daniil.
  
   On Thu, Jun 10, 2010 at 4:33 PM, Sascha Mäkelä
   sascha.mak...@gmail.com
   wrote:
   Ehr... no. And how would I do that? Sorry for these silly
   questions...
   Thanks,
   Sascha
   PS. As such it didn't work in the package. But then again, I did not
   create
   the directory...
  
   On Thu, Jun 10, 2010 at 16:31, Daniil Ivanov
   daniil.iva...@gmail.com
   wrote:
  
    Did you create /home/user/.somedir/?
  
   Thanks, Daniil.
  
   On Thu, Jun 10, 2010 at 4:28 PM, Sascha Mäkelä
   sascha.mak...@gmail.com
   wrote:
OK, let me try that. But at least it doesn't like it when running
from
Qt
Creator (I'm using Nokia Qt SDK). The database stops working and
behaves
the
same way as in the package.
   
On Thu, Jun 10, 2010 at 16:08, Daniil Ivanov
daniil.iva...@gmail.com
wrote:
   
Hi!
   
  You should be using something like this:
   
  QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE);
  db.setDatabaseName(/home/user/.somedir/AppName);
   
   
  return db.open();
   
Thanks, Daniil.
   
On Thu, Jun 10, 2010 at 4:01 PM, Sascha Mäkelä
sascha.mak...@gmail.com
wrote:
 I'm just getting:
 QSqlQuery::value: not positioned on a valid record
 It's like the app is unable to write any data to the SQLite
 database.
 As
 I
 said, it does work fine when running it from Qt Creator or
 MADDE.

 On Thu, Jun 10, 2010 at 15:57, David King
 dav...@openismus.com
 wrote:

 On 2010-06-10 15:47, Sascha Mäkelä sascha.mak...@gmail.com
 wrote:

 This how it looks now:

 Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network,
 libqt4-sql,
 libqt4-sql-sqlite

 But still it doesn't work. Am I missing something? The app
 works
 fine
 when I
 run it in N900 from Qt Creator.

 Which database provider do you use, I guess SQLite? If so,
 your
 Depends:
 line looks correct. When you say that the SQL parts of the
 application
 do
 not work, what is the problem? You could try starting your
 program
 from
 the
 terminal to check for clues in the output. Either that, or
 report
 any
 error
 messages that the application gives you.

 Thanks for all your help,
 Sascha

 On Thu, Jun 10, 2010 at 15:12, David King
 dav...@openismus.com
 wrote:

 On 2010-06-10 15:01, Sascha Mäkelä
 sascha.mak...@gmail.com
 wrote:

 Hi,

 I just made a Debian package of my app. I'm using QtSql in
 it.
 But
 for
 some
 reason when I install the package, all the SQL things
 don't
 work.
 My
 guess
 is that I'm missing something in the Build-Depends line in
 the
 control
 file.
 How can I check what libs I need to add there and what are
 their
 correct
 names?

 Cheers,
 Sascha

 PS. Currently it's like this: Build-Depends: dephelper
 (5),
 libqt4-dev,
 libqt4-network

Re: Installing dependencies on MADDE

2010-06-11 Thread Daniil Ivanov
Hi Fred!

  There is no way. You will need to master using scratchbox.

Thanks, Daniil.

On Fri, Jun 11, 2010 at 5:51 PM, Fred Duarte fred.dua...@openbossa.org wrote:
 I'm trying to package a QT application with MADDE that contains
 some non-QT dependencies.

 Is it possible to install it via apt-get install PACKAGE_NAME or dpkg -i
 PACKAGE_NAME.deb ?

 If not, how can I add these dependencies to the MADDE environment?

 --
 Frederico Simas Duarte
 SW  UI - Software and User Interface
 INDT - Nokia Institute

 http://fredyduarte.net/blog/

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-10 Thread Daniil Ivanov
Hi Sudheer!

   The name of a tool is Qt Designer and it should allow to do what you want,
   however I'm wrong person to ask how to use Qt Designer.

Thanks, Daniil.

On Thu, Jun 10, 2010 at 7:47 AM, Sudheer K. scifi@hotmail.com wrote:
 Hi Daniil,

 Thanks for looking into the code. The main problem I have is that, Qt
 creator does not give enough flexibility to create the hierarchy that you
 suggested.

 This is the hierarchy created using Qt creator.
 http://i49.tinypic.com/2rxbm75.jpg

 - centralWidget is automatically created by Qt creator and is locked, so I
 cannot even delete it.
 - scrollAreaWidgetContents is also automatically created by Qt creator and
 is locked. I cannot modify this too.
 - I created two groupboxes (Basic and Advanced) which contain one form
 layout each. These are added to the scrollAreaWidgetContents because I can
 not directly add them to scrollArea.

 I am using Qt Creator 1.3.1. Is there a way to make the scrolling work using
 Creator or should I stop using Qt creator and code the form class myself?

 Date: Wed, 9 Jun 2010 18:33:55 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 There are many bugs there. For example you don't need centralWidget
 at all, place scrollArea instead of it.
 Then you create multiple layout, set them to widgets and never place
 them into scrollArea.
 On desktop you don't have scroll bars as well.

 Thanks, Daniil.



 
 The New Busy is not the too busy. Combine all your e-mail accounts with
 Hotmail. Get busy.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to optify in MADDE?

2010-06-10 Thread Daniil Ivanov
Hi Daniel!

  Of course manual optification is the way to go when there is no other way.
  But is it so that installing scratchbox and performing optification
there is considered as too difficult?
  BTW, are there any chances maemo-optify will be included into MADDE?

Thanks, Daniil.

On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms daniel.wi...@nokia.com wrote:
 Hi,

 ext Sascha Mäkelä wrote:

 OK and how would I do that? Should I edit the src.pro http://src.pro
 file and how should it look? Is something else needed?

 one thing you could do is putting the files of the application (like binary,
 images etc.) in a folder like /opt/myapp/. This you can specify in your
 src.pro. There is a packaging guide for Qt applications available in the
 wiki [1]. After doing that you can then have the right path to your
 executable in the *.desktop file.

 1. http://wiki.maemo.org/Packaging_a_Qt_application

 Daniel



 Thanks,
 Sascha

 On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen pasi.savanai...@nixu.com
 mailto:pasi.savanai...@nixu.com wrote:

    On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
     How can I optify a package in Windows using MADDE? Does this work:
    

  http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
    
     If it does, how can I install it to MADDE?
    
     Cheers,
     Sascha
    
    
    
    
     ___
     maemo-developers mailing list
     maemo-developers@maemo.org mailto:maemo-developers@maemo.org
     https://lists.maemo.org/mailman/listinfo/maemo-developers

    You cannot use that with MADDE, because maemo-optify* commands use
    internally some dpkg* command options that are not implemented by
    MADDE.
    You have to do optify our packages by hand.

    -- Pasi



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to optify in MADDE?

2010-06-10 Thread Daniil Ivanov
Hi Riku!

  Then why we went to maemo-optify path instead of modifying Debian build tools?
  I know it was a huge thread about optification, I didn't dare to read it.
  Neither want to start it again :)

Thanks, Daniil.

On Thu, Jun 10, 2010 at 12:57 PM, Riku Voipio riku.voi...@nokia.com wrote:
 On 06/10/2010 11:32 AM, ext Daniil Ivanov wrote:
 Hi Daniel!

   Of course manual optification is the way to go when there is no other way.
   But is it so that installing scratchbox and performing optification
 there is considered as too difficult?
   BTW, are there any chances maemo-optify will be included into MADDE?

 IMHO Rather than adding support for maemo-optify, madde should optify
 (eg. install everything under /opt/projectname/) builds by default when
 targeting n900.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: extras-devel .install files issue

2010-06-10 Thread Daniil Ivanov
Hi Antonio!

   Extras has it, but extras-devel not. At least at the moment of writing this.

Thanks, Daniil.

On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio
antonio.aloi...@gmail.com wrote:
 Hi Ram,
 According to [1] there is just one devel repsitory and it's fremantle.
 Btw extras has the fremantle-1.2 rep too.
 Cheers,
 Antonio
 [1] http://repository.maemo.org/extras-devel/pool/

 On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote:

 is it dist = fremantle or dist = fremantle-1.2 ?

 I thought the latter is linked to the PR1.2 repos, or has it changed ?

 Ive had similar issues with .install files.

 Thanks for raising it Daniil.

 Regards,

 -krk969

 - Original Message -

 From: Daniil Ivanov

 Sent: 06/10/10 11:24 AM

 To: maemo-developers@maemo.org

 Subject: extras-devel .install files issue

 Hi all!   It seems that are the problems
 http://repository.maemo.org/extras-devel/dists/fremantle/install/  and that
 dist = fremantle  should be added to the .install files.  Thanks, Daniil.
 ___ maemo-developers mailing
 list maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers





 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QtSql and Debian package probelm

2010-06-10 Thread Daniil Ivanov
Hi Sascha!

  You don't have to include libqt4-network and libqt4-sql in Depends:.
  Where do you save your DB?

Thanks, Daniil.

On Thu, Jun 10, 2010 at 3:47 PM, Sascha Mäkelä sascha.mak...@gmail.com wrote:
 This how it looks now:
 Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network, libqt4-sql,
 libqt4-sql-sqlite
 But still it doesn't work. Am I missing something? The app works fine when I
 run it in N900 from Qt Creator.
 Thanks for all your help,
 Sascha

 On Thu, Jun 10, 2010 at 15:12, David King dav...@openismus.com wrote:

 On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@gmail.com wrote:

 Hi,

 I just made a Debian package of my app. I'm using QtSql in it. But for
 some
 reason when I install the package, all the SQL things don't work. My
 guess
 is that I'm missing something in the Build-Depends line in the control
 file.
 How can I check what libs I need to add there and what are their correct
 names?

 Cheers,
 Sascha

 PS. Currently it's like this: Build-Depends: dephelper (5), libqt4-dev,
 libqt4-network

 You need to add the relevant Qt SQL provider packages to the ‘Depends:’
 line, not the ‘Build-Depends:’ line, as the SQL providers are plugins that
 are not required at build time, but at runtime. You probably want
 libqt4-sql-mysql or libqt4-sql-sqlite in Depends, depending on which
 database provider you are using.

 --
 David King | http://amigadave.com/
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Is Nokia SDK 1.0 out?

2010-06-09 Thread Daniil Ivanov
Hi Andrea!

  This is release candidate as you see, not a final version.

Thanks, Daniil.

On Wed, Jun 9, 2010 at 4:18 PM, Andrea Grandi a.gra...@gmail.com wrote:
 Hi,

 a friend of mine just found this:
 http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html
 do we have to wait for the official announce or is it the final version 
 anyway?

 Regards,

 --
 Andrea Grandi
 email: a.grandi [AT] gmail [DOT] com
 website: http://www.andreagrandi.it
 PGP Key: http://www.andreagrandi.it/pgp_key.asc
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-09 Thread Daniil Ivanov
Hi Sudheer!

  There are many bugs there. For example you don't need centralWidget
at all, place scrollArea instead of it.
  Then you create multiple layout, set them to widgets and never place
them into scrollArea.
  On desktop you don't have scroll bars as well.

Thanks, Daniil.

On Tue, Jun 8, 2010 at 6:48 PM, Sudheer K. scifi@hotmail.com wrote:
 Daniil,

 Yes, both horizontal and vertical scrolling are working with your code. Now
 how do we get this to work in my case? :)

 In my case, I have a scrollAreaWidgetContents (QWidget) 798 x 476 added to
 scrollArea. I can not resize this object using Qt creator. Even if I try to
 change the ui header file directly outside Qt creator, scrolling is not
 enabled. The group boxes which are added to scrollAreaWidgetContents have a
 combined height of more than 500.

 I have no clue why this doesn't work, unless groupboxes and/or form layouts
 does not support scrolling.

 ~Sudheer

 Date: Tue, 8 Jun 2010 17:02:55 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 Can you try this sample application

 #include QtGui

 int main (int argc, char **argv)
 {
 QApplication app(argc, argv);

 QPixmap pixmap(1000, 1000);
 pixmap.fill(Qt::green);

 QLabel *label = new QLabel;
 label-setPixmap(pixmap);

 QScrollArea *scroll = new QScrollArea;
 scroll-setWidget(label);

 QMainWindow win;
 win.setCentralWidget(scroll);
 win.show();

 return app.exec();
 }

 Thanks, Daniil.

 On Tue, Jun 8, 2010 at 4:41 PM, Sudheer K. scifi@hotmail.com wrote:
   I think my previous message was not posted because of attachments. So,
  posting again with the link to the source code in garage page.
 
 
  https://garage.maemo.org/plugins/ggit/browse.php/?p=vicar;a=tree;f=src/vicar-config/uis;h=3e2e395c649bd1d5d92490fb2e959b734c77ab1a;hb=af05031713c05157ffb173c51beb8dfb29a6e2f8
 
 
  Ram - I am using Qt creator to create .ui file. I have attached the ui
  file
  and the header file generated by Qt creator. Any changes I make to the
  header file will be overwritten. So I want to use Qt creator only. But
  the
  code generated by Qt creator is similar to yours. I am using the
  QScrollArea
  as well.
 
  Felipe - I am adding two groupboxes to the scroll area. The combined
  height
  for these two boxes is more than 500 which should trigger scrolling. But
  it
  doesn't :(
 
  Daniil - I am not using dpkg at this moment because I am not creating a
  deb.
  I am using qmake and make to create the executable and running on device
  using run-standalone.sh.
 
  Output from qmake -v
  QMake version 2.01a
  Using Qt version 4.6.2 in /usr/lib
 
  Can you look the ui file or header file in the link and tell me what
  could
  be wrong here? I have only one field that is going off the screen.
 
  
  The New Busy is not the old busy. Search, chat and e-mail from your
  inbox.
  Get started.
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 

 
 The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
 Hotmail. Get busy.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Strange problem with Maemo5ShowProgressIndicator

2010-06-08 Thread Daniil Ivanov
Hi Felipe!

  This is not related to window manager as it's a separate process.
Simply changing
  attributes is done through event mechanism.

  Consider this application:

  #include QtGui

int main (int argc, char **argv)
{
QApplication app(argc, argv);

QMainWindow win;
win.show();

QMessageBox::StandardButton reply;
reply = QMessageBox::warning(win,
 QObject::tr(Title), QObject::tr(Message),
 QMessageBox::Yes | QMessageBox::No);
if (reply == QMessageBox::Yes) {
win.setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
app.processEvents();
sleep(5);
win.setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
}

return app.exec();
}


Thanks, Daniil.

On Tue, Jun 8, 2010 at 12:37 AM, Felipe Crochik fel...@crochik.com wrote:
 The window manager has to get a chance to process the message queue in order
 to show the Progress Indicator. It works not because is outside the if but
 because it is before you show the dialog window.

 One possible approach is to set the progress indicator but start the
 processing using a QTimer::singleShot... this will give the window manager
 time to process the queue and show the progress indicator.

 To double check you can just remove the 
 QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false); from your
 first example and you will notice that after the processing is done you will
 see the progress indicator.


 -Original Message-
 From: maemo-developers-boun...@maemo.org
 [mailto:maemo-developers-boun...@maemo.org] On Behalf Of Sascha Mäkelä
 Sent: Monday, June 07, 2010 5:25 PM
 To: maemo-developers
 Subject: Strange problem with Maemo5ShowProgressIndicator

 Hi,
 I'm having a strange problem with Maemo5ShowProgressIndicator. My code
 looks like this:

    QMessageBox::StandardButton reply;
    reply = QMessageBox::warning(this, tr(Warning!),
                                 QMessageBox::Yes | QMessageBox::No);
    if (reply == QMessageBox::Yes) {
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
        // do something...
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
    }

 I get no progress indicator with the previous code. However, when I
 take it out from the IF statement, it does work. Looking like this:

    QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
     QMessageBox::StandardButton reply;
    reply = QMessageBox::warning(this, tr(Warning!),
                                 QMessageBox::Yes | QMessageBox::No);
    if (reply == QMessageBox::Yes) {
        // do something...
        QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
    }

 But of course this way the indicator starts too early or shouldn't
 start at all. Am I doing something wrong?

 Cheers,

 Sascha
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Strange problem with Maemo5ShowProgressIndicator

2010-06-08 Thread Daniil Ivanov
Hi Robin!

   The question was how to make indicator to appear, not how to avoid
blocking of UI
   during long synchronous operation. Sleeping was used just as
simulation of long blocking
   operation.

Thanks, Daniil.

On Tue, Jun 8, 2010 at 3:26 PM, Robin Burchell virot...@viroteck.net wrote:
 On Tue, Jun 8, 2010 at 1:18 PM, Felipe Crochik fel...@crochik.com wrote:
 Daniil: Thank you (again) for the clarification.
 Sascha Mäkelä: this is a simpler way than the QTimer::singleshot. :)

 I should add that both sleeping and using a QTimer aren't really ideal
 solutions, as the UI will be unresponsive while processing is going
 on.

 Generally speaking, you should *try* to not perform
 blocking/synchronous operations unless you do them on a separate
 thread (see QRunnable, QThread, QtConcurrent). The other alternative
 is to use asynchronous equivilents to achieve what you're trying to
 do, for example, using QNetworkAccessManager to download content is
 asynchronous, and won't block the UI as a result. It's a little more
 difficult to write, but the benefits are quite nice. :-)

 Felipe


 Robin Burchell
 mob: +447702671419
 msn: m...@viroteck.net
 irc: w00t @ irc.freenode.net
 twr: http://twitter.com/w00teh
 lac: http://identi.ca/w00t

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to force landscape mode in Qt 4.6.2?

2010-06-08 Thread Daniil Ivanov
Hi Kimmo!

2010/6/8 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
 On Tue, 2010-06-08 at 15:43 +0200, ext Daniil Ivanov wrote:
 Hi Kimmo!

 It sets in case Qt::WA_Maemo5PortraitOrientation true
  Qt::WA_Maemo5LandscapeOrientation false
 _HILDON_PORTRAIT_MODE_SUPPORT(CARDINAL) = 1
 _HILDON_PORTRAIT_MODE_REQUEST(CARDINAL) = 1

 What about in the case that you have only
 Qt::WA_Maemo5LandscapeOrientation set?

If it's set to true, then no properties and if to false it will be as above.

~Daniil

 I just wonder what will happen if to set
 _HILDON_PORTRAIT_MODE_SUPPORT(CARDINAL) = 1
 _HILDON_PORTRAIT_MODE_REQUEST(CARDINAL) = 0
 for rest of two cases?

 I think SUPPORT=1  REQUEST=0 is the same as rotate automatically
 nowadays.

 -Kimmo


 Thanks, Daniil.

 2010/6/8 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
  On Tue, 2010-06-08 at 10:37 +0200, ext Sascha Mäkelä wrote:
  Hi,
 
 
  In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in
  the main.cpp. The auto orientation works fine. However, I have some
  stacked windows that I want to display only in landscape. I've tried
  using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when
  creating the window or in the window it self, but it doesn't seem to
  have any effect. How can I force some of the windows to be only
  landscape?
 
  Could you check what xprop (in x11-utils package) shows about the window
  after setting this Qt::WA_Maemo5LandscapeOrientation?
 
  -Kimmo
 
 
 
 
 
  Cheers,
 
 
  Sascha
 
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to force landscape mode in Qt 4.6.2?

2010-06-08 Thread Daniil Ivanov
Hi Kimmo!

  You convinced me to report a bug ;)

Thanks, Daniil.

2010/6/8 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
 On Tue, 2010-06-08 at 16:05 +0200, ext Daniil Ivanov wrote:
 Hi Kimmo!

 2010/6/8 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
  On Tue, 2010-06-08 at 15:43 +0200, ext Daniil Ivanov wrote:
  Hi Kimmo!
 
  It sets in case Qt::WA_Maemo5PortraitOrientation true
   Qt::WA_Maemo5LandscapeOrientation false
  _HILDON_PORTRAIT_MODE_SUPPORT(CARDINAL) = 1
  _HILDON_PORTRAIT_MODE_REQUEST(CARDINAL) = 1
 
  What about in the case that you have only
  Qt::WA_Maemo5LandscapeOrientation set?

 If it's set to true, then no properties and if to false it will be as above.

 Sounds like hildon-desktop bug then. No properties should mean only
 landscape.

 -Kimmo


 ~Daniil

  I just wonder what will happen if to set
  _HILDON_PORTRAIT_MODE_SUPPORT(CARDINAL) = 1
  _HILDON_PORTRAIT_MODE_REQUEST(CARDINAL) = 0
  for rest of two cases?
 
  I think SUPPORT=1  REQUEST=0 is the same as rotate automatically
  nowadays.
 
  -Kimmo
 
 
  Thanks, Daniil.
 
  2010/6/8 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
   On Tue, 2010-06-08 at 10:37 +0200, ext Sascha Mäkelä wrote:
   Hi,
  
  
   In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in
   the main.cpp. The auto orientation works fine. However, I have some
   stacked windows that I want to display only in landscape. I've tried
   using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when
   creating the window or in the window it self, but it doesn't seem to
   have any effect. How can I force some of the windows to be only
   landscape?
  
   Could you check what xprop (in x11-utils package) shows about the window
   after setting this Qt::WA_Maemo5LandscapeOrientation?
  
   -Kimmo
  
  
  
  
  
   Cheers,
  
  
   Sascha
  
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
  
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: DBus Methods and Signals Introspection or Documentation

2010-06-07 Thread Daniil Ivanov
Hi Wei!

  Can you use libhal and libhal-storage?
  http://maemo.org/api_refs/5.0/5.0-final/libhal/
  http://maemo.org/api_refs/5.0/5.0-final/libhal-storage/

Thanks, Daniil.

On Mon, Jun 7, 2010 at 10:01 AM, Wei Li ttlee1...@gmail.com wrote:
 But is there any doc for at least the object methods and signals under
 /com/nokia? Because HAL has its own DBus instances as well as docs. But I
 couldn't find the /com/nokia ones.

 On Mon, Jun 7, 2010 at 3:03 AM, Ian Stirling maemo-de...@mauve.plus.com
 wrote:

 Wei Li wrote:

 Hi all,

 I am doing a project of middleware on Maemo/N900. I need to find the
 methods and signals related to the hardware, for example, HAL (especially
 the objects under /com/nokia since it is somehow proprietary). However, I
 couldn't find a detailed documentation on that. And I also used tools such
 as mdbus2, but since it lacks documentation and so does DBus itself, I
 couldn't figure out how to do the introspection to find the information I
 want. Anyone knows how to find that? Thanks!

 As I understand it, many of these mrhods do not support introspection, and
 there is no documentation.

 For example - the dbus 'backend' of liblocation.
 It's possible I'm confused, and have simply missed the docs.


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: DBus Methods and Signals Introspection or Documentation

2010-06-07 Thread Daniil Ivanov
Hi Sivan!

  Well, HAL is Hardware Abstraction Layer.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 11:27 AM, Sivan Greenberg si...@omniqueue.com wrote:
 Daniil, maybe he was referring to something more platform (e.g. mobile
 device) specific ? Or are those docs already containing this? (I
 haven't looked into it in detail).



 Sivan

 On Mon, Jun 7, 2010 at 11:25 AM, Daniil Ivanov daniil.iva...@gmail.com 
 wrote:
 Hi Wei!

  Can you use libhal and libhal-storage?
  http://maemo.org/api_refs/5.0/5.0-final/libhal/
  http://maemo.org/api_refs/5.0/5.0-final/libhal-storage/

 Thanks, Daniil.

 On Mon, Jun 7, 2010 at 10:01 AM, Wei Li ttlee1...@gmail.com wrote:
 But is there any doc for at least the object methods and signals under
 /com/nokia? Because HAL has its own DBus instances as well as docs. But I
 couldn't find the /com/nokia ones.

 On Mon, Jun 7, 2010 at 3:03 AM, Ian Stirling maemo-de...@mauve.plus.com
 wrote:

 Wei Li wrote:

 Hi all,

 I am doing a project of middleware on Maemo/N900. I need to find the
 methods and signals related to the hardware, for example, HAL (especially
 the objects under /com/nokia since it is somehow proprietary). However, I
 couldn't find a detailed documentation on that. And I also used tools such
 as mdbus2, but since it lacks documentation and so does DBus itself, I
 couldn't figure out how to do the introspection to find the information I
 want. Anyone knows how to find that? Thanks!

 As I understand it, many of these mrhods do not support introspection, and
 there is no documentation.

 For example - the dbus 'backend' of liblocation.
 It's possible I'm confused, and have simply missed the docs.


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK beta, N900 PR1.2 and qt-mobility-examples

2010-06-07 Thread Daniil Ivanov
Hi Lorenzo!

   Which SDK? As far I can tell it's not Nokia Qt SDK.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 11:54 AM, Lorenzo Bettini bett...@dsi.unifi.it wrote:
 On 05/26/2010 10:15 PM, Antonio Aloisio wrote:

 Hi guys,
 Calm down! Mobility packages for scratchbox are in Tools and the pkgs
 for the device are in Nokia Application repositories.
 Both are enabled by default, developers and users don't need to add them.

 qt-mobility-examples pkg is not available in the application repository
 because it's NOT for users.

 Currently developers who want to try mobility examples on their devices
 should add the Tool repository:

 but the documentation that comes with the sdk seems to imply that you need
 qt-mobility-examples package:

 
 Installing Qt Mobility APIs

 The Qt Mobility APIs for the N900 are located in the extras-devel repository
 which is not enabled by default. To add the repository open the application
 manager and choose Application catalogues - New. Enter the data displayed
 in the screenshot below (the complete web address is
 http://repository.maemo.org/extras-devel).

 Click Save, then install the qt-mobility-examples package found in the
 other category.
 

 which is kind of misleading...

 cheers
        Lore


 --
 Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
 HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
 BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: DBus Methods and Signals Introspection or Documentation

2010-06-07 Thread Daniil Ivanov
Hi Wei!

  CSD stands for cellular services daemon and name explains why API is closed.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 12:15 PM, Wei Li ttlee1...@gmail.com wrote:
 Thanks for all your help! As I mentioned, I am doing a middleware (for
 energy efficiency) project on N900, hence I need to get the device status
 information such as battery, WLan card, mce. I need to use DBus to
 communicate with other components in my work. So the refs on DBus methods
 and signals will be helpful. Some of such information (for example, the
 battery) can be queried from HAL which has a defined specification. But some
 are not. For example, under /com/nokia path, there are many objects like
 icd, wlancond and in Faheem's example, csd (don't even know what it is. I
 assumed circuit switch data?), which I couldn't find the docs for them. If
 anyone knows a general reference to all those objects, like what HAL
 specification does, it would be great.

 BTW, in dbus-send command, the --desti argument specifies the service,
 meaning the interface? I always get lost with bus name (connection name) and
 interface.

 Thanks for all the help!

 Cheers,
 Wei

 On Mon, Jun 7, 2010 at 11:35 AM, Faheem Pervez tripp...@gmail.com wrote:

 Hi,

 On Mon, Jun 7, 2010 at 12:15 AM, Wei Li ttlee1...@gmail.com wrote:
  I am doing a project of middleware on Maemo/N900. I need to find the
  methods
  and signals related to the hardware, for example, HAL (especially the
  objects under /com/nokia since it is somehow proprietary). However, I
  couldn't find a detailed documentation on that. And I also used tools
  such
  as mdbus2, but since it lacks documentation and so does DBus itself, I
  couldn't figure out how to do the introspection to find the information
  I
  want. Anyone knows how to find that? Thanks!
 

 You'll get more information if you specify *what* interface you're
 trying to figure out. The best way I found for me was looking, using
 strings, in a library that calls a D-Bus method, finding the name of
 that method call and working out its arguments by trial and error.

 Graham Cobb's
 https://garage.maemo.org/plugins/wiki/index.php?Toolsid=1106type=g
 may also be of help.

 Best regards,
 Faheem


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: DBus Methods and Signals Introspection or Documentation

2010-06-07 Thread Daniil Ivanov
Hi Wei!

On Mon, Jun 7, 2010 at 2:02 PM, Wei Li ttlee1...@gmail.com wrote:
 Hi Daniil,

 So you mean the API references are object (component) dependent hence there
 is no unified reference to all the services of /com/nokia objects?

Each component has it's own team responsible for it and it's pretty
natural that every team has it's own
documentation package.

 I've got to say it is a little bit inconvenient. A unified reference document 
 will be
 much helpful.

If we are speaking about internal DBus methods and signals, you are
not supposed to use it.
Otherwise you can install doc packages and use them with devhelp.

 So how about mce and icd? I found the dbus-names.h File
 Reference but no luck with icd in the same page.

icd2 and mce are documented in API documentation
http://maemo.org/development/sdks/maemo_5_api_documentation/

Thanks, Daniil.

 Thanks for the help!

 Cheers,
 Wei


 On Mon, Jun 7, 2010 at 12:20 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Wei!

  CSD stands for cellular services daemon and name explains why API is
 closed.

 Thanks, Daniil.

 On Mon, Jun 7, 2010 at 12:15 PM, Wei Li ttlee1...@gmail.com wrote:
  Thanks for all your help! As I mentioned, I am doing a middleware (for
  energy efficiency) project on N900, hence I need to get the device
  status
  information such as battery, WLan card, mce. I need to use DBus to
  communicate with other components in my work. So the refs on DBus
  methods
  and signals will be helpful. Some of such information (for example, the
  battery) can be queried from HAL which has a defined specification. But
  some
  are not. For example, under /com/nokia path, there are many objects like
  icd, wlancond and in Faheem's example, csd (don't even know what it is.
  I
  assumed circuit switch data?), which I couldn't find the docs for them.
  If
  anyone knows a general reference to all those objects, like what HAL
  specification does, it would be great.
 
  BTW, in dbus-send command, the --desti argument specifies the service,
  meaning the interface? I always get lost with bus name (connection name)
  and
  interface.
 
  Thanks for all the help!
 
  Cheers,
  Wei
 
  On Mon, Jun 7, 2010 at 11:35 AM, Faheem Pervez tripp...@gmail.com
  wrote:
 
  Hi,
 
  On Mon, Jun 7, 2010 at 12:15 AM, Wei Li ttlee1...@gmail.com wrote:
   I am doing a project of middleware on Maemo/N900. I need to find the
   methods
   and signals related to the hardware, for example, HAL (especially the
   objects under /com/nokia since it is somehow proprietary). However, I
   couldn't find a detailed documentation on that. And I also used tools
   such
   as mdbus2, but since it lacks documentation and so does DBus itself,
   I
   couldn't figure out how to do the introspection to find the
   information
   I
   want. Anyone knows how to find that? Thanks!
  
 
  You'll get more information if you specify *what* interface you're
  trying to figure out. The best way I found for me was looking, using
  strings, in a library that calls a D-Bus method, finding the name of
  that method call and working out its arguments by trial and error.
 
  Graham Cobb's
  https://garage.maemo.org/plugins/wiki/index.php?Toolsid=1106type=g
  may also be of help.
 
  Best regards,
  Faheem
 
 
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK beta, N900 PR1.2 and qt-mobility-examples

2010-06-07 Thread Daniil Ivanov
Hi Paul!

   That's weird since you cannot install packages neither enable
repositories with Nokia Qt SDK.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 5:26 PM, Paul Hartman
paul.hartman+ma...@gmail.com wrote:
 On Mon, Jun 7, 2010 at 4:06 AM, Daniil Ivanov daniil.iva...@gmail.com wrote:

   Which SDK? As far I can tell it's not Nokia Qt SDK.

 It's from the maemo readme file which is included in the Nokia Qt SDK (beta)
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
Hi Lorenzo!

 Qt Simulator is simply Qt for Desktop and doesn't support Qt Mobility.
 Use Maemo or Symbian (on Windows) targets.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 6:05 PM, Lorenzo Bettini
lorenzo.bett...@gmail.com wrote:
 On 06/07/2010 05:01 PM, Lorenzo Bettini wrote:

 Hi

 we're trying to compile the player example from the mobility examples
 from git (http://qt.gitorious.org/qt-mobility).

 now the compilation fails with this error:

 /usr/bin/ld: cannot find -lQtMedia
 collect2: ld returned 1 exit status

 is it a known issue?

 Sorry, I forgot to mention that we're trying to compile it for the
 simulator, whose qt does not seem to provide libQtMedia but
 libQtMediaService... it looks like its qmake sets the wrong linking
 directives?

 cheers
    Lorenzo

 --
 Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
 HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
 BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
Hi Lorenzo!

  Absence of Qt Mobility in Qt Simulator means that you cannot run
applications using Qt Mobility in Qt Simulator.
  Since you on Linux, you can install scratchbox, Qt Mobility there
and use x86 and Xeprhyr for testing.
  But of course it's much better to test applications on real N900.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 6:28 PM, Lorenzo Bettini
lorenzo.bett...@gmail.com wrote:
 we're using Linux... does this mean that we can't target the simulator?

 On 06/07/2010 05:26 PM, Daniil Ivanov wrote:

 Hi Lorenzo!

  Qt Simulator is simply Qt for Desktop and doesn't support Qt Mobility.
  Use Maemo or Symbian (on Windows) targets.

 Thanks, Daniil.

 On Mon, Jun 7, 2010 at 6:05 PM, Lorenzo Bettini
 lorenzo.bett...@gmail.com  wrote:

 On 06/07/2010 05:01 PM, Lorenzo Bettini wrote:

 Hi

 we're trying to compile the player example from the mobility examples
 from git (http://qt.gitorious.org/qt-mobility).

 now the compilation fails with this error:

 /usr/bin/ld: cannot find -lQtMedia
 collect2: ld returned 1 exit status

 is it a known issue?

 Sorry, I forgot to mention that we're trying to compile it for the
 simulator, whose qt does not seem to provide libQtMedia but
 libQtMediaService... it looks like its qmake sets the wrong linking
 directives?

 cheers
    Lorenzo




 --
 Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
 HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
 BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
You can ask this question on FN DiBo
http://discussion.forum.nokia.com/forum/forumdisplay.php?f=221

~Daniil

On Mon, Jun 7, 2010 at 6:42 PM, Andrea Grandi a.gra...@gmail.com wrote:
 Hi,

 On 7 June 2010 17:41, Andrea Grandi a.gra...@gmail.com wrote:
 Hi,

 On 7 June 2010 17:26, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Hi Lorenzo!

  Qt Simulator is simply Qt for Desktop and doesn't support Qt Mobility.
  Use Maemo or Symbian (on Windows) targets.

 I cannot compile QtMobiity examples neither. I'm trying to compile the
 Player example, I'm using Linux and Nokia SDK beta, but I get these
 compilation errors: http://pastebin.com/mSccJane

 I'm trying to compile this for Maemo device target.

 --
 Andrea Grandi
 email: a.grandi [AT] gmail [DOT] com
 website: http://www.andreagrandi.it
 PGP Key: http://www.andreagrandi.it/pgp_key.asc

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
Hi Felipe!

On Mon, Jun 7, 2010 at 6:50 PM, Felipe Crochik fel...@crochik.com wrote:
 In fact, there is qt mobility on nokia qt sdk/simulator. Of course it is
 just a simulation but for some testing works. You just need to have all the
 maemo5 specific code between #ifdef - what is not a bad thing anyway.

Only partially. Qt Mobility multimedia is not there, for example.

 What we don't have is the release 1.0 of qt mobility libraries for the madde
 so you can't compile applications that target the n900 and use qt mobility
 1.0 on the qt sdk. It is a big pain - right now I have to write the code on
 the sdk, do some testing on the simulator with anything that is not maemo5
 specific and then compile on scratchbox, copy to the device and then run
 real tests.

I do all testing on real device, it gives more robust results and
actually saves time.

 Would be GREAT to be able to update he qt mobility libraries on MADDE then
 we could use just the qt SDK.

You can try to replace files manually from scratchbox to NokiaQtSDK,
however, I didn't try myself.

Thanks, Daniil.


 Felipe


 -Original Message-
 From: maemo-developers-boun...@maemo.org
 [mailto:maemo-developers-boun...@maemo.org] On Behalf Of Daniil Ivanov
 Sent: Monday, June 07, 2010 11:39 AM
 To: Lorenzo Bettini
 Cc: maemo-developers@maemo.org
 Subject: Re: mobility examples with nokia qt sdk

 Hi Lorenzo!

  Absence of Qt Mobility in Qt Simulator means that you cannot run
 applications using Qt Mobility in Qt Simulator.
  Since you on Linux, you can install scratchbox, Qt Mobility there
 and use x86 and Xeprhyr for testing.
  But of course it's much better to test applications on real N900.

 Thanks, Daniil.

 On Mon, Jun 7, 2010 at 6:28 PM, Lorenzo Bettini
 lorenzo.bett...@gmail.com wrote:
 we're using Linux... does this mean that we can't target the simulator?

 On 06/07/2010 05:26 PM, Daniil Ivanov wrote:

 Hi Lorenzo!

  Qt Simulator is simply Qt for Desktop and doesn't support Qt Mobility.
  Use Maemo or Symbian (on Windows) targets.

 Thanks, Daniil.

 On Mon, Jun 7, 2010 at 6:05 PM, Lorenzo Bettini
 lorenzo.bett...@gmail.com  wrote:

 On 06/07/2010 05:01 PM, Lorenzo Bettini wrote:

 Hi

 we're trying to compile the player example from the mobility examples
 from git (http://qt.gitorious.org/qt-mobility).

 now the compilation fails with this error:

 /usr/bin/ld: cannot find -lQtMedia
 collect2: ld returned 1 exit status

 is it a known issue?

 Sorry, I forgot to mention that we're trying to compile it for the
 simulator, whose qt does not seem to provide libQtMedia but
 libQtMediaService... it looks like its qmake sets the wrong linking
 directives?

 cheers
    Lorenzo




 --
 Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
 HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
 BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
Hi Andrea!

On Mon, Jun 7, 2010 at 7:03 PM, Andrea Grandi a.gra...@gmail.com wrote:
 Hi,

 On 7 June 2010 17:59, Daniil Ivanov daniil.iva...@gmail.com wrote:
 What we don't have is the release 1.0 of qt mobility libraries for the madde
 so you can't compile applications that target the n900 and use qt mobility
 1.0 on the qt sdk. It is a big pain - right now I have to write the code on
 the sdk, do some testing on the simulator with anything that is not maemo5
 specific and then compile on scratchbox, copy to the device and then run
 real tests.

 I do all testing on real device, it gives more robust results and
 actually saves time.

 luckly me and Lorenzo have a real device to do our tests, but we still
 cannot compile our application for N900 using Nokia SDK :(

 If I understand well we still need to:

 1) write code on Nokia SDK

This step is optional.

 2) compile code under Scratchbox
 3) copy compiled code to N900

These steps is actually one step, something like this:
dpkg-buildpackage -i -rfakeroot -D ; ssh 192.168.2.15 rm
/home/user/*_armel.deb ; scp ../*_armel.deb 192.168.2.15:/home/user/
; ssh 192.168.2.15 dpkg -i /home/user/*_armel.deb

 4) test code on N900

 we'll never be able to do on-device debugging step-by-step nor on
 simulator, and this is so bad :\

 --
 Andrea Grandi
 email: a.grandi [AT] gmail [DOT] com
 website: http://www.andreagrandi.it
 PGP Key: http://www.andreagrandi.it/pgp_key.asc

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mobility examples with nokia qt sdk

2010-06-07 Thread Daniil Ivanov
Hi Lorn!

On Mon, Jun 7, 2010 at 9:23 PM,  lorn.pot...@nokia.com wrote:
 On 8/06/10 2:03 AM, ext Andrea Grandi a.gra...@gmail.com wrote:

 Hi,

 On 7 June 2010 17:59, Daniil Ivanov daniil.iva...@gmail.com wrote:
 What we don't have is the release 1.0 of qt mobility libraries for the 
 madde
 so you can't compile applications that target the n900 and use qt mobility
 1.0 on the qt sdk. It is a big pain - right now I have to write the code on
 the sdk, do some testing on the simulator with anything that is not maemo5
 specific and then compile on scratchbox, copy to the device and then run
 real tests.

 I do all testing on real device, it gives more robust results and
 actually saves time.

 luckly me and Lorenzo have a real device to do our tests, but we still
 cannot compile our application for N900 using Nokia SDK :(

 If I understand well we still need to:

 1) write code on Nokia SDK
 2) compile code under Scratchbox

 # 2 step will be optional and not recommended for new applications.

  Quite many things are not possible with Nokia Qt SDK, why it's will
be not recommended?

Thanks, Daniil.

 3) copy compiled code to N900

 #3 step will be optional, as creator/nokia Qt sdk will help you do this
 easily.
 Set target, push ctrl-r

 4) test code on N900

 we'll never be able to do on-device debugging step-by-step nor on
 simulator, and this is so bad :\

 On device debugging will be supported, and so will debugging in the
 simulator.

 The Nokia Qt sdk is still beta quality. It will come with QtMobility and
 will be able to use it for developing apps that use the mobility API's. No
 need to compile mobility.



 --
 Lorn Potter
 Senior Software Engineer, Nokia, Qt Development Frameworks





___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: osso_initialize: how to make it work?

2010-06-07 Thread Daniil Ivanov
Hi Maemo!

  You need either gtk_init or hildon_init first.

Thanks, Daniil.

On Mon, Jun 7, 2010 at 10:41 PM,  maemo.me...@spamgourmet.com wrote:
 I've been scouring the documentation on maemo.org and getting pretty
 frustrated.  Almost none of it is up to date, and almost none of it is
 relevant to a beginning developer.  So:

 Here is my code:

 #include stdio.h
 #include libosso.h

 int main(int argc, char* argv[])
 {
    osso_context_t* osso;

    osso = osso_initialize(name.exon.mapcacher, 20100529, TRUE,  NULL);
    if (!osso)
    {
        printf(Failed to initialise osso\n);
        return 1;
    }

    return 0;
 }

 Here is the output:

 Failed to initialise osso

 Why?

 Also, what does osso mean?  Years of using Maemo, I've never figured that
 out.

 Is there any genuine getting started tutorial showing how to write a program
 that actually works in Maemo?  Is there a hello world application that's
 less than a hundred lines, with an explanation of what all those lines are
 for?

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-06 Thread Daniil Ivanov
Hi Sudheer!

  Make sure (with dpkg -l libqt4*) that you are using Qt = 4.6.2.

Thanks, Daniil.

On Sun, Jun 6, 2010 at 11:43 AM, Ram Kurvakat rkma...@gmx.com wrote:
 just a quick example that would work, see if it helps.

     imageLabel = new QLabel;

     QImage image(someimagefile);

     imageLabel-setPixmap(QPixmap::fromImage(image));

     _scrollForMapPage = new QScrollArea;

     _scrollForMapPage-setWidget(imageLabel);

     _mapWindow = new QMainWindow ( this );

     _mapWindow-setCentralWidget(_scrollForMapPage);

     _mapWindow-show();

 you dont need to set any property as Daniil set most widgets have kinetic
 scrolling by default like ListWidget/TableWidget/ScrollArea.
 cheers
 -krk969

 - Original Message -

 From: Sudheer K.

 Sent: 06/06/10 05:08 AM

 To: fel...@crochik.com, daniil.iva...@gmail.com

 Subject: RE: How to get kinetic scrolling working using Qt creator

 Anyone know of any applications that are using Qt Creator (.ui files) and
 were successful in implementing kinetic scrolling? Maybe I can look at the
 forms to see what I am doing wrong here.

 Thanks,
 Sudheer
 
 From: scifi@hotmail.com
 To: fel...@crochik.com; daniil.iva...@gmail.com
 CC: maemo-developers@maemo.org
 Subject: RE: How to get kinetic scrolling working using Qt creator
 Date: Sat, 5 Jun 2010 20:57:38 -0700


 Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it
 :)

 Another thing is I can display the scrollbar using verticalscrollbarpolicy
 but it doesn't actually scroll anything.
 
 From: fel...@crochik.com
 To: scifi@hotmail.com; daniil.iva...@gmail.com
 CC: maemo-developers@maemo.org
 Subject: RE: How to get kinetic scrolling working using Qt creator
 Date: Sat, 5 Jun 2010 23:52:45 -0400

 One silly question: are you trying it on the actual device? It won't work on
 the simulator or if you compile for the desktop.

 - Original message -

 Hi Daniil,

 I could not get the scrolling to work by using QScrollArea, even after
 removing the FingerScrollable property. Any suggestions on what I should
 change?

 I have tried setting WidgetResizable to true on QScrollArea, still
 scrolling does not work.

 If it matters, there are sizes I have set in my form.

  ConfigWindow (QMainWindow) - 800 x 480
  centralWidget (QWidget) - 800 x 457
  scrollArea (QScrollArea) - 800 x 550
  scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be
 modified).

 All the examples I have seen (even on Qt site) use custom code to create
 QWidget or QWindow. But I am using Qt creator to create the form and I
 couldn't find much help.


  Date: Sat, 5 Jun 2010 21:52:29 +0300
  Subject: Re: How to get kinetic scrolling working using Qt creator
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
 
  Hi Sudheer!
 
  There is no such property as FingerScrollable and kinetic srolling
  is enabled by default for QScrollArea
 
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details
 
  Thanks, Daniil.
 
  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com
  wrote:
   Hi All,
  
   I have created a QScrollArea to a QMainWindow in a form using Qt
   Creator. I have set the dynamic property FingerScrollable to true
   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea.
  
   This is the structure of my form objects in the format objectname
   (ClassName):
  
   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
   (QGroupBox).
  
   I have set the FingerScrollable property to true for all these
   objects. But still I am not able to get kinetic scrolling working
   for the form.  Am I missing something?
   
   Hotmail is redefining busy with tools for the New Busy. Get more
   from your inbox. See how.
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
  
  

 _
 The New Busy is not the too busy. Combine all your e-mail accounts with
 Hotmail.

 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



 
 Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
 Learn more.
 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Daniil Ivanov
Hi Sudheer!

  There is no such property as FingerScrollable and kinetic srolling
is enabled by default for QScrollArea
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details

Thanks, Daniil.

On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com wrote:
 Hi All,

 I have created a QScrollArea to a QMainWindow in a form using Qt Creator. I
 have set the dynamic property FingerScrollable to true (bool) for
 QMainWindow, QScrollArea and the contents of QScrollArea.

 This is the structure of my form objects in the format objectname
 (ClassName):

 ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
 (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
 (QGroupBox).

 I have set the FingerScrollable property to true for all these objects.
 But still I am not able to get kinetic scrolling working for the form.  Am I
 missing something?
 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Q_WS_MAEMO_5 directive

2010-06-02 Thread Daniil Ivanov
Hi Ram!

  Yes, it's still Q_WS_MAEMO_5.

Thanks, Daniil.

On Wed, Jun 2, 2010 at 10:53 AM, Ram Kurvakat rkma...@gmx.com wrote:
 Hi,

 what preprocessor directives need to be used for Maemo5 specific QT code ?

 is it still Q_WS_MAEMO_5 or has it changed in PR1.2 QT4.6 release ?

 I remember in QT4.5 it was Q_WS_HILDON.

 Thanks.

 -
 krk969

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Checking whether there is an existing Internet Connection

2010-06-02 Thread Daniil Ivanov
Hi Saurabh!

  In principle there is nothing to add to Daniel's reply, but just in
case there is a sample application using libconic API
  
http://wiki.forum.nokia.com/index.php/How_to_initiate_Internet_connection_from_Qt_appplication_in_Maemo_5

Thanks, Daniil.

On Wed, Jun 2, 2010 at 3:15 PM, daniel wilms daniel.wi...@nokia.com wrote:
 ext saurabh aggarwal wrote:

 I am trying to find out if there is currently an existing Internet
 Connection on N900. How do I do that?


 If you are using Qt check the Bearer Management of the QtMobility API [1],
 otherwise have a look at the libconic API [2] and for further reading at the
 Maemo Developer Guide [3].


 [1] http://doc.qt.nokia.com/qtmobility-1.0/bearer-management.html
 [2] http://maemo.org/api_refs/5.0/5.0-final/libconic/
 [3]
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components


 Daniel
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Displaying thumbnails in listbox gives garbage value

2010-06-02 Thread Daniil Ivanov
Hi Pallavi!

   You are supposed to use something like this in order to create a model

GtkTreeIteriter;
GtkListStore *model = gtk_list_store_new (1, GDK_TYPE_PIXBUF);
for (i = 0; i  100; i++)  {
GdkPixbuf *pixbuf =  gdk_pixbuf_new (GDK_COLORSPACE_RGB,
 FALSE, 8, 100, 100);
gtk_list_store_append (model, iter);
gtk_list_store_set (model, iter, 0, pixbuf, -1);
}

Thanks, Daniil.

On Wed, Jun 2, 2010 at 3:43 PM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
  Hi Andre,
 I am not able to view ur recent mail content. Can u pls reply once again.
 Thanks.


  Please note that when i try to display the same image in
  window the image is seen.
  But when i add the image to listbox , on screen I can see
  garbage value in place of each image.
  Code is as follows:

  void add_to_list(GtkWidget *list, GtkImage *image) {
  GtkListStore *store;
  GtkTreeIter iter;

  store = GTK_LIST_STORE(gtk_tree_view_get_model
 (GTK_TREE_VIEW(list)));

  gtk_list_store_append(store, iter);
  gtk_list_store_set(store, iter, LIST_ITEM, image, -1);
  }










 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Display list of user-running and system-running applications

2010-06-01 Thread Daniil Ivanov
Hi Pallavi!

  The answer to your question:
  http://lists.maemo.org/pipermail/maemo-developers/2010-May/026204.html

Thanks, Daniil.

On Tue, Jun 1, 2010 at 8:41 AM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
 Hello,
 There are a few applications running on Scratchbox / target device at all 
 time. eg: clock, calendar etc
 And there are few user applications running on system. I want to display the 
 list of these user-running and system-running applications.
 I have tried using proc command but it gives list of running processes in the 
 system.
 I want to get list of running application names from the system.
 I have searched for API for the same but with no luck.
 Development language : Maemo C using GTK

 Please tell me how can i achieve the same.

 Thanks.





 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT4.6 with PR1.2 has introduced issues

2010-06-01 Thread Daniil Ivanov
Hi Ram!

  Could you please post this questions to FN DiBo?
  BTW, why do create dialog dynamically and never free it?

Thanks, Daniil.

On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote:
 Daniil, Robin or anyone

 did you get a chance to look at this one please ?

 thanks for your time,

 cheers

 krk969

 - Original Message -

 From: Ram Kurvakat

 Sent: 05/29/10 10:32 AM

 To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov

 Subject: Re: QT4.6 with PR1.2 has introduced issues

 Here is the example requested.

 Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6 in
 PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in
 /opt/qt4-maemo5/lib

 ~$:  ldd TEMP2

 

 libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000)

 libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)

 

 and this is the result

 http://bit.ly/bH2ApK

 Then

 Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2 and run
 on the device with QT4.6 libs from PR1.2 installed in /usr/lib

 ~$:  ldd TEMP2

 

 libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000)

 libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000)

 

 and you will see this

 http://bit.ly/bIpRi0

 I think some default alignments may have been changed in the styles.

 Thanks again for taking a look.

 #include QtGui

 #include QApplication

 int main(int argc, char* argv[])

 {

     QApplication app(argc, argv);

     QDialog *dialog = new QDialog;

     QScrollArea *scroll = new QScrollArea;

     QWidget*    widget = new QWidget(scroll);

     // Currency code

     QLineEdit *currency = new QLineEdit(dialog);

     // Date format

     QStringList dateformatlist;

     dateformatlist  dd-MM-  MM-dd-  dd-MMM- 
 MMM-dd-;

     QComboBox *dateformat = new QComboBox;

     // Graph Period

     QStringList periodlist;

     periodlist  current day  current month  current week 
 current year;

     QComboBox *graphperiod = new QComboBox;

     dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ;
 border-radius: 15px; });

     QFormLayout *layout = new QFormLayout;

     layout-addRow(currency code : , currency);

     layout-addRow(display date format : , dateformat);

     layout-addRow(default reports period: , graphperiod);

     widget-setLayout(layout);

     QHBoxLayout *mainlayout = new QHBoxLayout;

     scroll-setWidget(widget);

     mainlayout-addWidget(scroll, 0, Qt::AlignVCenter);

     dialog-setLayout(mainlayout);
     dialog-show();
     return app.exec();
 }

 - Original Message -

 From: Robin Burchell

 Sent: 05/28/10 10:36 AM

 To: Daniil Ivanov

 Subject: Re: QT4.6 with PR1.2 has introduced issues

 On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:  Hi Ram!    Screenshots do not say anything.   Without seeing the
 code it's not possible to say if it's because of   problems with the way
 how you constructed layouts of the widgets   or with Qt styles.  Seconding
 what Daniil says - to try pinpoint your issue (and look for workarounds or
 fixes), please produce a minimal testcase.  That is, a *minimal* example (as
 little code as possible, please! can't emphasise how important this is)
 which demonstrates the incorrect behaviour you are talking about. :)  
 Thanks, Daniil.  Best,  Robin Burchell mob: +447702671419 msn:
 m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh
 lac: http://identi.ca/w00t








___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT4.6 with PR1.2 has introduced issues

2010-06-01 Thread Daniil Ivanov
Hi Ram!

  It looks like an actual bug with calculation background rectangle.

Thanks, Daniil.

On Tue, Jun 1, 2010 at 11:13 AM, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Hi Ram!

  Could you please post this questions to FN DiBo?
  BTW, why do create dialog dynamically and never free it?

 Thanks, Daniil.

 On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote:
 Daniil, Robin or anyone

 did you get a chance to look at this one please ?

 thanks for your time,

 cheers

 krk969

 - Original Message -

 From: Ram Kurvakat

 Sent: 05/29/10 10:32 AM

 To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov

 Subject: Re: QT4.6 with PR1.2 has introduced issues

 Here is the example requested.

 Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6 in
 PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in
 /opt/qt4-maemo5/lib

 ~$:  ldd TEMP2

 

 libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000)

 libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)

 

 and this is the result

 http://bit.ly/bH2ApK

 Then

 Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2 and run
 on the device with QT4.6 libs from PR1.2 installed in /usr/lib

 ~$:  ldd TEMP2

 

 libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000)

 libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000)

 

 and you will see this

 http://bit.ly/bIpRi0

 I think some default alignments may have been changed in the styles.

 Thanks again for taking a look.

 #include QtGui

 #include QApplication

 int main(int argc, char* argv[])

 {

     QApplication app(argc, argv);

     QDialog *dialog = new QDialog;

     QScrollArea *scroll = new QScrollArea;

     QWidget*    widget = new QWidget(scroll);

     // Currency code

     QLineEdit *currency = new QLineEdit(dialog);

     // Date format

     QStringList dateformatlist;

     dateformatlist  dd-MM-  MM-dd-  dd-MMM- 
 MMM-dd-;

     QComboBox *dateformat = new QComboBox;

     // Graph Period

     QStringList periodlist;

     periodlist  current day  current month  current week 
 current year;

     QComboBox *graphperiod = new QComboBox;

     dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ;
 border-radius: 15px; });

     QFormLayout *layout = new QFormLayout;

     layout-addRow(currency code : , currency);

     layout-addRow(display date format : , dateformat);

     layout-addRow(default reports period: , graphperiod);

     widget-setLayout(layout);

     QHBoxLayout *mainlayout = new QHBoxLayout;

     scroll-setWidget(widget);

     mainlayout-addWidget(scroll, 0, Qt::AlignVCenter);

     dialog-setLayout(mainlayout);
     dialog-show();
     return app.exec();
 }

 - Original Message -

 From: Robin Burchell

 Sent: 05/28/10 10:36 AM

 To: Daniil Ivanov

 Subject: Re: QT4.6 with PR1.2 has introduced issues

 On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:  Hi Ram!    Screenshots do not say anything.   Without seeing the
 code it's not possible to say if it's because of   problems with the way
 how you constructed layouts of the widgets   or with Qt styles.  Seconding
 what Daniil says - to try pinpoint your issue (and look for workarounds or
 fixes), please produce a minimal testcase.  That is, a *minimal* example (as
 little code as possible, please! can't emphasise how important this is)
 which demonstrates the incorrect behaviour you are talking about. :)  
 Thanks, Daniil.  Best,  Robin Burchell mob: +447702671419 msn:
 m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh
 lac: http://identi.ca/w00t









___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT4.6 with PR1.2 has introduced issues

2010-06-01 Thread Daniil Ivanov
On Tue, Jun 1, 2010 at 12:00 PM, Ram Kurvakat rkma...@gmx.com wrote:

 --
 Sent from my Nokia N900

 - Original message -
 Hi Ram!

    Could you please post this questions to FN DiBo?
 A
 Hi Daniil, yes of course i can.
 I was asked for examples here so i replied.
 FN DiBo = forum nokia discussion board ?

  Yes.

    BTW, why do create dialog dynamically and never free it?

 This is an example only to show the issue.

  This is basically a bad habit.

Thanks, Daniil.

 Thanks, Daniil.

 On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote:
  Daniil, Robin or anyone
 
  did you get a chance to look at this one please ?
 
  thanks for your time,
 
  cheers
 
  krk969
 
  - Original Message -
 
  From: Ram Kurvakat
 
  Sent: 05/29/10 10:32 AM
 
  To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov
 
  Subject: Re: QT4.6 with PR1.2 has introduced issues
 
  Here is the example requested.
 
  Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6
  in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in
  /opt/qt4-maemo5/lib
 
  ~$:  ldd TEMP2
 
  
 
  libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000)
 
  libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)
 
  
 
  and this is the result
 
  http://bit.ly/bH2ApK
 
  Then
 
  Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2
  and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib
 
  ~$:  ldd TEMP2
 
  
 
  libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000)
 
  libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000)
 
  
 
  and you will see this
 
  http://bit.ly/bIpRi0
 
  I think some default alignments may have been changed in the styles.
 
  Thanks again for taking a look.
 
  #include QtGui
 
  #include QApplication
 
  int main(int argc, char* argv[])
 
  {
 
      QApplication app(argc, argv);
 
      QDialog *dialog = new QDialog;
 
      QScrollArea *scroll = new QScrollArea;
 
      QWidget*    widget = new QWidget(scroll);
 
      // Currency code
 
      QLineEdit *currency = new QLineEdit(dialog);
 
      // Date format
 
      QStringList dateformatlist;
 
      dateformatlist  dd-MM-  MM-dd-  dd-MMM- 
  MMM-dd-;
 
      QComboBox *dateformat = new QComboBox;
 
      // Graph Period
 
      QStringList periodlist;
 
      periodlist  current day  current month  current week 
  current year;
 
      QComboBox *graphperiod = new QComboBox;
 
      dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ;
  border-radius: 15px; });
 
      QFormLayout *layout = new QFormLayout;
 
      layout-addRow(currency code : , currency);
 
      layout-addRow(display date format : , dateformat);
 
      layout-addRow(default reports period: , graphperiod);
 
      widget-setLayout(layout);
 
      QHBoxLayout *mainlayout = new QHBoxLayout;
 
      scroll-setWidget(widget);
 
      mainlayout-addWidget(scroll, 0, Qt::AlignVCenter);
 
      dialog-setLayout(mainlayout);
      dialog-show();
      return app.exec();
  }
 
  - Original Message -
 
  From: Robin Burchell
 
  Sent: 05/28/10 10:36 AM
 
  To: Daniil Ivanov
 
  Subject: Re: QT4.6 with PR1.2 has introduced issues
 
  On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov
  daniil.iva...@gmail.com wrote:  Hi Ram!    Screenshots do not say
  anything.   Without seeing the code it's not possible to say if it's
  because of   problems with the way how you constructed layouts of the
  widgets   or with Qt styles.  Seconding what Daniil says - to try
  pinpoint your issue (and look for workarounds or fixes), please
  produce a minimal testcase.  That is, a *minimal* example (as little
  code as possible, please! can't emphasise how important this is) which
  demonstrates the incorrect behaviour you are talking about. :)  
  Thanks, Daniil.  Best,  Robin Burchell mob: +447702671419 msn:
  m...@viroteck.net irc: w00t @ irc.freenode.net twr:
  http://twitter.com/w00teh lac: http://identi.ca/w00t
 
 
 
 
 
 
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT4.6 with PR1.2 has introduced issues

2010-06-01 Thread Daniil Ivanov
On Tue, Jun 1, 2010 at 1:16 PM, Ram Kurvakat rkma...@gmx.com wrote:

 - Original Message -

 From: Daniil Ivanov

 Sent: 06/01/10 10:44 AM

 To: Ram Kurvakat

 Subject: Re: QT4.6 with PR1.2 has introduced issues

 On Tue, Jun 1, 2010 at 12:00 PM, Ram Kurvakat rkma...@gmx.com wrote:  
 --  Sent from my Nokia N900   - Original message -  Hi Ram! 
    Could you please post this questions to FN DiBo?  A  Hi Daniil, yes
 of course i can.  I was asked for examples here so i replied.  FN DiBo =
 forum nokia discussion board ?Yes.

 FN DiBo post as requested ==
 http://discussion.forum.nokia.com/forum/showthread.php?p=742765

 Also took the liberty to raise a bug :)

 http://bugreports.qt.nokia.com/browse/QTBUG-11135

      BTW, why do create dialog dynamically and never free it?   This is
 an example only to show the issue.This is basically a bad habit.

 Of course Im aware Daniil :-) thanks anyways ,

 but now since you state that where do you expect to see the delete of the
 dialog in this main function ;-)

  In proper place, of course:

QDialog *dialog = new QDialog;
dialog-show();

int ret = app.exec();

delete dialog;
return ret;

   But in fact it's much easier to allocate dialog statically.

Thanks, Daniil.


  Thanks, Daniil.   Thanks, Daniil.   On Tue, Jun 1, 2010 at 10:59 AM,
 Ram Kurvakat rkma...@gmx.com wrote:   Daniil, Robin or anyone
 did you get a chance to look at this one please ? thanks for your
 time, cheers krk969 - Original Message
 - From: Ram Kurvakat Sent: 05/29/10 10:32 AM   
 To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov
 Subject: Re: QT4.6 with PR1.2 has introduced issues Here is the
 example requested. Compile the example with qmake from
 /opt/qt4-maemo5/bin which is QT4.6   in PR1.1 and run on the device with
 QT4.6 libs from PR1.1 installed in   /opt/qt4-maemo5/lib ~$:
  ldd TEMP2  libQtGui.so.4 =
 /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000) libQtCore.so.4 =
 /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)  and
 this is the result http://bit.ly/bH2ApK Then
 Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2  
 and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib  
  ~$:  ldd TEMP2  libQtGui.so.4 =
 /usr/lib/libQtGui.so.4 (0x40139000) libQtCore.so.4 =
 /usr/lib/libQtCore.so.4 (0x40bf4000)  and you will
 see this http://bit.ly/bIpRi0 I think some default
 alignments may have been changed in the styles. Thanks again for
 taking a look. #include QtGui #include QApplication
int main(int argc, char* argv[]) {
  QApplication app(argc, argv);     QDialog *dialog = new QDialog;
    QScrollArea *scroll = new QScrollArea;     QWidget*
    widget = new QWidget(scroll);     // Currency code
  QLineEdit *currency = new QLineEdit(dialog);     // Date format
    QStringList dateformatlist;     dateformatlist 
 dd-MM-  MM-dd-  dd-MMM-MMM-dd-;   
     QComboBox *dateformat = new QComboBox;     // Graph Period
    QStringList periodlist;     periodlist  current
 day  current month  current weekcurrent year;
     QComboBox *graphperiod = new QComboBox;
  dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ;  
 border-radius: 15px; });     QFormLayout *layout = new
 QFormLayout;     layout-addRow(currency code : , currency); 
       layout-addRow(display date format : , dateformat);
     layout-addRow(default reports period: , graphperiod);
  widget-setLayout(layout);     QHBoxLayout *mainlayout = new
 QHBoxLayout;     scroll-setWidget(widget);
  mainlayout-addWidget(scroll, 0, Qt::AlignVCenter);
  dialog-setLayout(mainlayout);       dialog-show();       return
 app.exec();   } - Original Message - From:
 Robin Burchell Sent: 05/28/10 10:36 AM To: Daniil Ivanov
Subject: Re: QT4.6 with PR1.2 has introduced issues On
 Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov   daniil.iva...@gmail.com
 wrote:  Hi Ram!    Screenshots do not say   anything.   Without
 seeing the code it's not possible to say if it's   because of   problems
 with the way how you constructed layouts of the   widgets   or with Qt
 styles.  Seconding what Daniil says - to try   pinpoint your issue (and
 look for workarounds or fixes), please   produce a minimal testcase.
 That is, a *minimal* example (as little   code as possible, please! can't
 emphasise how important this is) which   demonstrates the incorrect
 behaviour you are talking about. :) Thanks, Daniil.  Best,  Robin
 Burchell mob: +447702671419 msn:   m...@viroteck.net irc: w00t @
 irc.freenode.net twr:   http://twitter.com/w00teh lac:
 http://identi.ca/w00t  




___
maemo-developers mailing list
maemo-developers@maemo.org
https

Re: Quality assurance of stable software: my battery drained in few hours

2010-05-30 Thread Daniil Ivanov
Hi Silvan!

  In these terms GPS and WiFi are also maligant. How kernel or
anything else could
  know what is reasonable power consumption for a process?

Thanks, Daniil.

On Sat, May 29, 2010 at 10:49 PM, Sivan Greenberg si...@omniqueue.com wrote:
 Actually, I would think the kernel should already do something like that...

 On Sat, May 29, 2010 at 10:48 PM, Sivan Greenberg si...@omniqueue.com wrote:
 Doesn't the userland carry some sort of process monitoring, killing
 malignant processes ? If not, we should develop something like this
 for MeeGo.

 Sivan

 On Sat, May 29, 2010 at 10:44 PM, Aniello Del Sorbo ani...@gmail.com wrote:
 On 29 May 2010 10:03, Andrea Grandi a.gra...@gmail.com wrote:

 Hi,

 On 29 May 2010 19:02, Ian v...@riseup.net wrote:
  Hi
 
  I went to sleep at 3:00, I wake up few minutes ago with the N900
  powered off. There was not any active connection when I went to sleep,
  so could anyone please explain me WHO drained my whole battery?!
 
  Bluetooth? I'd check that

 I never use it


 Is this a freshly flashed N900?
 Or did you restore from a backup?
 I had mine died yesterday in half a day because a process (I think
 intellisync or something like that) was stuck somehow somewhere.
 I have mine from a restored backup. Sure I wanted it to be stable after a
 restore, but sometimes old config files/settings/whatever cause unexpected
 (quite impossible to catch in testing) behaviors.
 --
 anidel

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Quality assurance of stable software: my battery drained in few hours

2010-05-30 Thread Daniil Ivanov
Hi Sivian!

  How do you define the stuck? It's Ok for the process to consume 90%
of CPU time for short
  period of time.

Thanks, Daniil.

On Sun, May 30, 2010 at 11:20 AM, Sivan Greenberg si...@omniqueue.com wrote:
 Hey Daniil,

  If a process is stuck in and awakened , and consumes more then a
 $PERDEFINED % of cpu, and it's output and input streams are idle, then
 I'd say we need to seriously consider killing it.

 Sivan

 On Sun, May 30, 2010 at 11:07 AM, Daniil Ivanov daniil.iva...@gmail.com 
 wrote:
 Hi Silvan!

  In these terms GPS and WiFi are also maligant. How kernel or
 anything else could
  know what is reasonable power consumption for a process?

 Thanks, Daniil.

 On Sat, May 29, 2010 at 10:49 PM, Sivan Greenberg si...@omniqueue.com 
 wrote:
 Actually, I would think the kernel should already do something like that...

 On Sat, May 29, 2010 at 10:48 PM, Sivan Greenberg si...@omniqueue.com 
 wrote:
 Doesn't the userland carry some sort of process monitoring, killing
 malignant processes ? If not, we should develop something like this
 for MeeGo.

 Sivan

 On Sat, May 29, 2010 at 10:44 PM, Aniello Del Sorbo ani...@gmail.com 
 wrote:
 On 29 May 2010 10:03, Andrea Grandi a.gra...@gmail.com wrote:

 Hi,

 On 29 May 2010 19:02, Ian v...@riseup.net wrote:
  Hi
 
  I went to sleep at 3:00, I wake up few minutes ago with the N900
  powered off. There was not any active connection when I went to sleep,
  so could anyone please explain me WHO drained my whole battery?!
 
  Bluetooth? I'd check that

 I never use it


 Is this a freshly flashed N900?
 Or did you restore from a backup?
 I had mine died yesterday in half a day because a process (I think
 intellisync or something like that) was stuck somehow somewhere.
 I have mine from a restored backup. Sure I wanted it to be stable after a
 restore, but sometimes old config files/settings/whatever cause unexpected
 (quite impossible to catch in testing) behaviors.
 --
 anidel

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Quality assurance of stable software: my battery drained in few hours

2010-05-29 Thread Daniil Ivanov
Hi Andrea!

  What is your settings for internet connections (Settings-Internet
Connection).
  It's good idea to change it to Always ask.

Thanks, Daniil

On Sat, May 29, 2010 at 1:01 PM, Andrea Grandi a.gra...@gmail.com wrote:
 Hi all,

 this is my situation:

 - N900 with PR 1.2 flashed
 - full charged battery
 - extras-devel and extras-testing disabled
 - 2 installed and running widget: facebook (pre-installed by default)
 and Twitter (available on OVI store)

 I expect this software to be STABLE.

 I went to sleep at 3:00, I wake up few minutes ago with the N900
 powered off. There was not any active connection when I went to sleep,
 so could anyone please explain me WHO drained my whole battery?!

 Thanks,

 --
 Andrea Grandi
 email: a.grandi [AT] gmail [DOT] com
 website: http://www.andreagrandi.it
 PGP Key: http://www.andreagrandi.it/pgp_key.asc
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Quality assurance of stable software: my battery drained in few hours

2010-05-29 Thread Daniil Ivanov
Hi Andrea!

On Sat, May 29, 2010 at 1:18 PM, Andrea Grandi a.gra...@gmail.com wrote:
 Hi,

 On 29 May 2010 12:11, Ville M. Vainio vivai...@gmail.com wrote:
 On Sat, May 29, 2010 at 1:01 PM, Andrea Grandi a.gra...@gmail.com wrote:

 I went to sleep at 3:00, I wake up few minutes ago with the N900
 powered off. There was not any active connection when I went to sleep,
 so could anyone please explain me WHO drained my whole battery?!

 Can you ensure that your phone doesn't create connections automatically?

 yes I'm sure. I never let it connect automatically. And just for you
 to notice: once I really forgot to disconnect before going to sleep:
 when I wake up I still had more than half of the battery, but this is
 of course not the case.

 So my suspects are:

 - the Twitter widget available in OVI (if it's this, congratulation to
 people who publish software in OVI store without let testers to test
 it in extras-devel / extras-testing)

The key word in phrase Ovi Store is a Store. Nobody will upload commercial
applications to extras-devel or extras-testing. This is the way Ovi Store works.

You can save battery info log with the commands:
lshal | grep battery.reporting.current  battery.log
date  battery.log
try to use facebook widget separately, twitter widget separately
and maybe both of widgets disabled and see how battery life is affected.

Thanks, Daniil

 - the facebook widget (very strange since it's available from the
 beginning, someone should have noticed this bug)
 - something really weird introduced with PR 1.2 (no comment).

 Regards,

 --
 Andrea Grandi
 email: a.grandi [AT] gmail [DOT] com
 website: http://www.andreagrandi.it
 PGP Key: http://www.andreagrandi.it/pgp_key.asc
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT4.6 with PR1.2 has introduced issues

2010-05-28 Thread Daniil Ivanov
Hi Ram!

  Screenshots do not say anything.
  Without seeing the code it's not possible to say if it's because of
  problems with the way how you constructed layouts of the widgets
  or with Qt styles.

Thanks, Daniil.

On Thu, May 27, 2010 at 11:26 PM, Ram Kurvakat rkma...@gmx.com wrote:
 Hello,

 I have seen a few issues with the QT 4.6 version released with PR1.2.

 I've been using QT4.6 since PR1.1 and there seems to be these annoying
 changes since.

 I've provided some links to marked images to explain the issue so its easier
 to comprehend.

 Issue1 : http://bit.ly/cYPtRW

 Issue2 : http://bit.ly/cPjtAG

 Issue3 : http://bit.ly/a5E4sk

 Could somebody please throw some light on these issues since it appears in
 all development Ive done using QT4.6 from PR1.1.

 These changes were totally unexpected and not only that, it seems anything
 than an improvement, maybe even bugs.

 Please do not answer this by saying QT4.6 on PR1.1 was a beta deveopment
 version, in that case it seems then from the examples above the beta version
 was more proper.

 Thanks a lot for any help with this.

 cheers

 --

 krk969

 (Ram)



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QDBusError UnknownMethod for com.nokia.csd.Call service

2010-05-28 Thread Daniil Ivanov
Hi Roman!

  Note that you seems to try to call it on system bus insteado of session bus.

Thanks, Daniil.

On Fri, May 28, 2010 at 3:07 PM, Roman Morawek li...@morawek.at wrote:
 Hello,

 I am using the Nokia Qt Beta SDK and try to initiate a voice call on
 Maemo/N900. Since there is no Qt API for this available, I try this via
 the DBus.

 Actually I want to mimic the functionality of the following working
 shell command:

 dbus-send --system --type=method_call --print-reply
 --dest=com.nokia.csd.Call /com/nokia/csd/call
 com.nokia.csd.Call.CreateWith string:+43123456789 uint32:0


 This is what I try:

 // DBUS call interface
 if (!QDBusConnection::sessionBus().isConnected())
    return false;

 // initiate call
 QDBusConnection connSystemBus = QDBusConnection::systemBus();
 QDBusInterface dbusPhone( com.nokia.csd.Call, /com/nokia/csd/call,
 QString(), connSystemBus );
 qDebug()  connected to bus with result   dbusPhone.isValid();

 QDBusMessage reply = dbusPhone.call( CreateWith, +43123456789,
 (uint)0 );
 qDebug()  call initiated with result   dbusPhone.lastError();


 As the output, I get the following error:

 connected to bus with result  true
 call initiated with result
 QDBusError(org.freedesktop.DBus.Error.UnknownMethod, Method
 CreateWith with signature su on interface (null) doesn't exist )


 What am I doing wrong?
 Thanks a lot for your support!

 Regards,
 Roman
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QDBusError UnknownMethod for com.nokia.csd.Call service

2010-05-28 Thread Daniil Ivanov
Hi Roman!

  Sorry, my fault. It should be something like this

QDBusConnection connSystemBus = QDBusConnection::systemBus();
QDBusInterface dbusPhone( com.nokia.csd.Call, /com/nokia/csd/call,
com.nokia.csd.Call, connSystemBus );
QDBusMessage reply = dbusPhone.call( CreateWith, +43123456789,(uint)0 );

Thanks, Daniil.

On Fri, May 28, 2010 at 3:14 PM, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Hi Roman!

  Note that you seems to try to call it on system bus insteado of session bus.

 Thanks, Daniil.

 On Fri, May 28, 2010 at 3:07 PM, Roman Morawek li...@morawek.at wrote:
 Hello,

 I am using the Nokia Qt Beta SDK and try to initiate a voice call on
 Maemo/N900. Since there is no Qt API for this available, I try this via
 the DBus.

 Actually I want to mimic the functionality of the following working
 shell command:

 dbus-send --system --type=method_call --print-reply
 --dest=com.nokia.csd.Call /com/nokia/csd/call
 com.nokia.csd.Call.CreateWith string:+43123456789 uint32:0


 This is what I try:

 // DBUS call interface
 if (!QDBusConnection::sessionBus().isConnected())
    return false;

 // initiate call
 QDBusConnection connSystemBus = QDBusConnection::systemBus();
 QDBusInterface dbusPhone( com.nokia.csd.Call, /com/nokia/csd/call,
 QString(), connSystemBus );
 qDebug()  connected to bus with result   dbusPhone.isValid();

 QDBusMessage reply = dbusPhone.call( CreateWith, +43123456789,
 (uint)0 );
 qDebug()  call initiated with result   dbusPhone.lastError();


 As the output, I get the following error:

 connected to bus with result  true
 call initiated with result
 QDBusError(org.freedesktop.DBus.Error.UnknownMethod, Method
 CreateWith with signature su on interface (null) doesn't exist )


 What am I doing wrong?
 Thanks a lot for your support!

 Regards,
 Roman
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Switching window after giving delay with g_usleep

2010-05-27 Thread Daniil Ivanov
Hi Pallavi!

  What you should do to achieve your goal:
  1. Connect callback to delete-event of the first window
  http://library.gnome.org/devel/gtk/2...t-delete-event
  2. In this callback add timeout callback with g_timeout_add
  http://library.gnome.org/devel/glib/...#g-timeout-add
  3. Do in this callback what you currently do in main_quit_handler
except of using g_usleep.

Thanks, Daniil

On Wed, May 26, 2010 at 3:28 PM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
 Hello,
 I am using g_usleep in my 1st window. And after specified time interval I 
 want to display 2nd window.

 My code is as follows:

 HildonWindow *window;

 static gboolean main_quit_handler(GtkWidget *image)
 {
            GtkWidget *win;
            GtkWidget *vbox;

            GtkWidget *label;

            /* Create the main window */
            win = hildon_stackable_window_new();
            gtk_window_set_title(GTK_WINDOW (win), Display image );

        /* Setting a label in the new window */
            label = gtk_label_new(Hello);
            gtk_container_add(GTK_CONTAINER (win), label);

           g_usleep(500);
               gtk_container_remove(GTK_CONTAINER (window), image);

           gtk_widget_show_all(win);
           gtk_container_add(GTK_CONTAINER (window), label);
           gtk_widget_show_all ( GTK_WIDGET ( window ) );
 }

 int main
 {
    
    GtkWidget *image;
    gboolean value;

    image = gtk_image_new_from_file(my_file_path);
    gtk_container_add(GTK_CONTAINER (window), image);
    gtk_widget_show_all ( GTK_WIDGET ( window ) );

   gtk_quit_add(0, main_quit_handler, image);

    gtk_main();

    return 0;
 }

 When i run the code I am able to see only 1st window. 2nd window isnt visible.

 Any help please?




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt Autorotation

2010-05-26 Thread Daniil Ivanov
Hi Felipe!

Two things. Autorotation was around since N900 sales release.
And this test app works for me fine in PR 1.2 without pressing anything.

#include QApplication
#include QMainWindow

int
main (int argc,
  char **argv)
{
QApplication app(argc, argv);
QMainWindow win;
win.setAttribute(Qt::WA_Maemo5AutoOrientation, true);
win.show();

return app.exec();
}

~Daniil.

On Wed, May 26, 2010 at 6:21 PM, Felipe Crochik fel...@crochik.com wrote:
 Now that PR1.2 is out autorotation works!!! Great but.
 Has anybody figured out how to control the autorotation on the application
 (without the Ctrl+shift+r)?

 The WA_Maemo5AutoOrientation only tells the device that you want this
 application to autorotate but the user still needs to press the shortcut
 (I have the worst time with my fat fingers) to activate/deactivate it. And
 worst of all you need to do the same every time you start the application.
 At least I would like to allow the user to save as a setting for later...

 Thanks,
 Felipe

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK beta, N900 PR1.2 and qt-mobility-examples

2010-05-26 Thread Daniil Ivanov
Hi Paul!

  Removing Qt Mobility from extras-devel was a wild stab as Qt
Mobility is not part of PR 1.2.
  However, you can find examples in git
  http://qt.gitorious.org/qt-mobility/qt-mobility/trees/master/examples

Thanks, Daniil.

On Wed, May 26, 2010 at 8:04 PM, Paul Hartman
paul.hartman+ma...@gmail.com wrote:
 Hi,

 Now that we've got PR1.2 for N900, I'm trying to follow the
 instructions for the Qt SDK beta release in the Maemo readme file
 included with it. It says to install qt-mobility-examples but it
 appears to have been removed from the repository yesterday.

 http://maemo.org/packages/view/qt-mobility-examples/

 Is that package no longer needed, or should I wait for its
 reappearance before trying to proceed?

 Thanks
 Paul
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK beta, N900 PR1.2 and qt-mobility-examples

2010-05-26 Thread Daniil Ivanov
Hi Attila!

 But why transition could not be smooth? Why not to wait with removal before
 package is really available in Fremantle repository?
 I see it as an act of disrespect towards the community.

Thanks, Daniil.

On Wed, May 26, 2010 at 8:37 PM, Attila Csipa ma...@csipa.in.rs wrote:
 On Wednesday 26 May 2010 19:04:49 Paul Hartman wrote:
 Now that we've got PR1.2 for N900, I'm trying to follow the
 instructions for the Qt SDK beta release in the Maemo readme file
 included with it. It says to install qt-mobility-examples but it
 appears to have been removed from the repository yesterday.

 http://maemo.org/packages/view/qt-mobility-examples/

 Is that package no longer needed, or should I wait for its
 reappearance before trying to proceed?

 There is a major package shuffle underway that touches on many Qt related 
 things
 (like QtMobility), see http://achipa.blogspot.com/2010/04/operation-qt-
 shuffle.html for details. Long story short, stable qtmobility packages for 
 Qt4.6
 will move to Nokia repositories, and extras-devel will host only the dev
 version of qtmobility for Qt4.7 (sporting the experimental moniker in the
 package name).

 Regards,
 Attila


 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Unable to play audio file in Scratchbox

2010-05-25 Thread Daniil Ivanov
Hi Pallavi!

 You probably already noticed that quite many things do not work in scratchbox.
 The same thing with mp3 codecs, they are not available in scratchbox.

Thanks, Daniil.

On Tue, May 25, 2010 at 9:25 AM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
 Hello,
  I want to play an audio file in Scratchbox (Fremantle-X86) . Below is the 
 code sample for the same. But this code doesnt work. When i checked the 
 return value it displays the message Not playing.
 Can anybody tell me whats going wrong in the code.

 Code:
        #include gst/gst.h
        int main( int argc, char* argv[] )
        {
                gst_init (argc,argv);

                GstElement *player;
                GMainLoop* loop;
                loop = g_main_loop_new (NULL, FALSE);

                player = gst_element_factory_make (playbin, player);
                g_assert (player != NULL);

                g_object_set (G_OBJECT (player), uri, 
 /home/pallavi/MyDocs/.sounds/clip2.mp3, NULL);

                 int ret1 = gst_element_set_state (player, GST_STATE_PLAYING);
                 if(ret1 == GST_STATE_CHANGE_FAILURE )
                                  g_print(\n Not Playing);
                 if(ret1 == GST_STATE_CHANGE_SUCCESS )
                                  g_print(\n Playing);
                 g_main_loop_run(loop);

                 return 0;
        }


 Thanks.




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GTK+ question with maemo 2.2

2010-05-23 Thread Daniil Ivanov
Hi Han!

  You will need Gtk 2.12 at least. Note that Gtk in Maemo is patched, thus,
  you must apply the same set of patches to newer version of Gtk to make it
  work with Maemo 2.2.

Thanks, Daniil.

On Sun, May 23, 2010 at 7:08 AM, Han keepsim...@gmail.com wrote:
 Hi,

 I am using Maemo 2.2 (Gregale) to develop a program on N770 (sorry I
 don't have resources to upgrade to N800/900 yet.) .

 So far so good until I start to use GtkScaleButton and
 GtkVolumeButton. It seems that maemo 2.2 came with GTK+ 2.6 which does
 not support GtkScaleButton and GtkVolumeButton.

 My question is: can I upgrade GTK+ to newer versions (2.10 and up) and
 still use maemo 2.2 (and scratchbox of course) to develop programs for
 N770? will that cause any issues?

 Thanks.
 Han
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GTK+ question with maemo 2.2

2010-05-23 Thread Daniil Ivanov
Hi Claudio!

  I think it could be placed to extras-devel repository, so
distribution is not that difficult,
  however, patching is.

Thanks, Daniil.

On Sun, May 23, 2010 at 2:54 PM, Claudio Saavedra csaave...@igalia.com wrote:
 On Sun, May 23, 2010 at 10:34:44AM +0300, Daniil Ivanov wrote:
 Hi Han!

   You will need Gtk 2.12 at least. Note that Gtk in Maemo is patched, thus,
   you must apply the same set of patches to newer version of Gtk to make it
   work with Maemo 2.2.

 Not only that, but if you plan to distribute your program you'll
 need to find a way to distribute this GTK+ version as well. I don't
 think this will end up being an easy task.

 Claudio
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GTK+ question with maemo 2.2

2010-05-23 Thread Daniil Ivanov
Hi Andre!

  Thank you for pointing out that Chinook is the latest available
repository for uploading,
  however, Gregale still exists.

Thanks, Daniil.

On Sun, May 23, 2010 at 3:38 PM, Andre Klapper aklap...@openismus.com wrote:
 Am Sonntag, den 23.05.2010, 15:27 +0300 schrieb Daniil Ivanov:
   I think it could be placed to extras-devel repository, so
 distribution is not that difficult,

 Extras-Devel for Maemo 2.2 (Gregale)? That's news to me.

 andre
 --
 Andre Klapper (maemo.org bugmaster)

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to distribute a console program with local files

2010-05-23 Thread Daniil Ivanov
Hi Cano!

  There is an alien tool, which allows to convert between rpm and deb,
  http://linux.die.net/man/1/alien
  so one can create RPM package and then convert it to Debian package
with alien.
  Possibly manual fixing of a resulting package will be needed.

Thanks, Daniil.

On Sun, May 23, 2010 at 8:47 PM, Ville M. Vainio vivai...@gmail.com wrote:
 On Sun, May 23, 2010 at 7:33 PM,  ac...@dsic.upv.es wrote:

 Is MeeGo 1 still working with .deb packages?

 To conveniently sidestep the question:

 - Harmattan still uses .deb
 - The Moblin-derived netbook stuff uses .rpm

 --
 Ville M. Vainio
 http://tinyurl.com/vainio

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK + Qt + scratchbox?

2010-05-21 Thread Daniil Ivanov
Hi Felipe!

On Fri, May 21, 2010 at 3:47 PM, Felipe Crochik fel...@crochik.com wrote:
 I have tried Qt creator on windows and linux. At this time I write the
 applications using Qt Creator, commit my changes to a SVN repository and
 then within scratchbox environment I get the changes from the repository,
 compile the code and try them on Xephyr/Scratchbox/x86. Assuming that it
 works, I then switch the targets on scratchbox to ARM, compile again and scp
 to the device so I can test on it. It is anything but simple or efficient.

You can skip Xephyr/Scratchbox/x86 phase completely.
 Skipping Qt Creator phase is an option too.

 I would like to know from the developers how their development environment
 looks like to create qt applications and specifically:



 The new Qt SDK should make things easier to develop applications for the
 n900 but:

 1. I couldn’t find much of a use for the simulator. The simulator can’t
 simulate the specific features of the n900. Is there a way to actually
 compile the code with the Q_WS_MAEMO_5 and test it on the simulator? Am I
 wrong to assume that the simulator is actually a completely different
 “device” that only simulates executing Qt code regardless of how the code
 will behave on real devices?

 Qt Simulator simulates Qt on desktop. Unfortunately.




 2. The debug/run on device would be great but again it depends on the
 release of PR 1.2. or am I missing something?

  You can install Qt libraries manuallly on your N900.
  Get it here
  http://repository.maemo.org/pool/fremantle/free/q/qt4-x11/

 All this being said by best case scenario would be to be able to use Qt
 Creator on linux to develop but compile directly using the scratchbox/X86
 target, be able to launch from Qt creator the application on Xephyr and if
 possible have a simple way to also compile on scratchbox/ARM from Qt
 creator. I assume most of this can be done by tweaking the “building steps”
 with some scripts but before I attempt this I would like to know if anybody
 has implemented this solution or has a better idea.


Using Nokia Qt SDK you can compile for ARM platform, install and run application
on connected N900 from the Qt Creator.
Steps are described here:
http://www.forum.nokia.com/info/sw.nokia.com/id/a075d8cc-dc4e-4926-8faa-9d926c20a3d7/Getting_Started_with_Nokia_Qt_SDK.html


 Felipe

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



Thanks, Daniil.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt SDK + Qt + scratchbox?

2010-05-21 Thread Daniil Ivanov
Hi Felipe!

On Fri, May 21, 2010 at 4:26 PM, Felipe Crochik fel...@crochik.com wrote:
 Hi Daniil,

 You can skip Xephyr/Scratchbox/x86 phase completely.
 Skipping Qt Creator phase is an option too.

 I actually find the Xephyr/Scratchbox/x86 phase helpful during the
 development. I like being able to just test the changes on a window on my
 desktop instead of having to get the device. Do you know if it is
 possible/easy to setup Qt SDK to compile using scratchbox/x86 and launch the
 application on Xephyr?

 If we are talking about Nokia Qt SDK, then AFAIK no.

  You can install Qt libraries manuallly on your N900.
  Get it here
  http://repository.maemo.org/pool/fremantle/free/q/qt4-x11/

 So far I have used the qt4-maemo5 for my applications so other people can
 install them on their devices less hardily

What do you mean? These packages are from official Fremantle repository,
while libqt4-maemo5-* are from extras-devel, which yet to be enabled.

 but I will try installing the
 debs manually so I can use the autodeploy - I will end up having 3 Qt
 versions on my device! :(

Remove apt-get remove libqt4-maemo5-core
and you will have only one Qt version.

Thanks, Daniil.


 Thanks,
 Felipe


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Finding path of file / folder present on emulator

2010-05-20 Thread Daniil Ivanov
Hi Pallavi!

  You can use g_get_user_special_dir(G_USER_DIRECTORY_PICTURES);
  
http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir
  
http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#GUserDirectory

Thanks, Daniil.

On Thu, May 20, 2010 at 10:03 AM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
 Hi,
 I am working on N900 emulator.
 When i use the following commands in my code
 getenv(HOME) or getenv(MYDOCSDIR) they give me the path present on 
 Scratchbox file-system.

 N900 emulator contains some folders like Images listed inside File 
 Manager folder. I want to find path of the Images folder. How can i get it?

 Thanks.




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Finding path of file / folder present on emulator

2010-05-20 Thread Daniil Ivanov
Hi Pallavi!

   It works on N900 you may file a bug about scratchbox here:
   https://bugs.maemo.org/
   const char *dir = g_strdup(g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS));
   if (!dir) {
  dir = g_strconcat (getenv(MYDOCSDIR), /.videos, NULL);
   }
   printf(%s\n, dir ? dir : NULL);
   g_free(dir);

Thanks, Daniil.

On Thu, May 20, 2010 at 11:23 AM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:

 Hi Daniil,
 I tried using suggested APIs

  G_USER_DIRECTORY_DOCUMENTS,
  G_USER_DIRECTORY_PICTURES,
  G_USER_DIRECTORY_VIDEOS

 const char *dir = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
 if (dir == NULL)
    printf(NULL);
 else
    printf(%s,dir);

 But every time it returns me NULL value. It means the logical id isnt found. 
 But these folders are present on N900 emulator

 Pls suggest if any thing else needs to be done?

 Thanks




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QT Packages, Repositories and PR1.2

2010-05-20 Thread Daniil Ivanov
Hi Felipe!

On Thu, May 20, 2010 at 4:26 PM, Felipe Crochik fel...@crochik.com wrote:
 I am trying to understand why we can’t just upload the qt 4.6 deb files used
 by scratchbox to “extras-development” so anybody can easily have access to
 applications developed using qt4.6

These are packages used by scratchbox.
http://repository.maemo.org/pool/fremantle/free/q/qt4-x11/

  I understand that maybe some of the new
 “standard” qt4.6 may not work until PR1.2 is out but I haven’t seen any
 actual reports of anything that doesn’t work or works worst than the current
 qt4-maemo5 version.



 Right now, as far as I can tell:

 -  If you use the “old” standard 4.5.3 packages you can’t use the
 new 4.6 features including the maemo5 lib.

 -  If you use the new “standard” 4.6 packages the users won’t be
 able to install on their devices because they won’t have the qt 4.6 until PR
 1.2 is out.

 -  If you use qt4-maemo5 packages your application will be blocked
 from moving to testing and we will have to submit new packages once PR1.2 is
 out.

Well, testing is blocked, that's true.

 Am I correct on this summary?



 I saw a thread on talk.maemo.org about adding the repository used by the qt
 sdk to get the new qt4.6 but it is very dangerous for most users.



 Can anybody help me find the answer to these questions?



 What happens if two people submit packages with the same name to the
 “extras-development”?
 What happens if a package with the same name exists on different
 repositories?
 any other reason (legal, technical, ..) why one of us can’t submit the deb
 files to extras-devel? Would/could we upload them as non-free to make
 easier?



 I assume that the package dependencies use the package name and version so
 if we preserve the qt packages names once PR1.2 is out we would not have any
 issues… in fact people would not even have to update them until a new
 version is out.



 Felipe

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Finding path of file / folder present on emulator

2010-05-17 Thread Daniil Ivanov
Hi Pallavi!

  And what is File Manager folder? If you are asking about user's home
directory,
 then you can get it with getenv(HOME) or getenv(MYDOCSDIR) for MyDocs
directory.

Thanks, Daniil.

On Mon, May 17, 2010 at 8:10 AM, Pallavi Kandhare 
pallavi.kandh...@yahoo.com wrote:


I write my appliccation using ESbox. Then build the application and run
 it on Xephyr. This we call as emulator.

 In the emulator I want to find the path of File Manager folder.
 Pls do tell me how can i do this.

 Thanks.



 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


  1   2   >