CX builds on headless linux?

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Hi all,

Is it possible to do HTML5/GLFW/Android builds on headless linux?

Thanks!
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
840
In theory it should be possible with carefully crafted shell scripts communicating over SSH on the server and client, but you would only be able to build Linux GLFW applications, unless you know what you are doing to trick transcc into cross compiling as I did with a little experiment I was messing with for MonkeyX 86c for Windows builds.
 

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Thanks! Sorry I wasn't clear enough, I don't need to cross-compile, the linux GLFW is fine... just wanted to build my CX sources in a remote linux VPS, some sort of continuous builds. I managed to do HTML5 build (http://45.79.111.173/CerberusGame.html), GLFW and now trying an Android build (in Centos 7), so far so good :)

I thought I might also use it as a check up tool for new CX releases - basically compile all examples on at least html5/android/glfw on linux and see what fails, some sort of sanity checks, maybe using Jenkins for it...
 

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Ok, giving up on Android :)

[root@li1210-173 tools]# /tmp/Cerberus/bin/transcc_linux -target=Android_Game -config=Release "/tmp/Cerberus/examples/mojo2/helloworld/helloworld.cxs"
TRANS cerberus compiler V2017-07-31
Parsing...
Semanting...
Translating...
Building...
Observed package id 'tools' in inconsistent location '/tmp/sdk-tools' (Expected '/tmp/sdk-tools/tools')
Checking the license for package Android SDK Build-Tools 26 in /tmp/sdk-tools/licenses
License for package Android SDK Build-Tools 26 accepted.
Preparing "Install Android SDK Build-Tools 26 (revision: 26.0.0)".
Warning: Trying to install into /tmp/sdk-tools/build-tools/26.0.0/ but package "Android SDK Tools" already exists at /tmp/sdk-tools/. It must be deleted or moved away before installing into a child directory.
Checking the license for package Android SDK Platform 26 in /tmp/sdk-tools/licenses
License for package Android SDK Platform 26 accepted.
Preparing "Install Android SDK Platform 26 (revision: 2)".
Warning: Trying to install into /tmp/sdk-tools/platforms/android-26/ but package "Android SDK Tools" already exists at /tmp/sdk-tools/. It must be deleted or moved away before installing into a child directory.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following SDK components:
[Android SDK Platform 26, Android SDK Build-Tools 26]
Please install the missing components using the SDK manager in Android Studio.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
 
Top Bottom