×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    30

    [moved] SDK Install (was Smart installer how-to)

    Greetings,

    I tried following the instructions

    ( http://labs.qt.nokia.com/blogs/2010/...nstaller-beta/ )

    on how to create a smart installer sis for a program but I can't seem to be able to, as I'm a newb on this :eek:


    So I figured all the steps descrbed are done already by the QT creator and I get the first SIS file. So all I need to do is type "make installer_sis" (after of course copying the smartinstaller.sis in the project directory)

    I get this:

    "To use Symbian OS tools without specifying a device name, a default
    device must be set using the devices -setdefault command."

    What can I do? Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Smart installer how-to

    I'm not sure what your setup is and thus how to explain your problem but one easy guess would be that you are running the tools on Vista or 7 and the file c:\Program Files\Common Files\Symbian\devices.xml does not contain info about your SDK's setup, or the SDK is not set as default. If the info is missing, look for a hidden copy of device.xml under your user profile directory and merge it with the one indicated above, then delete the copy.

    Once you have a correct devices.xml, either set the SDK as default manually in the file (make sure that only one SDK is default if you have more than one) or call devices.exe and then devices.exe -setdefault @<sdk_id>
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    30

    Re: Smart installer how-to

    Yep, I'm on Windows 7, and my devices.xml has nothing but this:

    <?xml version="1.0"?>
    <devices version="1.0">
    </devices>
    And

    C:\Program Files (x86)\Common Files\Symbian\tools>devices.exe
    No devices are currently installed.

    C:\Program Files (x86)\Common Files\Symbian\tools>
    I can't find any other devices.xml on my users directory, hidden or not..

    So how do I find the sdk id to set it as default. I'm new at this..

    Thanks!

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Smart installer how-to

    Ok, it's not only windows7 but also 64 bit architecture.

    The exact location where the cloned file would be on a 32 bit system is: c:\Users\<user_name>\AppData\Local\VirtualStore\Program Files\Common Files\Symbian
    On your system it is likely c:\Users\<user_name>\AppData\Local\VirtualStore\Program Files (x86)\Common Files\Symbian

    If the clone file is truly missing, edit the original (c:\Program Files (x86)\Common Files\Symbian\devices.xml) by adding something like

    Code:
    <devices version="1.0">
    <device id="S60_Nth_Edition" name="com.nokia.series60" default="no" userdeletable="no">
    <epocroot>_C:\path_where_SDK_installed_\</epocroot>
    </device>
    </devices>
    under devices.

    Where the path must end with \ and contains the components up to \epoc32

    Then call devices -setdefault @S60_Nth_Edition and you have one problem solved.

    P.S. I'll move this to a more suitable forum, as it has nothing to do with the Smart Installer component. It is only after you have managed to use the SDK and build an example app that you should worry about how to deploy that app to your customers and thus how to package it with the Smart Installer.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Registered User
    Join Date
    Feb 2010
    Posts
    30

    Re: Smart installer how-to

    Hm, problem still remains!

    So I changed the devices.xml to this:

    <?xml version="1.0"?>
    <devices version="1.0">
    <device id="S60_Nth_Edition" name="com.nokia.series60" default="no" userdeletable="no">
    <epocroot>C:\NokiaQtSDK\Symbian\SDK\epoc32\</epocroot>
    </devices>
    And I get this:

    C:\Program Files (x86)\Common Files\Symbian\tools>devices.exe

    mismatched tag at line 5, column 2, byte 195 at C:/Perl64/lib/XML/Parser.pm line
    187

    C:\Program Files (x86)\Common Files\Symbian\tools>devices.exe -setdefault @S60_N
    th_Edition

    mismatched tag at line 5, column 2, byte 195 at C:/Perl64/lib/XML/Parser.pm line
    187

    C:\Program Files (x86)\Common Files\Symbian\tools>
    I recently un-installed Qt 4.6.2 Windows and Symbian SDKs, and installed only the Nokia QT SDK. If that explains anything ..

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Smart installer how-to

    Any two of these three options should help:
    - knowing XML
    - reading the error message
    - carefully reading Lucian's post.

  7. #7
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Smart installer how-to

    It would also help if I would properly investigate the problem, including visiting the provided links. I was assuming that a Symbian/S60 SDK is used, with Qt 4.6.x.

    If you are using Nokia Qt SDK, then you don't need to do any devices.xml magic, the SDK does not register itself as a Symbian SDK and therefore has no entry in that file, and does not necessarily need it.

    Instead, make sure you start the pre-configured terminal window from Start -> Programs -> Nokia Qt SDK -> Symbian -> "Qt for Symbian Command Prompt", then at that prompt type your qmake commands.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  8. #8
    Registered User
    Join Date
    Feb 2010
    Posts
    30

    Re: Smart installer how-to

    It worked on "QT for symbian Command Prompt".

    You've been very helpful, thanks for the help.

    Quote Originally Posted by wizard_hu_ View Post
    Any two of these three options should help:
    - knowing XML
    - reading the error message
    - carefully reading Lucian's post.
    Yes I forgot something, my bad!

Similar Threads

  1. Smart installer and signing
    By stegemann in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 1
    Last Post: 2010-06-18, 22:21
  2. Nokia Qt SDK offline installer fails to install
    By hieronymuz in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2010-05-27, 10:06
  3. Is anyone working on the Smart Installer ?
    By NRBrown in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 4
    Last Post: 2010-04-16, 08:57
  4. Replies: 3
    Last Post: 2010-02-15, 08:14

Posting Permissions

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