Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Member
Posts: 1
Registered: ‎06-20-2013
My Device: Z10
My Carrier: none

Problems trying to deploy in VS

I made a simple test project in VS that has the single source file main.cpp:

 

#include <stdio.h>

 

int main(int argc, char **argv)

{

    printf("Hello, World!\n");

    fflush(stdout);

    return 0;

}

 

I press F11 to “step into” (debug) it.  The build is fine but they I get deployment errors:

 

1>------ Deploy started: Project: test, Configuration: Debug BlackBerry ------

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018: The "BBNativePackager" task failed unexpectedly.

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at VSNDK.Tasks.BBNativePackager.AppendResources(CommandLineBuilder clb) in r:\SRC\src\VSNDK.Tasks\BBNativePackager.cs:line 100

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at VSNDK.Tasks.BBNativePackager.GenerateResponseFileCommands() in r:\SRC\src\VSNDK.Tasks\BBNativePackager.cs:line 81

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at VSNDK.Tasks.BBNativePackager.GenerateCommandLineCommands() in r:\SRC\src\VSNDK.Tasks\BBNativePackager.cs:line 74

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute()

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\BlackBerry\Microsoft.Cpp.BlackBerry.Packager.targets(109,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

 

Not sure what to do next.