Software Archive
Read-only legacy content

Intel XDK Windows Build Fails

Vineeth_K_
Beginner
366 Views

Hi

I am getting this error when I tey to build my app's windows buid. It is getting built properly in IOS and Android. Am clueless on what needs to be done. Please help

Full log is attached.


Thanks

Vineeth
************* Completed processing the main config.xml file (after_prepare)  *****************
Running command: cmd "/s /c "...\LinStudio\platforms\windows\cordova\build.bat --release --verbose --phone""
MSBuildToolsPath: ...\MSBuild\14.0\bin\
Building project: ...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj
	Configuration : release
	Platform      : anycpu
  pch.cpp
  sqlite3.c
  Constants.cpp
  Database.cpp
  Statement.cpp
...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\Database.cpp(48): warning C4244: 'return' : conversion from 'sqlite3_int64' to 'int', possible loss of data [...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\SQLite3.WindowsPhone.vcxproj]
     Creating library ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.lib and object ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.exp
  Generating code
  Finished generating code
  SQLite3.WindowsPhone.vcxproj -> ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.dll
...\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(4388,5): error APPX0505: The processor architecture of your project 'neutral' doesn't match the processor architecture 'x86' of the referenced project 'SQLite3'. Change the targeted processor architectures to align between your project and its references. [...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj]
ERROR: Error code 1 for command: ...\MSBuild\14.0\bin\msbuild with args: ...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=anycpu
Command finished with error code 2: cmd /s /c "...\LinStudio\platforms\windows\cordova\build.bat --release --verbose --phone"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
    at ChildProcess.whenDone (D:\Developer\cordova\5.1.1\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
0 Kudos
6 Replies
Amrita_C_Intel
Employee
366 Views

Make sure you have proper environment variables defined (add this in .bash_login or .profileand do source .profile):

export ANDROID_SDK="/opt/software/android-sdk"
export ANDROID_NDK="/opt/software/android-ndk"
export ANDROID_HOME="$ANDROID_SDK"
export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK/platform-tools"
export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_PLATFORM_TOOLS"
For windows: add the above same variables in Environment Variables System Properties -> Advanced -> Environment Variables -> System variables example variable name : ANDROID_SDK variable value : /path/android-sdk (remove " ") and so on... then close and open your cmd window (runned as admin) 
 
 
For more info refer this link: http://stackoverflow.com/questions/29721410/cordova-you-may-not-have-the-required-environment-or-os-to-run-this-project
0 Kudos
Swati_S_Intel1
Employee
366 Views

Our current windows build system uses AnyCPU architecture type and apparently you are using SQLite plugin which requires to be build for x86. This is a known issue and is being resolved. For now, include Intel App Security API plugin in your project and then build, which will build your project with x86 architecture. Please let me know if that doesn't work.

0 Kudos
Vineeth_K_
Beginner
366 Views

Hi Swati,

 

Thanks for helping me out. However it did'nt worked out. I included  Intel App Security API plugin as per ypur suggestion from https://github.com/01org/AppSecurityApi (I added it as a custom plugin using git repo url) and tried building it again. 

Please refer the relevant portion in the error log attached below. 

Do I have to do anything else other than simply including this ?

Preparing windows project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'cordova-plugin-whitelist',
  'cordova-plugin-splashscreen',
  'cordova-plugin-device',
  'cordova-plugin-file',
  'cordova-plugin-file-transfer',
  'cordova-plugin-statusbar',
  'cordova-sqlite-legacy',
  'com.intel.security' ]

-

-

-

************* Completed processing the main config.xml file (after_prepare)  *****************
Running command: cmd "/s /c "...\LinStudio\platforms\windows\cordova\build.bat --release --verbose --phone""
MSBuildToolsPath: ...\MSBuild\14.0\bin\
Building project: ...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj
    Configuration : release
    Platform      : anycpu
  pch.cpp
  sqlite3.c
  Constants.cpp
  Database.cpp
  Statement.cpp
...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\Database.cpp(48): warning C4244: 'return' : conversion from 'sqlite3_int64' to 'int', possible loss of data [...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\SQLite3.WindowsPhone.vcxproj]
     Creating library ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.lib and object ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.exp
  Generating code
  Finished generating code
  SQLite3.WindowsPhone.vcxproj -> ...\LinStudio\plugins\cordova-sqlite-legacy\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.WindowsPhone\release\SQLite3.WindowsPhone\SQLite3.dll
...\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(4388,5): error APPX0505: The processor architecture of your project 'neutral' doesn't match the processor architecture 'x86' of the referenced project 'SQLite3'. Change the targeted processor architectures to align between your project and its references. [...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj]
ERROR: Error code 1 for command: ...\MSBuild\14.0\bin\msbuild with args: ...\LinStudio\platforms\windows\CordovaApp.Phone.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=anycpu
Command finished with error code 2: cmd /s /c "...\LinStudio\platforms\windows\cordova\build.bat --release --verbose --phone"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
    at ChildProcess.whenDone (D:\Developer\cordova\5.1.1\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

 

0 Kudos
Swati_S_Intel1
Employee
366 Views

Hello Vineeth, we are looking into the issue. Will update you if we find a workaround.

0 Kudos
Vineeth_K_
Beginner
366 Views

Hi,

Any update in this request. Or Can you suggest any altrenative. We have Delivered IoS and Android buiilds and the pressure for Windows build is mounting

 

Vineeth

0 Kudos
PaulF_IntelCorp
Employee
366 Views

Vineeth, the Windows build systems are undergoing some significant updates for our next major release, which is coming soon. We cannot publish release dates, but they generally occur every six weeks. You can look at the release notes to get an idea of when they occur.

0 Kudos
Reply