Does Gluon Mobile support cross compilation? - javafx

I know Gluon uses GraalVM Native Image features to create native executable packages. But... What I need to know is:
Can it can deploy native packages (executable) for Apple OS based devices (macOS and iOS) in Linux? Or Is it OS specific dependent like jpackage?
What about deploying Windows ".exe" packages in Linux, Is it possible?

If you check the documentation for the Client plugin, there are some requisites to be met in order to create a native image.
So far, the following hosts are required for the possible native image targets:
Linux: targets Linux (x86_64 desktop) and Android (aarch64). Embedded support is still experimental.
Windows: targets Windows (x86_64 desktop). Optionally WSL 2 (Windows Subsystem for Linux) can be used to target Linux/Android.
MacOS X 10: targets Mac (x86_64 desktop) and iOS (arm64).
For each host you need a specific GraalVM build.
See the different samples, and the tutorials (like this one) to know more about each scenario.

Related

Library /data/data/../files/../lib/libMAPSJNI.so not found

I followed this tutorial from the website but I still get "Library /data/data/../files/../lib/libMAPSJNI.so not found" when I try to run the app. I am using eclipse and trying to run the app using the emulator with a device with an Intel Atom (x86) CPU with Android 4.4.2. In my libs folder I do have a file called libMAPSJNI.so.
Sorry, we do not support x86 emulators or devices. Please select an arm emulation image. However please note the emulator's graphical emulation is not perfect and may not work.

Running java application from usb

I am trying to build a cross platform (vista, xp, mac, Linux).
I need to put the application in the USB drive formatted in FAT-32 and it should run on any OS computers.
Planning to use Java/JavaFx to do it.
Any advice how we can run on the multiple platforms.
Hi, Can anyone advice use of uber-jar for the above requirment. Would that be good fit.
A few things to take into consideration:
The USB must be formatted with a filesystem compatible with all the OS you need to work with.
A Java application would be able to run on any OS that is able to run Java, but each OS needs a different Java runtime. There's a Java runtime for Linux, one for Windows, one for OSX, etc.
My suggestion would be to define which OS you want to support and create launcher scripts for each one of them on the root of the USB. For instance you would have at least a couple like: myapp.cmd (for Windows), myapp.sh (for Linux), etc.
Additionally you may want to have different Java Runtimes in the same USB, so with the launcher scripts you execute your Java application running it with the corresponding JRE in the USB filesystem.
A twist in the launcher script would be to somehow check if the OS has already a JRE available (Like checking for a variable JAVA_HOME in the environment, or checking the output of "java -version") and act accordingly (although, running a Java application from your own JRE would be safer).

Not able to install blackberry ndk

Not able to install blackberry ndk (installer-bbndk-bb10_1_x_macos.dmg). Double tapping on this dmg file mount disk and when tap on installer-bbndk.app it shows error "You can't open the application "installer bbndk" because PowerPC applications are no longer supported".
Googled for the issue but still not solved.
OS: Mountain Lion
Please help for issue, i am new to QT development.
The latest version of the NDK seems to be the installer here:
https://developer.blackberry.com/native/downloads/fetch/installer-bbndk-bb10_1_x-macosx-1020-201303191709-201303191501.dmg
You can also verify it with the MD5 checksum, since it is a large download.
Finally, you can check the Release Notes, there are some known issues/known limitations when installing on a Mac, including permission problems and environment settings. One solution is to try unsetting the environment variable 'PS1' before running the installer.
Update:
Please check that you have enabled the ability to install applications not downloaded from the Mac App Store. From the BlackBerry Native SDK downloads page:
Mac OS X 10.8 (Mountain Lion) has a new security option, under Settings > Security & Privacy > General that determines what kind of application can be installed on your system.
In order to install the NDK, change the option from the default "Mac App Store and identified developers" to "Anywhere".
Mountain Lion (OS X 10.8) is listed as a supported platform in the System Requirements for the BB10 Native/Cascades SDK.
I would actually recommend downloading and installing the new Momentics 10.2 Beta IDE, and then using that to download the SDK packages you need for BB 10.0 and 10.1 Development. Note that the same "Install Apps from Anywhere" setting for OS X 10.8 mentioned above is also required to install. While still beta, it does a much nicer job of allowing you to develop for multiple SDK versions, and has a new cleaner interface. Since you can install whichever SDK versions you choose from the new IDE, you are not required or limited to installing the 10.2 beta SDK and I've been using it for 10.0 and 10.1 development for about a month now.

Updating the Chrome NaCl SDK for a Different OS

I need to download (update) my NaCl toolchain on my Mac Mini, but I don't have internet access where I am. I'm able to get my Windows laptop to a Wifi hotspot, but I can't see any option to download a pepper version for a different operating system.
Does anyone know if this is possible?
The NaCl updater uses this file to search for downloads:
http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/naclsdk_manifest2.json
If you examine the file in a text editor, you will see links to the different OS versions and you can download them using any computer.

setup Qt and PyQt on mac osx so my app can also deployable on windows

I've been coding with Python and C++ and now need to work on building a gui for data visualization purposes. I work on Mac Snow Leopard (intel), python 3.1 using gcc 4.2.1 (from Xcode 3.1)
I wanted to first install Qt and then PyQt. And my goals are to be able to:
- quickly prototype GUI and the accompanied logic that drives the GUI using PyQt and python
- if I decided I need the speed, or if it's fairly easy to translate my GUI into C++ using the Qt tools, I have the options to translate my app into C++
- Be able to deploy my application onto Windows (both the python and c++ version of my app)
Give the goals above, what are the correct steps I should take and what issues i should be aware of when setting up Qt and PyQt. Which other deployment tools do I need?
From my readings so far, here's what I have:
download the Qt source for mac and configure it with
-platform macx-g++42 -arch x86_64 -no-framework
(i've read somewhere that
building as framework causes some
trouble in deployment and/or
debugging, can't find the article
anymore)
download latest SIP source and build
download latest PyQt and build from source (any special options I should pay attention to?)
For deployment, I've read that I would need to use py2exe/cx_freeze for windows, p2app for mac:
http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars
but seems like what the article describe is deploying an app you build on windows on the windows platform and vice versa. How do you deploy to windows (is it even possible?) if you are writing your Qt app on a mac ?
Really appreciate the help
I'm guessing by deploying, you mean a compiled version to users that have no Python or Qt or anything.
I'm been trying py2app for a while now and never really worked out for me. You can try PyInstaller. It worked out pretty well for me since it's made to work with plugins like PyQt and PIL etc. I put up some instructions here
http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/
They don't really support cross-compilation though. Just recently, they made cross-compilation for windows binaries on linux possible. If you want to spend some time hacking it, it's probably possible. But probably easier just to get a windows machine and building a binary with it.

Resources