01-27-2013 06:52 AM
I was quite excited to see that you could use the BBNDK from within Visual Studio...but then I got sad when I just couldn't make it work.
I have the samples building running and deploying in the Eclipse IDE so I know my compiler is installed correctly. I'm pretty sure the VS plugin did not install correctly...there was nothing in the NDKHostPath or NDKTargetPath under
HKEY_CURRENT_USER\Software\Research In Motion\BlackBerryVSPlugin
so I added
respecively. This got me past the initial error, now, when I follow the instructions and set my 'Blackberry' config I get reasonable looking project properties (I had to change my Platform Toolset to 'qcc') but it basically does nothing. When I Build it says success on VS2012 and fails in VS2010...even if my one and only trivial .cpp file is rubbish. Nothing appears in the output window but I get this log file:
Build started 27/01/2013 11:43:19. 1>Project "C:\Users\Steve\documents\visual studio 2010\Projects\BBTest\BBTest\BBTest.vcxproj" on node 2 (build target(s)). 1>InitializeBuildStatus: Touching "Simulator\BBTest.unsuccessfulbuild". 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuil
d.targets(990,5): warning MSB8012: TargetPath(C:\Users\Steve\documents\visual studio 2010\Projects\BBTest\BBTest\Simulator\BBTest) does not match the Linker's OutputFile property value (C:\Users\Steve\documents\visual studio 2010\Projects\BBTest\BBTest\Simulator\BBTest.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>Done Building Project "C:\Users\Steve\documents\visual studio 2010\Projects\BBTest\BBTest\BBTest.vcxproj" (build target(s)) -- FAILED. Build FAILED. Time Elapsed 00:00:03.82
I do get a reasonable looking makefile generated but I think the compiler (qcc.exe?) is just not running (even though I get another logfile named 'CompileRan' containing 'true'.
Are there some downloadable .vcxproj files for the samples that I can test?
Should I have a folder named $(VCTargetsPath)Platforms\BlackBerry\Platfor
How do I make qcc.exe run as the compiler?
Many thanks for any help