You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Can"t build Flowplayer on fresh checkout Created Oct 29, 2009

This thread is solved

Views: 2599     Replies: 7     Last reply Aug 5, 2011  
You must login first before you can use this feature

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Can"t build Flowplayer on fresh checkout

Posted: Oct 29, 2009

Hi,

I'm sorry if this has been covered before, but I couldn't find my exact error message when I searched for it. I'm trying to build Flowplayer from source. (I don't know anything about Flash, but I'm a pretty seasoned open source developer.) I'm following the instructions here:http://flowplayer.org/documentation/developer/development-environment.html. When I try to run ant to build flowplayer.core, I get the following error:


	Buildfile: build.xml

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

	build-lib:

	prepare:
	    [mkdir] Created dir: /home/jj/Work/247fps/git/flowplayer/flowplayer.core/build/example
	    [mkdir] Created dir: /home/jj/Work/247fps/git/flowplayer/flowplayer.core/dist

	compile-lib:
	     [exec] Loading configuration file /usr/local/flex_sdk_3.4/frameworks/flex-config.xml
	     [exec] Adobe Compc (Flex Component Compiler)
	     [exec] Version 3.4.0 build 9271
	     [exec] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
	     [exec] 
	     [exec] command line: Error: unable to open '../controls/src/actionscript'
	     [exec] 
	     [exec] Use 'compc -help' for information about using the command line.

	BUILD FAILED
	/home/jj/Work/247fps/git/flowplayer/flowplayer.core/build.xml:181: The following error occurred while executing this line:
	/home/jj/Work/247fps/git/flowplayer/flowplayer.core/build.xml:187: exec returned: 1

	Total time: 1 second

I think the problem is that we haven't checked out flowplayer.controls yet. The instructions didn't say to do that yet.

Continuing on with the instructions, I tried to build flowplayer.controls, and I ended up with:


	Buildfile: build.xml

	build:
	     [echo] ++ flowplayer.controls.swf +++
	     [echo] 			
	     [echo] checking if flowplayer.controls.swf is uptodate
	     [echo] main up-to-date: ${uptodate.main}

	prepare:
	    [mkdir] Created dir: /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/example
	    [mkdir] Created dir: /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/build
	    [mkdir] Created dir: /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/dist
	     [copy] Copying 1 file to /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/build
	    [unzip] Expanding: /home/jj/Work/247fps/git/flowplayer/flowplayer.devkit/flowplayer.swc into /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/build

	compile:
	     [echo] compiling with  src/flash/default
	     [echo] compiling with  -define=CONFIG::skin,'true'
	     [exec] Loading configuration file /usr/local/flex_sdk_3.4/frameworks/flex-config.xml
	     [exec] /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/src/actionscript/org/flowplayer/controls/ControlsAutoHide.as(189): col: 26 Error: Call to a possibly undefined method dispatchBeforeEvent through a reference with static type org.flowplayer.model:PluginModel.
	     [exec] 
	     [exec]             if (! _model.dispatchBeforeEvent(PluginEventType.PLUGIN_EVENT, "onBeforeHidden")) {
	     [exec]                          ^
	     [exec] 
	     [exec] /home/jj/Work/247fps/git/flowplayer/flowplayer.controls/src/actionscript/org/flowplayer/controls/ControlsAutoHide.as(223): col: 26 Error: Call to a possibly undefined method dispatchBeforeEvent through a reference with static type org.flowplayer.model:PluginModel.
	     [exec] 
	     [exec]             if (! _model.dispatchBeforeEvent(PluginEventType.PLUGIN_EVENT, "onBeforeShowed")) {
	     [exec]                          ^
	     [exec] 

	BUILD FAILED
	/home/jj/Work/247fps/git/flowplayer/flowplayer.devkit/plugin-build.xml:220: The following error occurred while executing this line:
	/home/jj/Work/247fps/git/flowplayer/flowplayer.devkit/plugin-build.xml:29: The following error occurred while executing this line:
	/home/jj/Work/247fps/git/flowplayer/flowplayer.devkit/plugin-build.xml:211: The following error occurred while executing this line:
	/home/jj/Work/247fps/git/flowplayer/flowplayer.devkit/plugin-build.xml:95: exec returned: 2

	Total time: 8 seconds

That one looks tougher!

Here's what my environment looks like:

$ uname -a
Linux jjinux 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux
$ ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
$ javac -version
javac 1.6.0_16
$ mxmlc -version
Version 3.4.0 build 9271

I have fresh svn checkouts of all the Flowplayer stuff.

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

I got it to compile, but some stuff needs to be updated

Posted: Oct 30, 2009

Reply to: Can"t build Flowplayer on fresh checkout, from jjinux
Here's what I did to get things to compile:

  • Checkout everything before building anything.
  • mv flowplayer.controls controls. Either the tutorial or the default build.property files should be updated because they're out of sync.
  • svn checkouthttp://flowplayer-plugins.googlecode.com/svn/flash/content/trunk/ content
  • In flowplayer.core/build.properties, stripped plugin-classes of plugins I don't have yet. It's already set with a bunch of stuff that the tutorial doesn't tell you to download. Those things should probably be commented out by default, or the tutorial should tell you to download them.

Doing the above, I can now compile flowplayer.core, and building controls now works too.

janwari

Posts: 5

Registered:
Oct 14, 2009

Still can"t build

Posted: Nov 2, 2009

Reply to: I got it to compile, but some stuff needs to be updated, from jjinux
Even after following the above instructions when I try to
compile the skin into the controlbar the build fails. Is the issue with the "controls" plugin in the svn repo or are there other additional steps that needs to be done to get the build working?


build:
     [echo] ++ newflowcontrols.swf +++
     [echo]
     [echo] checking if newflowcontrols.swf is uptodate
     [echo] main up-to-date: ${uptodate.main}

prepare:
    [unzip] Expanding: /var/www/flowcustomskin/flowplayer.devkit/flowplayer.swc into /var/www/flowcustomskin/flowplayer.controls/build

compile:
     [echo] compiling with  src/flash/newflowcontrols
     [echo] compiling with  -define=CONFIG::skin,'true'
     [exec] Loading configuration file /var/www/flowcustomskin/flex_sdk_3/frameworks/flex-config.xml
     [exec] /var/www/flowcustomskin/flowplayer.controls/src/actionscript/org/flowplayer/controls/ControlsAutoHide.as(189): col: 26 Error: Call to a possibly undefined method dispatchBeforeEvent through a reference with static type org.flowplayer.model:PluginModel.
     [exec]
     [exec]             if (! _model.dispatchBeforeEvent(PluginEventType.PLUGIN_EVENT, "onBeforeHidden")) {
     [exec]                          ^
     [exec]
     [exec] /var/www/flowcustomskin/flowplayer.controls/src/actionscript/org/flowplayer/controls/ControlsAutoHide.as(223): col: 26 Error: Call to a possibly undefined method dispatchBeforeEvent through a reference with static type org.flowplayer.model:PluginModel.
     [exec]
     [exec]             if (! _model.dispatchBeforeEvent(PluginEventType.PLUGIN_EVENT, "onBeforeShowed")) {
     [exec]                          ^
     [exec]

BUILD FAILED
/var/www/flowcustomskin/flowplayer.devkit/plugin-build.xml:176: The following error occurred while executing this line:
/var/www/flowcustomskin/flowplayer.devkit/plugin-build.xml:29: The following error occurred while executing this line:
/var/www/flowcustomskin/flowplayer.devkit/plugin-build.xml:167: The following error occurred while executing this line:
/var/www/flowcustomskin/flowplayer.devkit/plugin-build.xml:89: exec returned: 2

Total time: 25 seconds

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Wrong JavaScript file

Posted: Oct 30, 2009

Reply to: Can"t build Flowplayer on fresh checkout, from jjinux
For some reason, flowplayer.core/build/example-free/index.html refers to flowplayer-3.1.4.min.js even though only flowplayer-3.1.1.min.js is present.

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Missing SWFs

Posted: Oct 30, 2009

Reply to: Can"t build Flowplayer on fresh checkout, from jjinux
Also, from within flowplayer.core/build/example-free, I had to "cp ../*.swf ." to make things work.

By the way, on operating systems that have Python pre-installed like OS X and Linux, you can run "python -m SimpleHTTPServer" from within
flowplayer.core/build/example-free to get a quick web server to test.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» Missing SWFs

Posted: Nov 1, 2009

Reply to: Missing SWFs, from jjinux
Thanks for sharing all this info. I've now added flowplayer-3.1.4.min.js to the SVN repository as it was missing. I've also committed a fixed build.properties file that does not refer to all the plugins in the plugin.classes property.

If you want to build the latest 3.1.5 version it's tagged using flow_3_1_5 tag:http://code.google.com/p/flowplayer-core/source/browse/flowplayer/#flowplayer/tags/flow_3_1_5
The plugins are tagged using ver_3_1_5 tag:http://code.google.com/p/flowplayer-plugins/source/browse/#svn/flash/controls/tags/ver_3_1_5

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Thanks!

Posted: Nov 18, 2009

Reply to: » Missing SWFs, from Anssi
Thanks for the update!