Re: LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread Andre Garzia via use-livecode
Bob,

I can still run apps for Windows 3.11 if I want. Windows ME is even easier.
I can even still run DOS 16bit stuff.

> 32 bit only apps are apps that are not maintained, and have likely not
been maintained for quite some time. Win XP 64 bit was released in April
2005. 15 YEARS ago. The die was cast way back then. Anyone who refused or
were unable  to update their apps to 64 > bit are likely not in the
business of software development and support, or else are not very serious
about.

This is completely false. There are many hardware peripherals that require
32bits drivers for example. It is very common to have industrial stuff
running with 32bits. Also, all windows machines can run 32bits apps, so
many windows apps are still 32bits as it doesn't make sense to update them
to 64bits and risk it not running on some machines as in the case of
windows, things change very little between 32bits and 64bits. Stuff such as
video editors and multimedia apps benefit a lot from being 64bits and those
are the ones that I most see with only 64bits available.

A good example of the trainwreck that Apple did with the 32bits fiasco is
that many gamers collected a huge gaming library over the years on things
like Steam. Many of those games are 32bits games because that is what gets
you most compatibility with hardware out there, now all of those games,
which run fine up to one update ago, are not running anymore. My best
friend has this problem for example, from the 219 games in his Steam
library, only 69 run on Catalina.

Many offices can no longer print as the driver is 32bits...

None of this is happening because the people who developed all those
products are not serious. With LC it is easy to compile to many different
architectures but with a lot of code it is not that simple. Specially low
level C code might change a lot between 32bits and 64bits.


On Wed, 8 Apr 2020 at 16:42, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Again, why would one want to? :-)
>
> 32 bit only apps are apps that are not maintained, and have likely not
> been maintained for quite some time. Win XP 64 bit was released in April
> 2005. 15 YEARS ago. The die was cast way back then. Anyone who refused or
> were unable  to update their apps to 64 bit are likely not in the business
> of software development and support, or else are not very serious about.
>
> Try running apps for Windows ME or OS 9. It’s only a matter of degrees.
>
> Bob S
>
>
> > On Apr 8, 2020, at 8:20 AM, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >> Why should i want to? My Mac OS can run 64bit apps. ;)
> >
> > Now try running a 32bits one...
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread Bob Sneidar via use-livecode
Again, why would one want to? :-)

32 bit only apps are apps that are not maintained, and have likely not been 
maintained for quite some time. Win XP 64 bit was released in April 2005. 15 
YEARS ago. The die was cast way back then. Anyone who refused or were unable  
to update their apps to 64 bit are likely not in the business of software 
development and support, or else are not very serious about. 

Try running apps for Windows ME or OS 9. It’s only a matter of degrees. 

Bob S


> On Apr 8, 2020, at 8:20 AM, Andre Garzia via use-livecode 
>  wrote:
> 
>> Why should i want to? My Mac OS can run 64bit apps. ;)
> 
> Now try running a 32bits one...

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread matthias rebbe via use-livecode



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 08.04.2020 um 17:20 schrieb Andre Garzia via use-livecode 
> :
> 
>> Why should i want to? My Mac OS can run 64bit apps. ;)
> 
> Now try running a 32bits one...
> 
I am running 10.14.6 so i can still run 32bit.

> rsrsrs what I mean is that Windows machines have a lot of
> retrocompatibility and interoperability among themselves, something that is
> no longer true for the mac. The fact that I'm running all these 32bits apps
> that were compiled for a completely different ISA on my computer without
> even noticing they are not native is quite an achievement. They say 64bits
> emulation will come at the end of the year. All I want to be honest is
> native arm64 binaries but companies are slow to port.
> 
I know what you´ve meant.

I just wanted to make a joke ;)





> 
> On Wed, 8 Apr 2020 at 16:16, matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>>> ARM7 Android, all working fine.
>>> 
>>> PS: You can't do this kind of crazy stunts on a mac
>> 
>> Why should i want to? My Mac OS can run 64bit apps. ;)
>> 
>> 
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread Andre Garzia via use-livecode
> Why should i want to? My Mac OS can run 64bit apps. ;)

Now try running a 32bits one...

rsrsrs what I mean is that Windows machines have a lot of
retrocompatibility and interoperability among themselves, something that is
no longer true for the mac. The fact that I'm running all these 32bits apps
that were compiled for a completely different ISA on my computer without
even noticing they are not native is quite an achievement. They say 64bits
emulation will come at the end of the year. All I want to be honest is
native arm64 binaries but companies are slow to port.



On Wed, 8 Apr 2020 at 16:16, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > ARM7 Android, all working fine.
> >
> > PS: You can't do this kind of crazy stunts on a mac
>
> Why should i want to? My Mac OS can run 64bit apps. ;)
>
>
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread matthias rebbe via use-livecode


> ARM7 Android, all working fine.
> 
> PS: You can't do this kind of crazy stunts on a mac

Why should i want to? My Mac OS can run 64bit apps. ;)




-
Matthias Rebbe
Life Is Too Short For Boring Code


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LC Android deployment working on Windows 10 under ARM64

2020-04-08 Thread Andre Garzia via use-livecode
So, my main machine these days is a Surface Pro X which is a Microsoft
computer that runs Windows 10 with an ARM64 CPU (aka Windows on ARM, aka
WoA).

Machines running Windows 10 on ARM64 can run Windows 10 applications
compiled to ARM64 and also run Windows 10 applications compiled for x86
32bits through a built in emulation system. It can't run x86 64bits
applications unfortunately. Thankfully LC for Windows is still compiled for
32 bits, so I can run it on this machine even though I'd rather have a
native arm64 version someday.

I got tired of always switching to a Mac, or my older Surface Go, when I
need to do something with LC and Android and decided to try setting it up
today. I begun by following the instructions at:

http://lessons.livecode.com/m/4069/l/985962-livecode-and-android-studio

Which led me to download Android Studio for Windows 10 32bits. I've
installed it and downloaded SDKs for Android 10, 9 and 8. Also downloaded
the obsolete SDK tools as described. Downloaded a 32bits JDK from Oracle.
Installed everything and setup LC correctly.

While I was trying to deploy an Android app, it would start compile things
and then fail with:

"Could not encode class bundle"

Which is a useless message and doesn't tell me anything. I went searching
and found this thread:

http://runtime-revolution.278305.n4.nabble.com/could-not-encode-class-bundle-td4711848.html

Which led me to a very helpful message by Panos that contains this
wonderful nugget of wisdom:

> On Jan 22, 2017, at 8:42 AM, panagiotis merakos via use-livecode <[hidden
email]
>
wrote:
>
> My guess is that this error is related to the Android SDK. Which version
of
> Android SDK Build Tools have you installed?
>
> To find the exact error, you can do the following:
>
> 1. Type in the msg box "edit the script of stack
revsaveasandroidstandalone"
> 2. In the script editor window that just opened, search for "Could not
> encode class bundle" (should be around line 638)
> 3. Add "answer the result" just before the "Could not encode class
bundle"
> line.
> 4. Click apply to (temporarily) save this change
> 5. Build an android standalone.

Now, why the hell doesn't the default error message contains "the result"?
That would have saved me a lot of time! I changed that to output to the
message box, and this is what it was saying:

-
This version of
C:\Users\andre\AppData\Local\Android\Sdk\tools\lib\find_java64.exe is not
compatible with the version of Windows you're running. Check your
computer's system information and then contact the software publisher.

ERROR: No suitable Java found. In order to properly use the Android
Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
  http://www.oracle.com/technetwork/java/javase/downloads

If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.

You can find the complete Android SDK requirements here:
  http://developer.android.com/sdk/requirements.html
-

Which makes total sense because my computer can't actually run 64bits
binaries. I don't know which function in LC calls that command, it is not
in the revsaveandroidstandalone, but I noticed that in that folder there
was also a "find_java32.exe", I simply made a copy of it, renamed it
"find_java64.exe" and from then onwards, everything worked and I could
deploy and test things on Android.

So yes, LiveCode compiled for Windows 10 running under 32bits emulation on
an ARM64 computer, compiling for an ARM7 Android, all working fine.

PS: You can't do this kind of crazy stunts on a mac

-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode