As enthusiast as i get with projects from this 'greatness' i started
testing if this would run on ubuntu feisty (thats 7.04 beta version).
All works well, meaning the ruby, gems and asproject install. Even the
'gem update asproject' works at ones, but not the test, ctreating a
testproject.
The guides say you do 'asproject NameOfProjectMap' but there ubuntu
terminal is saying 'bash: asproject: command not found'.
As curious as i get, how comes ? and what can i do to get it as smooth
on linux as it will be on windows or osx ?
Any guidelines or suggestions ?
Thanks in advance,
Folkert
Now i can create a new project, and the files for it are created
corresponding what's expected.
Then in the 'getting started' there is this following line
To test your installation, using a terminal, enter the following
commands:
asproject SomeProject (went well and all correct )
then next step is:
cd SomeProject/project
rake
Now here is a problem with rake, it says
"There was a problem finding a target for run, it doesn't appear as if
this task was expected to run on your system...
/home/folkert/rubygems-0.9.0/FeistyASProject/project/rakefile.rb:21:in
'new' "
that line in that file is :
21: AsProject::FlashPlayer.new(:run) do |t|
22: t.version = 8
23: t.swf = BIN_DIR + '/FeistyASProject.swf'
24: end
Sorry for the delayed response, I didn't receive an email from this
list for some reason!
I just want to say this is so awesome that you got this thing even
sort-of working on linux!
The problem you're running into is actually because I haven't
identified a linux flash player target in the FlashPlayer rake task.
If you don't mind getting your hands dirty a little bit in the ruby
code, I can give you some instruction on what to try...
1) Figure out where ruby gems installs gems on your system, and find
the asproject gem in there.
2) Using a text editor, open up [asproject gem]/lib/tasks/
flash_player.rb
3) At line 39, paste the following where it says 'nill':
"http://download.macromedia.com/pub/flashplayer/updaters/9/
flash_player_9_linux_dev.tar.gz"
4) At line 40, paste the following where it says 'nill':
"standalone/debugger/flashplayer"
5) Repeat steps 3 and 4 on lines 47 and 48
You will likely have to do the same thing for the mtasc.rb and
swfmill.rb files after you find the target url and extracted file
paths for these tools. The extracted file path is a relative path to
the executable that is found within the downloaded file.
I just pulled down adobe's linux package from the above url and for
some reason, the flashplayer executable was inside of a second tar.gz
file. If you browse to ~/.asproject/downloads/flash_player_9/
standalone/debugger and find a tar.gz in there, please manually
extract the flashplayer binary into that location. I'm not sure why
they did this, but I'm definitely not automatically extracting
multiple times....
I hope this works!
Luke Bayes
www.asserttrue.com
Should be handy if we could run through this all trhough a messenger
like skype or sorts..
can find me on skype as 'nederflash' same for googletalk or aim, so if
you have time ;)
Folkert
Folkert
folkert@folkert-laptop:~/testing28/project$ rake test --trace
(in /home/folkert/testing28/project)
** Invoke test (first_time)
** Invoke asunit25 (first_time)
** Invoke lib/asunit25 (first_time, not_needed)
** Execute asunit25
** Invoke compile_tests (first_time)
** Invoke compile_skin (first_time)
** Invoke swfmill-0.2.12 (first_time)
** Invoke /home/folkert/.asproject/downloads/swfmill-0.2.12/usr/local/bin/swfmill (first_time)
** Invoke /home/folkert/.asproject/downloads/swfmill-0.2.12/swfmill.tar.gz (first_time, not_needed)
** Execute /home/folkert/.asproject/downloads/swfmill-0.2.12/usr/local/bin/swfmill
rake aborted!
uninitialized constant AsProject::RemoteFileLoader::Minitar
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1981:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/tasks/remote_file_loader.rb:73:in `unpack_targz'
/usr/lib/ruby/gems/1.8/gems/asproject- 0.1.118/lib/tasks/remote_file_loader.rb:50:in `unpack_downloaded_file'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/tasks/remote_file_task.rb:102:in `define'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:376:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `send'
/usr/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:375:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:368:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:376:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:375:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:368:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:376:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `send'
/usr/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:375:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:368:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:376:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1021:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:375:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:368:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:1935:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2 /bin/rake:7
/usr/bin/rake:18:in `load'
/usr/bin/rake:18
The problem that Folkert is describing is the call to the mxmlc
compiler as the there are two errors
Firstly with the -default-background-color #FFFFFF parameter not being
accepted
and also the path to build the swf is missing a slash so bin/
SomeProject3Application.swf is given instead of
bin/SomeProject3/Application.swf when these are changed the file is
compiled correctly
On Apr 27, 1:39 am, "Luke Bayes" <lba...@patternpark.com> wrote:
> I should have some time to look into it within the next week or two, thanks!
>
> Luke
>
Thanks all,
Folkert
Luke Bayes wrote:
> UBUNTU FEISTY!!!
>
> I'll need to get that binary from you Folkert so that I can post it for
> others to pull down!
>
>
> Thanks so much folks.
>
>
>
> Luke Bayes
> AsProject
>
>
> On 5/2/07, *Luci3n* <clark...@gmx.net <mailto:clark...@gmx.net>> wrote:
>
>
> Hi Luke and Folkert
>
> The problem that Folkert is describing is the call to the mxmlc
> compiler as the there are two errors
>
> Firstly with the -default-background-color #FFFFFF parameter not being
> accepted
> and also the path to build the swf is missing a slash so bin/
> SomeProject3Application.swf is given instead of
> bin/SomeProject3/Application.swf when these are changed the file is
> compiled correctly
>
>
> On Apr 27, 1:39 am, "Luke Bayes" <lba...@patternpark.com
> <mailto:lba...@patternpark.com>> wrote:
> > I should have some time to look into it within the next week or
> two, thanks!
> >
> > Luke
> >
> > On 4/26/07, Folkert Hielema <nederfl...@gmail.com
> <mailto:nederfl...@gmail.com>> wrote:
> >
> >
> >
> > > installed the minitar also updated gems and rake but keeps
> getting rake
> > > aborted:
> >
> > > uninitialized constant AsProject::RemoteFileLoader::Minitar
> > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in
> `const_missing'
> >
> > > thanks,
> >
> > > Folkert
> >
> > > On 4/27/07, Luke Bayes <lba...@patternpark.com
I have been able to remove the problem areas and compile the flash
file but I still have some errors when it comes to a clean compile
clark@homer:~/work/asproject/SomeProject3/project$ rake --trace
(in /home/clark/work/asproject/SomeProject3/project)
** Invoke default (first_time)
** Invoke run (first_time)
** Invoke compile_main (first_time)
** Invoke bin/SomeProject3Application.swf (first_time, not_needed)
** Invoke assets/img/skins/DefaultSkin.as (first_time, not_needed)
** Invoke ./assets/img/skins/DefaultSkin.as (first_time, not_needed)
** Invoke ./src/SomeProject3.as (first_time, not_needed)
** Invoke ./src/SomeProject3Runner.as (first_time, not_needed)
** Invoke ./lib/asunit3/asunit/util/Iterator.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/util/ArrayIterator.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/util/Properties.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/AsynchronousTestCase.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/framework/
AsynchronousTestCaseExample.as (first_time, not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestSuite.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestCaseExample.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestResult.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestFailure.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/Test.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestListener.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/TestCase.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/framework/Assert.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/errors/AssertionFailedError.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/errors/UnimplementedFeatureError.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/errors/AbstractMemberCalledError.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/errors/InstanceNotFoundError.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/errors/ClassNotFoundError.as
(first_time, not_needed)
** Invoke ./lib/asunit3/asunit/textui/TestRunner.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/textui/FlexRunner.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/textui/ResultPrinter.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/textui/FlexTestRunner.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/runner/TestSuiteLoader.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/runner/Version.as (first_time,
not_needed)
** Invoke ./lib/asunit3/asunit/runner/BaseTestRunner.as (first_time,
not_needed)
** Execute compile_main
** Invoke flash_player-9 (first_time)
** Invoke /home/clark/.asproject/downloads/flash_player-9/standalone/
debugger/flashplayer (first_time)
** Invoke /home/clark/.asproject/downloads/flash_player-9/
flash_player_9_linux_dev.tar.gz (first_time, not_needed)
** Execute /home/clark/.asproject/downloads/flash_player-9/standalone/
debugger/flashplayer
** Execute flash_player-9
** Invoke bin/SomeProject3Application.swf (not_needed)
** Execute run
rake aborted!
Not sure where flash_player_home should be on systems other than Win/
Mac - please let us know so that we can update this script...
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/path_finder.rb:
348:in `flash_player_home'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/path_finder.rb:
314:in `flash_player_log'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/path_finder.rb:26:in
`flash_player_log'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/tasks/flash_log.rb:
12:in `get_file'
/usr/lib/ruby/gems/1.8/gems/asproject-0.1.118/lib/tasks/
flash_player.rb:64:in `define'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
I have started to look at the as2 template now and am having problems
with mtasc unpacking
On May 3, 3:29 am, Folkert Hielema <nederfl...@gmail.com> wrote:
> Luke: see your mail ;)
> Luci3n: Can you elaborate a bit on where to change that ?
>
> Thanks all,
>
> Folkert
>
> Luke Bayes wrote:
> > UBUNTU FEISTY!!!
>
> > I'll need to get that binary from you Folkert so that I can post it for
> > others to pull down!
>
> > Thanks so much folks.
>
> > Luke Bayes
> > AsProject
>
great project can't wait to get it working properly.
Q: What does the working line in your rakefile look like?
t.default_background_color = 0xFFFFFF
Q: What does the working line 116 in your mxmlc.rb file look like?
def option_list
result = @options.dup
result << "-accessible" if accessible
result << "-debug" if debug
result << "-optimize" if optimize
result << "-warnings" if warnings
result << "-use-network" if use_network
result << "-show-actionscript-warnings" if
show_actionscript_warnings
result << "-locale" << locale if locale
result << "-default-frame-rate" << default_frame_rate if
default_frame_rate
result << "-default-background-color" <<
default_background_color if default_background_color
result << "-default-script-limits" << default_script_limits if
default_script_limits
result << "-default-size" << default_size if default_size
result << "-load-externs" << load_externs if load_externs
result << "-link-report" << link_report if link_report
result << "-output" << clean_path(output) if output
result << "-theme " + theme.join(" -theme ") if theme.size > 0
result << "-frame " + frames.join(" -frame ") if frames.size > 0
result << "-rsl=" + runtime_shared_libraries.join(" -rsl=") if
runtime_shared_libraries.size > 0
result << "-el+=" + external_library_path.join(" -el+=") if
external_library_path.size > 0
result << "-l=" + library_path.join(" -l=") if library_path.size
> 0
result << "-sp=" + source_path.join(" -sp=") if source_path.size
> 0
result << "-incremental" if incremental
result << clean_path(input)
return result
end
I hope this is what you wanted I have modified it to insert the
correct paths and mxmlc path
I have set the paths to the flash player correctly but it still calls
the error from pathfinder.rb is it neccessary to create a class in
this file for linux users as osx, windows, vista and cygwin all have
user classes??
When I manually changed the lines
return "/home/clark/.asproject/downloads/flash_player-9/standalone/
debugger/flashplayer"
#raise UsageError.new('Not sure where flash_player_home should be on
systems other than Win/Mac - please let us know so that we can update
this script...')
The erroir msg is
File exists - /home/clark/.asproject/downloads/flash_player-9/
standalone/debugger/flashplayer
When changed to
return "/home/clark/.asproject/downloads/flash_player-9/standalone/
debugger/"
The new error message is
Warning, was unable to update the FlashPlayerTrust file
Thanks
Clark
> Luke Bayes wrote:
> Hey Clark,
> Thanks so much for working through this.
> About the background color fix:
>
> What does the working line in your rakefile look like?
> What does the working line 116 in your mxmlc.rb file look like?
>
> For now, to edit those urls for linux, you need to open flash_player.rb and edit lines 38 + 39 (for as2) and
> 45 + 46 (for as3).
>
> You *should* be able to get the linux player binary and place it into:
>
> ~/.asproject/downloads/flash_player-9/[filename]
>
> and then set:
>
> @unix_extracted_file = [filename]
>
> Check out what it looks like for win and osx in that flash_player.rb file. This is essentially the extracted, relative
> path to the player executable.
>
> The good news is that I'm actively working on the next build that will externalize *all* of this configuration crap
> so that we can host simple lookup config files remotely and folks won't have to dig into the gem for this stuff!
>
> Thanks!
>
> Luke Bayes
> AsProject
def flash_player_home
raise UsageError.new('Not sure where flash_player_home should be
on systems other than Win/Mac - please let us know so that we can
update this script...')
end
As for the Flash Player Trust I cannot find the folder on my system.
I looked at adobe and they do not state these files exist for linux
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001613.html
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=security2_117_46.html
There is a /home/clark/.macromedia/ folder but its very different and
has lots of *.sol files one for each url and also one for each swf
used if you are interested and can send you a couple along with the
structure.
On May 5, 3:46 am, "Luke Bayes" <lba...@patternpark.com> wrote:
> Hey Clark,
>
> If you're getting the "Warning unable to update the Flash Player Trust
> File", you should actually be running.... It doesn't sound like it worked,
> but that error should actually get caught, output and ignored. Maybe
> something else is actually throwing if you're not compiling.
>
> As far as creating a unix user, the base User class should fall back to
> unix-y behaviors.
>
> Rather than editing the path_finder class (which will impact all
> remote_file_tasks), you might want to update the @unix_extracted_file values
> in the flash_player.rb file.
>
> that line should look like:
> @unix_extracted_file = 'standalone/debugger/flashplayer'
>
> For both the version == 8 and version == 9 blocks.
>
> This would be pretty exciting if we can get it working in *nix!
>
> Thanks,
>
> Luke
>
> ...
>
> read more »
> > > /usr/lib/ruby/gems/1.8/gems/rake- 0.7.3/lib/rake.rb:392:in `call'
> > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
> > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
> > > /usr/lib/ruby/gems/1.8/gems/rake- 0.7.3/lib/rake.rb:392:in `execute'
> > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
>
> > > I have started to look at the as2 template now and am having problems
> > > with mtasc unpacking
>
> > > On May 3, 3:29 am, Folkert Hielema <nederfl...@gmail.com> wrote:
>
> > > > Luke: see your mail ;)
> > > > Luci3n: Can you elaborate a bit on where to change that ?
>
> > > > Thanks all,
>
> > > > Folkert
>
> > > > Luke Bayes wrote:
> > > > > UBUNTU FEISTY!!!
>
> > > > > I'll need to get that binary from you Folkert so that I can post it
> > for
> > > > > others to pull down!
>
> > > > > Thanks so much folks.
>
> > > > > Luke Bayes
> > > > > AsProject
>
> > > > > On 5/2/07, *Luci3n* <clarkjo...@gmx.net
>
> ...
>
> read more �