• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Compilation problems

M1 chips seem to be part of the cause of this change, I'm not sure how.

ZSH version I found online (bash was still used on my system for some reason so I just used that for now I don't think it makes a difference)
~/.zprofile
#alias setJDK7='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 1.7`'
alias setJDK8='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 1.8`'
alias setJDK11='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 11`'
 
@Jimmy You can test this version of trans and config.macos.txt by putting them into the bin folder of cx.
Here it works without having any separate installation of jre nor jdk. I also don't have a .zshrc file or any bash stuff, just bare android studio and cx. No JAVA_HOME set global or from the terminal.
If this doesn't work you can try to put the config.cxs file into targets/android/template. This changes the gradle to a newer one.
 

Attachments

  • JAVA_HOME Changes.zip
    1.1 MB · Views: 97
Code:
If JDK_PATH path=JDK_PATH+"/bin;"+path ' Make sure that the selected JDK is called before any system wide install.
SetEnv "PATH",path
If JDK_PATH SetEnv "JAVA_HOME",JDK_PATH
It seems to work without setting the PATH variable. Do you think it is necessary?
 
It seems to work without setting the PATH variable. Do you think it is necessary?
You should always put the location to where the binaries are in the path. Not all tools will look for the JAVA_HOME environment variable.
 
Wow, so it seems that we now got a massively stable install now that needs no extra JAVA install?
cerberus will just work out of the box? Nice!


Offtopic but is there a way to get rid of the Apache Ant too and also it riddles me how come Cerberus can compile to html without any addon-compiler?
 
cerberus will just work out of the box?
That's the goal, but you have to try for yourself.

Offtopic but is there a way to get rid of the Apache Ant too and also it riddles me how come Cerberus can compile to html without any addon-compiler?
Could you put those questions in separate threads to keep this one clean?
 
Offtopic but is there a way to get rid of the Apache Ant too and also it riddles me how come Cerberus can compile to html without any addon-compiler?
Ant is no longer required since the Android build tool uses gradle. Only Flash builds would use Ant and Flash is now depreciated. HTML doesn't need an external compiler as Cerberus generates JScript for HTML5. It's the Web browser's job to do any speed optimisations, etc when it executes the JScript.
 
Thanks! Ya I was about to toss the machine out into the garbage. I got the short answers i wanted so I won't start a new thread. Got a working development machine again. And learned a lot about JAVA inner workings.
 
Back
Top Bottom