Kitteh6660/Corruption-of-Champions-Mod

[Bug] Unable to build+

Beyley opened this issue · 2 comments

  • The bug is still present in the latest release
  • Searched the existing issues so I do not open a duplicate issue
  • Filled out the template, so developers are less likely to ask for more info

Overview

Whenever trying to build the latest version of the source it fails on test-build-debug:

Game version

commit 1843a31

Expected behaviour

Game should not error while building

Actual behaviour

(Tue May-5 12:41:56am)-(CPU 11.1%:0:Net 19)-(beyley:~/Corruption-of-Champions-Mod)-(556K:36)
> ant
Buildfile: /home/beyley/Corruption-of-Champions-Mod/build.xml

init:
   [delete] Deleting directory /home/beyley/Corruption-of-Champions-Mod/target
    [mkdir] Created dir: /home/beyley/Corruption-of-Champions-Mod/target
    [mkdir] Created dir: /home/beyley/Corruption-of-Champions-Mod/target/report

test-build-debug:
    [mxmlc] Loading configuration file /opt/apache-flex-sdk/frameworks/flex-config.xml
    [mxmlc] Apache Flex Compiler (mxmlc)
    [mxmlc] Version 4.16.1 build 20171115
    [mxmlc] Copyright 2017 The Apache Software Foundation.
    [mxmlc] 
    [mxmlc] /opt/apache-flex-sdk/frameworks/flex-config.xml(65): Error: unable to open '{playerglobalHome}/27.0/playerglobal.swc'
    [mxmlc] 
    [mxmlc]       </external-library-path>
    [mxmlc] 

BUILD FAILED
/home/beyley/Corruption-of-Champions-Mod/build.xml:85: The following error occurred while executing this line:
/home/beyley/Corruption-of-Champions-Mod/build.xml:67: mxmlc task failed

Total time: 0 seconds

How often can this be reproduced?

Every time

Steps to reproduce the issue

  1. Use Arch Linux on kernel 5.12.5-arch1-1
  2. Clone the repo
  3. install the latest flashplayer-standalone / apache-flex-sdk from the AUR
  4. install openjdk 15.0.2 2021-01-19
  5. export FLEX_HOME=/opt/apache-flex-sdk/
  6. Run the ant command

I accidentally pressed enter and it created the issue :/ sorry about that give me a min to populate it properly

Sorry for the late reply on this.

The apache-flex-sdk package in AUR only has the version 32.0 playerglobal.swc included, but the flex-config.xml defaults to 27.0 (see comment on AUR). In order to compile this you'll either need to update your flex-config.xml to have a target-player of 32.0, or find and download the version 27.0 playerglobal.swc and place it in /opt/apache-flex-sdk/player/27.0/ and possibly also /opt/apache-flex-sdk/frameworks/lib/player/27.0 depending on your setup.

Note that this will not fix ant test or its related commands, but the debug and release targets should both compile after this.