Windows UWP builds failing

71 views
Skip to first unread message

mcw

unread,
Nov 12, 2016, 3:29:44 PM11/12/16
to CodenameOne Discussions

If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans
Plugin version 3.5.8
Device: Desktop Debug Build

This was working yesterday. Updated to new plugin and build now fails.

Seems related to the scanner cn1lib which I am using.

     [exec]   Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\Bin
     [exec] src\com\codename1\ext\codescan\NativeCodeScannerImplFactoryImpl.cs(6,20): error CS0266: Cannot implicitly convert type 'com.codename1.ext.codescan.NativeCodeScannerImpl' to 'com.codename1.ext.codescan.INativeCodeScannerImpl'. An explicit conversion exists (are you missing a cast?) [C:\Users\CODENA~1\AppData\Local\Temp\build5797645440146484432xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
     [exec] Done Building Project "C:\Users\CODENA~1\AppData\Local\Temp\build5797645440146484432xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj" (default targets) -- FAILED.
     [exec] 
     [exec] Build FAILED.
     [exec] 
     [exec] "C:\Users\CODENA~1\AppData\Local\Temp\build5797645440146484432xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj" (default target) (1) ->
     [exec] (XamlPreCompile target) -> 
     [exec]   src\com\codename1\ext\codescan\NativeCodeScannerImplFactoryImpl.cs(6,20): error CS0266: Cannot implicitly convert type 'com.codename1.ext.codescan.NativeCodeScannerImpl' to 'com.codename1.ext.codescan.INativeCodeScannerImpl'. An explicit conversion exists (are you missing a cast?) [C:\Users\CODENA~1\AppData\Local\Temp\build5797645440146484432xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
     [exec] 
     [exec]     0 Warning(s)
     [exec]     1 Error(s)
     [exec] 
     [exec] Time Elapsed 00:00:09.63

BUILD FAILED
C:\Users\CODENA~1\AppData\Local\Temp\build5797645440146484432xxx\TestProject\build-win.xml:64: exec returned: 1

Total time: 40 seconds
Failed to build UWP app.

mcw

unread,
Nov 12, 2016, 5:24:37 PM11/12/16
to CodenameOne Discussions


Just tried a Mobile Debug build, same problem.

Shai Almog

unread,
Nov 12, 2016, 10:30:03 PM11/12/16
to CodenameOne Discussions
It's this issue: http://stackoverflow.com/questions/40546461/codename-one-uwp-build-failed

Only with the code scanner cn1lib. We need to do an overhaul now.

mcw

unread,
Nov 14, 2016, 7:33:34 PM11/14/16
to CodenameOne Discussions
I am trying to follow the instructions you gave for rebuilding the library.

I made the changes and did a clean build. The dist folder contained cn1-codescan.jar but there was no new cn1-codescan.cn1lib created.

How do I install the new library?

Thanks

Steve Hannah

unread,
Nov 14, 2016, 9:05:17 PM11/14/16
to codenameone...@googlegroups.com
Did you follow the instructions for building from source?

Note: I have made changes in the UWP build server that will allow the builds to pass even if a library includes an old winphone native implementation as the cn1-codescan library does.  So that will resolve this issue.  It will be available in the next server update Friday.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/301750e7-ef2a-4662-9654-3d80508a7863%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

mcw

unread,
Nov 15, 2016, 1:42:08 PM11/15/16
to CodenameOne Discussions
I went to that page and clicked the Clone or Download button and chose the Download Zip option.

I then unzipped the file and was able to open it in Netbeans and build.

From the Windows command line I did:

$ cd cn1-codescan-master
$ ant -f configure.xml
$ ant jar

All steps completed successfully but dist only contained the jar file, no cn1lib

Steve Hannah

unread,
Nov 15, 2016, 1:46:05 PM11/15/16
to codenameone...@googlegroups.com
Sounds like you may have overwritten the build.xml file which had some modifications.  Re-copy the build.xml file from github into your project's build.xml, and go through the build steps again.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

mcw

unread,
Nov 15, 2016, 2:07:48 PM11/15/16
to CodenameOne Discussions
Thank you, that seems to have been it. I deleted the folder and unzipped the file again and followed the instructions without opening the project first in Netbeans and I now have a new cn1lib.

Steve Hannah

unread,
Nov 15, 2016, 2:09:49 PM11/15/16
to codenameone...@googlegroups.com
Note: It is fine to open the project in netbeans.  Just if it pops up that dialog telling you that your build file is out of date, and asks if you want to update it, make sure you say "No".

Steve

On Tue, Nov 15, 2016 at 11:07 AM, mcw <mwar...@readerware.com> wrote:
Thank you, that seems to have been it. I deleted the folder and unzipped the file again and followed the instructions without opening the project first in Netbeans and I now have a new cn1lib.



On Tuesday, November 15, 2016 at 10:46:05 AM UTC-8, Steve Hannah wrote:
Sounds like you may have overwritten the build.xml file which had some modifications.  Re-copy the build.xml file from github into your project's build.xml, and go through the build steps again.

Steve
On Tue, Nov 15, 2016 at 10:42 AM, mcw <mwar...@readerware.com> wrote:
I went to that page and clicked the Clone or Download button and chose the Download Zip option.

I then unzipped the file and was able to open it in Netbeans and build.

From the Windows command line I did:

$ cd cn1-codescan-master
$ ant -f configure.xml
$ ant jar

All steps completed successfully but dist only contained the jar file, no cn1lib

On Monday, November 14, 2016 at 6:05:17 PM UTC-8, Steve Hannah wrote:
Did you follow the instructions for building from source?


--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages