×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    It could be whatever. Including improper code generation by MADDE, which has happened before.

  2. #17
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Unhappy Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by divanov View Post
    It could be whatever. Including improper code generation by MADDE, which has happened before.
    Alright, I have got so many unnecessary troubles since I used MADDE. I shall try the native developping environment now.

    Thank you very much for your reminder.

  3. #18
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    Alright, I have got so many unnecessary troubles since I used MADDE. I shall try the native developping environment now.

    Thank you very much for your reminder.
    I don't want to say this time the problem is MADDE. I simply cannot know what is particular problem. In such circumstances it's normally good idea to try in native Linux environment or WMware to check, if you have the same result or different. It could be device SW problem as well. Are you using the latest software on the phone?

  4. #19
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How To Build A Camera Program On Maemo

    [QUOTE=divanov;707023It could be device SW problem as well. Are you using the latest software on the phone?[/QUOTE]
    Yes, I think so. the basic information:
    Code:
    Nokia N900
    Maemo 5
    Version:2.2009.51-1.205.1
    I am now trying to build the project in Ubuntu with Maemo5 SDK. I could run the camera.c on emulator. Now I want to ask how to build it on device? Could you please offer me the related links about it? It would be bettter if I could on-device debug immediately with scrachbox.

  5. #20
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    Yes, I think so. the basic information:
    Code:
    Nokia N900
    Maemo 5
    Version:2.2009.51-1.205.1
    The latest build is 02-8 as far you can see from here:
    http://tablets-dev.nokia.com/nokia_N900.php

    Quote Originally Posted by pta0007 View Post
    I am now trying to build the project in Ubuntu with Maemo5 SDK. I could run the camera.c on emulator. Now I want to ask how to build it on device? Could you please offer me the related links about it? It would be bettter if I could on-device debug immediately with scrachbox.
    Just activate ARMEL target and compile application there then copy binary to a device
    http://maemo.org/development/trainin...00000000000000
    Naturally you can use gdbserver on the device and some IDE on host system. There is a thread how you can do that using ESbox and N900 device.
    http://discussion.forum.nokia.com/fo...727#post707727
    However, I would suggest you to use printf-debugging, which is very simple and requires no setup.

  6. #21
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by divanov View Post
    However, I would suggest you to use printf-debugging, which is very simple and requires no setup.
    sorry to trouble you again. but what is printf-debugging? never heard of that before? any links?

    btw, is there any instruction for setting up the CPU transparency on n900 (maemo5). I cant find one.
    Last edited by pta0007; 2010-02-24 at 16:57.

  7. #22
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    sorry to trouble you again. but what is printf-debugging? never heard of that before? any links?
    http://en.wikipedia.org/wiki/Debuggi...ging_techiques.

    Quote Originally Posted by pta0007 View Post
    btw, is there any instruction for setting up the CPU transparency on n900 (maemo5). I cant find one.
    Why do you need to set CPU transparency on N900?

  8. #23
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by divanov View Post
    Why do you need to set CPU transparency on N900?
    I changed the target to FREMANTLE_ARMEL, recompiled and got an excutable file. But I got no idea how to use that on device--just send it to the device doesn't work, since it's not recognized by the device.

  9. #24
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    I changed the target to FREMANTLE_ARMEL, recompiled and got an excutable file. But I got no idea how to use that on device--just send it to the device doesn't work, since it's not recognized by the device.
    This is just a binary file. You copy it through USB networking, or Mass storage, or WLAN, or any other available option to /home/user/ directory. Then open X Terminal and execute a command:
    Code:
    ./your_binary_name

  10. #25
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How To Build A Camera Program On Maemo

    thx, it works finally!

  11. #26
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    thx, it works finally!
    Do you mean you were able to execute it on N900 or it actually works properly on N900 (without pipeline pausing problem).

  12. #27
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by divanov View Post
    Do you mean you were able to execute it on N900 or it actually works properly on N900 (without pipeline pausing problem).
    It works properly as it's supposed to, without any pipeline problem (so far as I know). Still wonder what the problem might be with MADDE+Qt on windows. Do you think it could be the problem using Qt and Gtk+ at the same time caused the failure in executing?

    Just wonder how did you build the project, with gcc or qmake/make?
    Last edited by pta0007; 2010-02-25 at 08:38.

  13. #28
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How To Build A Camera Program On Maemo

    Quote Originally Posted by pta0007 View Post
    It works properly as it's supposed to, without any pipeline problem (so far as I know). Still wonder what the problem might be with MADDE+Qt on windows. Do you think it could be the problem using Qt and Gtk+ at the same time caused the failure in executing?
    example_camera.c doesn't have any code related to Qt.

    Quote Originally Posted by pta0007 View Post
    Just wonder how did you build the project, with gcc or qmake/make?
    There is no way to avoid gcc usage. There are two alternative toolchains:
    qmake (creates Makefile) -> make (uses gcc)
    autotools (creates Makefile) -> make (uses gcc)
    There is no significant difference between toolchains, if you use them properly.
    maemo-examples has Makefile so it's enough to call "make" to build all examples.

Similar Threads

  1. Exiting camera in a flash lite program
    By mfadjuko in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-04-21, 12:43
  2. Problem in resolving Build error prj0019
    By psandhu in forum Symbian
    Replies: 2
    Last Post: 2008-10-07, 14:30
  3. Forum Nokia Supports maemo
    By Nokia Ron in forum News and Announcements
    Replies: 3
    Last Post: 2007-10-23, 09:33
  4. Replies: 1
    Last Post: 2004-04-02, 08:47
  5. armi build not working
    By lemody in forum Symbian
    Replies: 0
    Last Post: 2003-06-14, 15:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×