Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

3.2.18 on Windows - tld tasks #11

Open
willwh opened this issue Feb 25, 2014 · 11 comments
Open

3.2.18 on Windows - tld tasks #11

willwh opened this issue Feb 25, 2014 · 11 comments

Comments

@willwh
Copy link

willwh commented Feb 25, 2014

Trying to compile the latest master branch, I am having no luck.

I have a branch here: willwh@7e7150e which should have all of the changes needed for compiling on Windows, I would be happy to throw over a pull request with a Readme.md for compiling on Windows (I would be happy to maintain a branch of flash-build for windows compilation)

[exec] Loading configuration file C:\flex\frameworks\flex-config.xml
[exec] C:\flash\core\src\actionscript\org\flowplayer\view\Launcher.as(301): col: 116 Error: Access of undefined property secondaryDomains.
[exec]
[exec] _pluginLoader = new PluginLoader(URLUtil.playerBaseUrl, _pluginRegistry, this, useExternalInterface(), (CONFIG::secondaryDomains).split(" "));
[exec] ^
[exec]
[exec] C:\flash\core\src\actionscript\org\flowplayer\view\Launcher.as(301): col: 116 Error: Access of undefined property secondaryDomains.
[exec]
[exec] _pluginLoader = new PluginLoader(URLUtil.playerBaseUrl, _pluginRegistry, this, useExternalInterface(), (CONFIG::secondaryDomains).split(" "));
[exec] ^
[exec]
ant :
BUILD FAILED
C:\flash-build\build.xml:108: The following error occurred while executing this line:
C:\flash-build\build.xml:173: The following error occurred while executing this line:
C:\flash-build\build.xml:230: exec returned: 2
Total time: 8 seconds

@ghost
Copy link

ghost commented Mar 15, 2014

I'm also having this problem. CONFIG::secondaryDomains is defined in build.xml on line 244. I tried an experiment and switched lines 244 and 243 of build.xml. Then when I compiled it gave the same error for both the secondaryDomains and FLASH_10_1 variables.

EDIT: I figured it out. The variable in build.xml on line 244 needs single quotes around it, which it was missing.

<arg line="-define+=CONFIG::secondaryDomains,'${secondary-domains-quoted}'"/>

EDIT 2: Also needed to do that with these three lines:

<arg line="-define+=CONFIG::versionStatus,'${version-status-quoted}'"/>
<arg line="-define+=CONFIG::controlsVersion,'${controls-version-info-quoted}'"/>
<arg line="-define+=CONFIG::audioVersion,'${audio-version-info-quoted}'"/>

@pqrosa
Copy link

pqrosa commented May 12, 2014

Hello, I am having a similar issue. If I try to build the player, this fix works, but when I try to build a specific plugin (securestreaming) I keep getting this error. Have you guys had this same issue? Thanks in advance.

@danrossi
Copy link
Contributor

the plugins won't build individually now im afraid this can be done easily by adding it to the main build file see

https://github.com/flowplayer/flash-build/blob/master/build.properties

plugin.buildfiles=

add the paths here.

In terms of overriding the build variables, this is made possible by placing a core.properties file into your user home directory and override the settings from there.

@pqrosa
Copy link

pqrosa commented May 12, 2014

I am using this new approach already. I was able to compile almost every plugin individually by simply going to their folder and issuing the ant command. The problem is specific to the securestreaming and its secondaryDomains property (which seems to be a paid version feature).

@danrossi
Copy link
Contributor

Read above. it has domain locking feature capabilities. The domain functions have seperated the tld domains. Instead of modifying the build file simply include it to compile on the core player and it will build. You need the tld checkout also.

@pqrosa
Copy link

pqrosa commented May 14, 2014

Steps to reproduce the error:

  1. Clone the flash, flash-build and tld repositories.

$ git clone https://github.com/flowplayer/flash.git
$ git clone https://github.com/flowplayer/flash-build.git
$ git clone https://github.com/flowplayer/tld.git

  1. Edit the flash-build/build.properties file.

flexdir=c:/Development/flexsdk
mxmlc_bin= ${flexbindir}/mxmlc.exe
compc_bin= ${flexbindir}/compc.exe
asdoc_bin= ${flexbindir}/asdoc.exe

  1. Edit the flash-build/plugin-build.properties.

flexdir=c:/Development/flexsdk

  1. Edit the flash-build/build.xml file. (Add the single quotes to the following lines)
  1. Edit the flash-build/js.xml file. (Correct the java path)
  1. Run ant on /flash-build

$ ant

Output:

Buildfile: c:\flowplayer\flash-build\build.xml
[echo] flowplayer version 3.2.18

check-uptodate:
[echo] main up-to-date: ${uptodate.main}
[echo] main up-to-date: ${uptodate.commercial}
[echo] lib up-to-date: true

concat-flowplayer.js:

flowplayer.js:

source:
[copy] Copying 1 file to c:\flowplayer\flash-build\dist
[echo] c:\flowplayer\flash-build/dist/flowplayer.js --> c:\flowplayer\flash-build/dist/flowplayer-3.2.13.js copied
[echo] c:\flowplayer\flash-build/dist/flowplayer-3.2.13.js build

min:
[echo] c:\flowplayer\flash-build/dist/flowplayer-3.2.13.js minified

build-lib:
[echo] flowplayer version 3.2.18

prepare:
[echo] flowplayer version 3.2.18

compile-lib:
[echo] running c:/Development/flexsdk/bin/compc.exe with classpath ../flash/core/lib/corelib/src ../flash/core/lib/goasp/src_go

../flash/plugins/controls/src/actionscript ../flash/lib/common/src/actionscript ../flash/core/src/actionscript-builtin, using manifest manifest.xml
[exec] Loading configuration file C:\Development\flexsdk\frameworks\flex-config.xml
[exec] C:\flowplayer\flash-build\build\flowplayer.swc is up-to-date and does not have to be rebuilt.

plugins:
[echo] plugin buildfiles securestreaming/build.xml

build:
[echo] ++ flowplayer.securestreaming.swf +++
[echo]

prepare:
[unzip] Expanding: c:\flowplayer\flash-build\build\flowplayer.swc into c:\flowplayer\flash\plugins\securestreaming\build

compile:
[echo] compiling with lib/corelib
[echo] compiling with -define+=CONFIG::FLASH_10_1,'true'
[exec] Loading configuration file C:\Development\flexsdk\frameworks\flex-config.xml
[exec] C:\flowplayer\flash\plugins\securestreaming\src\actionscript\org\flowplayer\securestreaming\SecureStreaming.as(95): col: 76 Error: Access of

undefined property secondaryDomains.
[exec]
[exec] var domain:String = DomainUtil.parseDomain(url, true, (CONFIG::secondaryDomains).split(" "));
[exec] ^
[exec]
[exec] C:\flowplayer\flash\plugins\securestreaming\src\actionscript\org\flowplayer\securestreaming\SecureStreaming.as(95): col: 76 Error: Access of

undefined property secondaryDomains.
[exec]
[exec] var domain:String = DomainUtil.parseDomain(url, true, (CONFIG::secondaryDomains).split(" "));
[exec] ^
[exec]

BUILD FAILED
c:\flowplayer\flash-build\build.xml:374: The followingerror occurred while executing this line:
c:\flowplayer\flash-build\build.xml:397: The followingerror occurred while executing this line:
c:\flowplayer\flash-build\plugin-build.xml:223: The following error occurred while executing this line:
c:\flowplayer\flash-build\plugin-build.xml:31: The following error occurred while executing this line:
c:\flowplayer\flash-build\plugin-build.xml:214: The following error occurred while executing this line:
c:\flowplayer\flash-build\plugin-build.xml:86: exec returned: 2

Total time: 7 seconds

@pqrosa
Copy link

pqrosa commented May 15, 2014

That error was only happening on Windows. Today I set up a Mac development environment and was able to comiple (without even adding the single quotes).

@abc1225
Copy link

abc1225 commented Jul 7, 2014

i compiled it successed on win7 without adding the single quotes

@davidchalkywhite
Copy link

I've got this building on Windows now, but I have no idea how to make the build output the commercial version of the swf. Anyone know how to do this?

@danrossi
Copy link
Contributor

danrossi commented Jul 2, 2015

It's ant build-biz

@davidchalkywhite
Copy link

Thanks danrossi.

I have one final issue. When I downloaded the executables for my website I got:

flowplayer-3.2.13.min.js
flowplayer.commercial-3.2.18.swf
flowplayer.controls-3.2.16.swf

But now when I build the source I get this:

flowplayer.commercial-3.2.18.swf
flowplayer.controls-3.2.16.swf

which is fine, but for the javascript I get lots more files and none of them match the one I got on the download:

flowplayer.bitrateselect-3.2.11.min.js
flowplayer.bitrateselect.js
flowplayer.controls-3.2.11.min.js
flowplayer.controls.js
flowplayer.embed-3.2.11.min.js
flowplayer.embed.js
flowplayer.ipad-3.2.13.min.js
flowplayer.ipad.js
flowplayer.playlist-3.2.11.min.js
flowplayer.playlist.js

Any clues why there is a difference?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants