ParaToxic Posted February 5, 2013 Posted February 5, 2013 Hey guys I have a big problem here.I want to build Android apk files with the vs-android framework and the Android SDK/NDK. So now in the sample project I have to set the variable $(AndroidNdkDir) to a value , but it's now set to <unset> . Well I can see it when I opne the project properties and go to Debugging -> Remote Command Arguments -> (Dropdown ) Change -> Makros>> and there is a table with that stuff but I can't change it... Well I'm searching for 1,5 hours now and can't find hot to do that. On some sites there are some commands like setx AndroidNdkDir "C:...." .... but where ? Thanks Quote
paramecij Posted February 5, 2013 Posted February 5, 2013 I'm assuming you are trying to set an environment path variable... in Visual studio check the menu for tools / vs command line, then type: set AndroidNdkDir="c:\your path here" ... you can check if a variable is set by just typing: set name_of_variable, and if it exists it will print out it's value.. if you try this in a regular windows cmd the set command only works for that cmd session, global environment variables can be edited from control panel / system / advanced / environment variables Quote
Canardia Posted February 5, 2013 Posted February 5, 2013 You can put environment variables in c:\autoexec.bat, like this: SET ANDROIDNDKDIR=C:\PRG\NDK Or the new style is to put them in the My Computer/Properties/Advanced System Settings/Environment Variables. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
ParaToxic Posted February 5, 2013 Author Posted February 5, 2013 So this kind of variable isn't only for Visual Studio ? When I set it with cmd it show me the same error in Visual Studio. I haven't got the menu !Tools" , just have the express version Quote
Furbolg Posted February 5, 2013 Posted February 5, 2013 You have to set it in your system > environment variables as already told. If you have Win Vista+, you simply can type "environment" into windows search and get the configuration directly. Quote
ChrisMAN Posted February 5, 2013 Posted February 5, 2013 I usually have stacks of bat/ps1 files that set these for me in a shell. I learned this trick while working at a retarded fortune 500 that locked down admin access on my box. Quote
Canardia Posted February 5, 2013 Posted February 5, 2013 I don't think Visual Studio has anyway anything to do with Android NDK, because you need mingw64 or cygwin to compile with it. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
ParaToxic Posted February 5, 2013 Author Posted February 5, 2013 Okey I got it Well the build fails but I got it .. Quote
Roland Posted February 5, 2013 Posted February 5, 2013 http://code.google.com/p/vs-android/ Quote Roland Strålberg Website: https://rstralberg.com
ChrisMAN Posted February 5, 2013 Posted February 5, 2013 I don't think Visual Studio has anyway anything to do with Android NDK, because you need mingw64 or cygwin to compile with it. msvc 2012 supports arm but i am going to keep pretending it doesnt. Quote
Canardia Posted February 5, 2013 Posted February 5, 2013 http://code.google.com/p/vs-android/ That is so wrong, it's just a horrible idea, why would anyone in their right mind do it? Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
ChrisMAN Posted February 5, 2013 Posted February 5, 2013 That is so wrong, it's just a horrible idea, why would anyone in their right mind do it? I was a .net 'build master' for a company. This link made me see the words msbuild again. There needs to be blood. I double dog dare anyone to integrate an open source testing tool(which are the only good ones) as part of a tfs build with reports working /fml Quote
ParaToxic Posted February 6, 2013 Author Posted February 6, 2013 @Roland: Thats exactly the API i'm using for that. Well I've got it work yesterday.Very cool stuff, you can debug your app from Visual studio on your phone. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.