How to deploy an x86 package to a Windows Phone device? - windows-phone-8

When I have tried to run an x86 on my device, the following error happened:
Unable to deploy an x86 package to a Windows Phone device. Change the build configuration to ARM or Neutral or change the Debug Target to an emulator.
Is there a way to run the app on the device without changing the build?

Simple answer, no.
It is not possible to run a x86 package on an ARM device (which is the case).
You will need to change the target to ARM or Neutral just as the error suggests.

Related

Error trying to install a WP8.1 App in Windows Phone Mobile

Trying to install a WP8.1 App in a new Windows Phone Mobile 10 we are getting this error (We are using the "Windows Phone Application Deployment (8.1)" App):
Error - The provided package is already installed, and reinstallation
of the package was blocked. Check the AppXDeployment-Server event log
for details.
First, the app is not installed. We have verified twice.
Second, what is the AppXDeployment-Server and where I can find the log?
Thanks
The solution was as simple as update the Windows Phone OS to the latest version.
After that we can install WP8.1 Apps in Windows Phone Mobile.
First, the app is not installed. We have verified twice.
This error usually occurs when installing a package which is not bitwise identical to the package that is already installed. Therefore, if a package is rebuilt or resigned, it’s no longer bitwise identical to the previously installed package.
To fix it, you can increase your app’s version number, then rebuild and resign the package or remove the old package for every user on the system before installing the new one.
Besides, you mean the app is not installed before? That way you should use Windows Phone Application Deployment to install the package in default (C:) but not on the device SD card. If you want to install it on SD card, you should use Visual Studio to deploy your app.
Second, what is the AppXDeployment-Server and where I can find the log?
The AppXDeployment-Server provide more info to help you diagnose the cause of the error code.
You can follow steps below to access the event log:
• Run eventvwr.msc.
• Go to Event Viewer (Local) > Applications and Services Logs > Microsoft > Windows.
• The first log to check is AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational.
• Deployment-related errors are recorded in AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational.
Also, another option is to use PowerShell, try following command:
Get-Appxlog|Out-GridView
For more details, you might refer Troubleshooting packaging, deployment, and query of Windows Store apps.

Connecting Windows Phone 8 Emulator (on VirtualBox) to Visual Studio (on host machine)

I have Visual Studio 2013 (running on the host machine - Windows 8.1 Single Language).
I was able to enable my hardware virtualization features and run the Windows Phone 8 emulator on a virtual machine (through Oracle VirtualBox).
I don't have Windows 8.1 Pro (and it costs money to upgrade), so I can't use Hyper-V.
So, I have the code running on my Visual Studio and an Emulator running on a VM in Oracle VirtualBox. Now, I want these two to connect so that the app can be seen on my emulator. But I can't find a way to do that. Can I do something (maybe connect the two on the same network and use the emulator as a device or something like that) in order to make this happen?
Thanks
You could try using the Application Deployment Tool.
Usually found here:
D:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe
You would have to get your compiled XAP to the virtual machine, using a shared folder between host and virtual machine for example.
Then select the device (Emulator) and the XAP and hit deploy.
I hope this helps!

Accessing USB devices from node-webkit?

I'm building a node-webkit app that needs to run on all 3 main desktop environments (windows, mac and linux) I need my app to connect to a plugged in USB device and I'm having a bit of trouble working out exactly how to go about this.
Is there an npm that would work across all OS's? Could I get one built in C++ that would work? Is there anything built in to node-webkit for interacting with devices (Devices API?)
Thanks in advance.
You're almost certain to need a C/C++ module to make this happen, which means a build process is required. The good news is that you can just do the build on your machine and distribute the resulting binaries (x86 and x64) for Windows and OS X. Linux might be a little trickier, but on the other hand it's more likely to have a working build environment.
There are a few approaches, in order of ease:
If your GPS device can present itself as a simple serial device (a COM port on Windows, or /dev/tty-usbserial on *nix), then you can just use serialport to connect to the device and receive raw data. There's a nmea module that can handle parsing the data. serialport works out of the box on all 3 platforms.
If the drivers don't have an official option to present the device as a serial device, you may be able to find an unsupported way to make it happen with some searching.
If the GPS device's drivers don't expose the device as a serial device, you'll need to write a C++ module that interfaces with the driver. You'll need to write code for all three platforms; the device manufacturer should provide documentation/an SDK. (See here for advice about getting started with native modules on Windows.)
Last resort: you may be able to use the usb module to communicate directly with the device. This will probably involve reverse engineering the protocol that the device uses to communicate with the computer.
I recommend you to execute a command line script for that. Caution, it is platform-specific.
Actually you don't need any module you can use chrome usb api its already available for node webkit and electron applications https://developer.chrome.com/apps/usb

can not launch app on device

I installed Windows 8.1 RTM and installed VS2012 had a little problem while installing windows phone 8 sdk but i guess it is resolved now but still i have a weird problem.
Even i select "device" as the launch target when clicked the run button VS launches the app on the emulator not the phone. Surprisingly if i right click the project on solution explorer and select debug it this time launched app on the device.
Is there anybody faced with this kind of problem? I dont want to install everthing from scratch :)
Ok it was my fault, since the project build platform was x86 visual studio could not deploy the app to the device and hence launching the emulator. When i changed the build platform to Any CPU now it deploys my app to the device without any problem.

How to create 64-bit CUDA applications? (Win7 x64, CUDA 4, VS 2010 Express)

I'm mostly set up for CUDA development. I've installed the developer drivers, CUDA 4.0 toolkit, and the 4.0 SDK, as well as the bugfix. I'm running Windows 7 x64, and am using Visual C++ 2010 Express. For 32-bit applications, I perform the following steps and my CUDA applications work properly.
Create new empty project
make sure Platform Toolset is set to v100 (normally the default)
check the CUDA 4.0 Build Customization for the project
set the item type of my .cu file to CUDA C/C++
add 'cudart.lib' to Properties->Linker->Input->Additional Dependencies
I can also run non-CUDA 64-bit applications. Visual C++ 2010 Express does not come with 64-bit dependencies automatically, so I had to install the Windows 7.1 SDK w/ .NET Framework 4.0. Then I simply set the Platform Toolset for the VC++ project to Windows7.1SDK, change the Active solution platform to x64, and I'm good to go.
However, I can't seem to do both at the same time - I can't create a 64-bit CUDA application. If I change the Platform Toolset of a CUDA application to Windows7.1SDK, whether the Active solution platform is x64 or Win32, I get the compile error that nvcc.exe exited with code -1. And if I leave the Platform Toolset set to v100 and change the Active solution platform to x64, I get the compile error "fatal error LNK1104: cannot open file 'kernel32.lib'. The only combination that works is v100 and Win32, and obviously that prevents me from running a 64-bit application.
Is there a procedure for enabling this functionality that I just haven't been able to find online? Any ideas or suggestions? Thanks for your time.
Not possible in express edition , ( does not support plugins ) unless you want to setup nvcc manually , and use notepad to write cu files, I very much prefer the VS integration .
You could check that the host compiler properties for the .cu files are set to 64-bit.
Right-click the "Code.cu" file and click 'Properties'.
Expand the "CUDA C/C++" item and select "Common".
Change "Target Machine Platform" to 64-bit.