Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Harmattan SDK and Qt Creator integration

    Tools
    3
    9
    4152
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dakron last edited by

      Hi,

      I don't know if this is the good place for this question but I'll give a try :)

      I've installed the SDK using harmattan-sdk-setup.py as described "here":http://www.developer.nokia.com/Community/Wiki/Harmattan:Platform_Guide/Getting_started_with_Harmattan_Platform_SDK/Installing_Harmattan_Platform_SDK . Everything works fine, I can run the Xephyr and compile but I am confused with Qt Creator integration "here":http://www.developer.nokia.com/Community/Wiki/Harmattan:Platform_Guide/Getting_started_with_Harmattan_Platform_SDK/Integrating_Qt_Creator_with_Scratchbox_in_Linux_environment. According to the description I need to use in the custom scirpts (sbox-run, sbox-qmake...) the path to '/usr/bin/scratchbox' which doesn't exist on my workstation (Fedora 15). Could anyone help me with that, please ? Did I miss something ?

      1 Reply Last reply Reply Quote 0
      • T
        tomma last edited by

        Easiest way is to use Madde SDK for Harmattan which comes with QtSDK as experimental stuff.
        I have never tried to make Qt Creator compile in SBox but those instructions looks good. You can always check where binary is with @$ whereis scratchbox@

        1 Reply Last reply Reply Quote 0
        • D
          dakron last edited by

          The problem is that Harmattan QtSDK uses Qemu and it is very, very slow on my workstation and I tried with 'whereis' and 'find' and there is no scratchbox executable. It looks like chroot and sbox's bash is used in this case...

          1 Reply Last reply Reply Quote 0
          • I
            inean last edited by

            currently /usr/bin/scratchbox is a link to /scratchbox/login. Unfortunately, it seems like hamattan sdk intaller doesn't create it on F15. Keep in mind that, to make use of scratchbox on f15, you need to start it previously with /scratchbox/sbin/sbox_ctl start

            1 Reply Last reply Reply Quote 0
            • D
              dakron last edited by

              I've tried with symbolic link to /scratchbox/login (ln -s /scratchbox/login /usr/bin/scratchbox) but I get the message "Could not determine the patch to the binaries of the Qt installation, maybe the qmake path is wrong?" when I point 'qmake location' to my /usr/bin/sbox-qmake.

              1 Reply Last reply Reply Quote 0
              • I
                inean last edited by

                sbox-qmake from wiki doesn't work for me. The thing is that you need to cheat qtcreator to thing that qmake is a valid one. Pastebin somewhere your sbox-qmake file and tell me if you are using qtcreator from fedora or from Nokia SDK. if so, where it's installed :)

                1 Reply Last reply Reply Quote 0
                • D
                  dakron last edited by

                  My sbox-qmake is exactly the same like from wiki (with valid SBOX_USER). I am using Qt Creator from Qt SDK installed in /home/$USER/Programs/QtSDK :)

                  1 Reply Last reply Reply Quote 0
                  • I
                    inean last edited by

                    Ok. Add something like this

                    @
                    <init stuff goes here>
                    ....

                    lets check the command line arguments

                    if [ $1 == "--version" ]; then

                    lets execute the sbox-qmake -version on host machine

                    qmake $@@
                    @else
                    if [ $1 == "-query" ]; then

                    lets execute sbox-qmake -query on host machine

                    qmake $@@
                    @else
                    <scratchbox command goes here>
                    fi
                    fi
                    @
                    Also point qmake to a valid one in you are using QtSDK

                    1 Reply Last reply Reply Quote 0
                    • D
                      dakron last edited by

                      The sbox-qmake called from command line works fine - --version returns installed version, -query returns correct values - but Qt Creator shows still the same error: “Could not determine the patch to the binaries of the Qt installation, maybe the qmake path is wrong?".

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post