Starting pains with Necessitas on Windows 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
-
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.
-
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.2JAVA_HOME
C:\Program Files\Java\jdk1.7.0_05PATH
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\binANDROID_SDK_HOME set it to the same location as your HOME environment variable
In my case it is C:\Users\eddythen 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
-
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
-
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: 1I'll be very thankful to you if you can help me.
-
[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: 1I'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.