Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Starting pains with Necessitas on Windows 7

Starting pains with Necessitas on Windows 7

Scheduled Pinned Locked Moved Mobile and Embedded
16 Posts 5 Posters 10.0k Views
  • 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.
  • M Offline
    M Offline
    matti-
    wrote on last edited by
    #4

    Hmm I wasn't even aware you could deploy with Necessitas on a non-Linux host.

    Author of <a href="http://mmark.777-team.org/">MMark13</a>

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #5

      Hi Koahnig,

      I wrote that wiki page about a year ago because there were no installation instructions for windows at that time.
      Things have changed since then. The maintainers have made "this installation page":http://community.kde.org/Necessitas/InstallSDK

      I'm planning to test necessitas out again in the near future.

      I've changed the wiki page and added a remark : the installation instructions are obsolete now.

      Good luck,

      Eddy

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #6

        Hi Eddy

        thanks for reply. Actually your wiki page was a good guidance. The only major difference was that some part are now already in the necessitas bundle included. However, it did not make any difference.

        I had found the installation page a little later. Actually the scheme is not too different.

        However, there is one thing mentioned there. The paths should have no spaces. Even though, the picture above shows a space in "Open JDK folder". I have made an installation with no spaces in all java related folders, but that seems to have messed up more.

        Another options I have tried is the installation under Ubuntu Linux on VirtualBox. However, there seem to be many emulators in the way now. It is awful slow (and it does not run either ;-( )

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #7

          Thanks for the feedback, Koahnig

          I'll keep that in mind when i try to install the latest version. But i don't see a picture above, can you tell me which image you are pointing to?

          If I succeed I will adapt the wiki again.

          Maybe I can give it a try this weekend

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #8

            Sorry, was a bit imprecise ;-)

            On the installation page there is a section for "common problems and issues (Windows)":http://community.kde.org/Necessitas/InstallSDK#Common_problems_and_issues_.28Windows.29 I meant the screenshot above this section. There is the "Open JDK location" and it points to something on "c:/Program Files/Java/...". There is certainly at least one space. So the comment below in problems and issues may be a bit misleading.

            Looking forward hearing from you on your success. May be you can give me then a hint where I am failing.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #9

              Thanks, Koahnig,

              I will keep that in mind and install the jdk on the C:/ drive to avoid it. It seems to me at first glance this is the only one we have to choose ourselves.

              I'll be back ;-)

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #10

                Hi Koahnig,

                I finally got necessitas working.

                I had the same issues you described, so hopefully I can help you out, if you're still interested ;-)

                firstly i installed the jdk using jdk-7u5-windows-x64.exe in C:\Program Files\Java\ (with a space!)
                then i installed necessitas in C:\necessitas.

                then i tested the AVD manager installed by necessitas, but that didn't work out. so i googled the android web pages and found some solutions. I had to set some environment variables on my own. Here they are :
                User variables
                ANT_HOME : Points to the folder containing: /bin/ant.bat
                C:\necessitas\apache-ant-1.8.2

                JAVA_HOME
                C:\Program Files\Java\jdk1.7.0_05

                PATH
                C:\necessitas\android-sdk\platform-tools;C:\necessitas\android-sdk\tools; C:\necessitas\QtCreator\bin;C:\QtSDK\mingw\bin;C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin;
                C:\Program Files\Java\jdk1.7.0_05\bin\java.exe;
                C:\Program Files\Java\jdk1.7.0_05\bin;C:\necessitas\apache-ant-1.8.2\bin

                ANDROID_SDK_HOME set it to the same location as your HOME environment variable
                In my case it is C:\Users\eddy

                then I followed the same steps as the wiki page and my hello world app is running both on the emulator and on an android device. I tried a QML test app, but sometimes it succeeds and sometimes not. I'll have to dig some more there...

                I hope this helps, if you have some more specific questions, I will be glad to be of your assistance.
                I'm going to adapt the wiki page to reflect the new changes and let the maintainers know about my findings.

                Cheers,

                Eddy

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #11

                  Thanks Eddy for your summary.

                  I will give it another shot. At the moment I had to push it back for other priorities, but I am still interested. Certainly I have to make fresh start. Something has been messed up completely.

                  I'll keep you posted.

                  Cheers,

                  koahnig

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • EddyE Offline
                    EddyE Offline
                    Eddy
                    wrote on last edited by
                    #12

                    you're welcome

                    Eddy

                    Qt Certified Specialist
                    www.edalsolutions.be

                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      qtandroid
                      wrote on last edited by
                      #13

                      Eddy,
                      i need your help! I am new to qt.
                      When i run the application it give me following error.
                      :-1: error: Packaging Error: Command 'E:/necessitas/apache-ant-1.8.4/bin/ant.bat clean debug' failed.Exit code: 1

                      I'll be very thankful to you if you can help me.

                      1 Reply Last reply
                      0
                      • sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #14

                        [quote author="qtandroid" date="1391581516"]Eddy,
                        i need your help! I am new to qt.
                        When i run the application it give me following error.
                        :-1: error: Packaging Error: Command 'E:/necessitas/apache-ant-1.8.4/bin/ant.bat clean debug' failed.Exit code: 1

                        I'll be very thankful to you if you can help me.
                        [/quote]

                        In Qt 5.2, android port is fully integrated, you do not need to install Necessitas anymore. I suggest upgrading.

                        (Z(:^

                        1 Reply Last reply
                        0
                        • Q Offline
                          Q Offline
                          qtandroid
                          wrote on last edited by
                          #15

                          Thanks sierdzio!
                          I'll try Qt 5.2

                          1 Reply Last reply
                          0
                          • Q Offline
                            Q Offline
                            qtandroid
                            wrote on last edited by
                            #16

                            Still same error :(

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved