[ 
https://issues.apache.org/jira/browse/CB-8866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14516899#comment-14516899
 ] 

ASF GitHub Bot commented on CB-8866:
------------------------------------

Github user brodybits commented on the pull request:

    https://github.com/apache/cordova-windows/pull/67#issuecomment-97033277
  
    > I believe cordova windows provides an --archs option to specify the
    > architectures to build. Is that not sufficient for your purposes? Here's 
the
    > exact syntax:
    > cordova build windows -- --archs="x86"
    
    OK-then we need to select the architecture (`x86`|`x86-64`|`arm`) if we use 
Visual Studio as well.
    
    Another thing is that people are having trouble using my plugin with a 
Visual Studio Cordova project, as reported in 
litehelpers/Cordova-sqlite-storage#237. Our workaround was to use `plugman`. I 
hope we can find a better solution for this.
    
    These problems show up due to including a C++ project, which seems 
perfectly valid but not done for most Windows "Universal" plugins. I expect 
someone using https://github.com/AllJoyn-Cordova/cordova-plugin-alljoyn will 
encounter similar issues.
    
    I am taking holiday this week, planning to try again to find a solution for 
the problem using the Visual Studio Cordova template when I come back.


> Missing support for targets (Mixed Platforms & Win32) causes problem with C++ 
> component
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-8866
>                 URL: https://issues.apache.org/jira/browse/CB-8866
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows
>    Affects Versions: 3.5.0
>         Environment: Windows (Universal) project created with Cordova CLI and 
> plugin with C++ component added, using Visual Studio Express 2013
>            Reporter: Chris Brody
>              Labels: c++, cli, native, universal, windows
>             Fix For: Master
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> If I create a project using the Cordova CLI, add a plugin such as 
> https://github.com/litehelpers/Cordova-sqlite-storage (which installs a C++ 
> component for the Windows (Universal) target), add the windows version, and 
> try to run the project with the default selection of All CPUs (or Mixed 
> Platforms on Windows Phone), VS complains that SQLite3.winmd is not found. 
> But if I select a particular CPU such as x86 or x64 and try to run, then it 
> will build the SQLite C++ library, build my project, and run.
> The workaround is to omit SQLite3.Windows.vcxproj & 
> SQLite3.WindowsPhone.vcxproj from plugin.xml, and install them manually. I 
> tried to describe this workaround in the readme.
> The recommended solution is to add support for "Mixed Platforms" and "Win32" 
> to template/CordovaApp.sln in the cordova-windows project.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to