Ubuntu feisty

1 view
Skip to first unread message

Folkert

unread,
Apr 8, 2007, 10:22:51 AM4/8/07
to AsProjectUsers
Hello all great developers who bring asproject.

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

Simeon Bateman

unread,
Apr 8, 2007, 12:51:43 PM4/8/07
to asproje...@googlegroups.com
Well my guess would be that the ruby gems directory is not in your users PATH variable.  Have you installed other gems successfully?

For instructions on getting the gems setup on ubunto you can take a look at the ubunto rails instructions.  Ruby on Rails framework installs as a gem so the install instrucions for it work the same as for you.

http://wiki.rubyonrails.com/rails/pages/RailsOnUbuntu

Post back if this doenst work out.

simeon

Folkert

unread,
Apr 8, 2007, 1:55:11 PM4/8/07
to AsProjectUsers
Thanks that was working as expected. I have to admit i have no prior
ruby/rails/gems expiriences so bare with me please ;)

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


Luke Bayes

unread,
Apr 10, 2007, 7:51:16 PM4/10/07
to AsProjectUsers
Hey Folkert,

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

Folkert Hielema

unread,
Apr 10, 2007, 7:56:41 PM4/10/07
to asproje...@googlegroups.com
Thanks Luke,

I will the get hands dirty on this with this instructions printed out next to it. and then ofcourse i get back with either news or more questions :D

Thanks really appreciated,

Folkert Hielema

Folkert

unread,
Apr 11, 2007, 7:40:43 AM4/11/07
to AsProjectUsers
Getting a step closer now. Only what to do with the swfmill and the
matsc as they need to be compiled with ubuntu.
If i for example check the .asproject/swfmill-0.2.12/swfmill-0.2.12
folder i see the makefile, the configure and that sort, and i see a
src folder with a swfmill.ccp (guessing without knowlegde enough) that
this is not the file to point to.
So back to here, and hoping you can shed a light on this. Do i need to
compile swfmill and mtasc first or should the gem do this for me ? In
last case, where to point the swfmill.rb to ?

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

Luke Bayes

unread,
Apr 12, 2007, 6:40:10 PM4/12/07
to asproje...@googlegroups.com
Hey Folkert,

Sorry I don't have a lot of time these days, as I'm pushing for another release of AsProject this week.

One thing that will probably work for you is this:

a) Compile swfmill and mtasc for your system.
b) gzip the compiled binaries and put them somewhere on your system
c) Add file uris and extracted paths to the rake tasks as before
d) See if it works.

IF you get this working locally, I'll be happy to host the compiled files on our google code project and we can publish the urls and extracted paths - I think this would be a boon for *nix users everywhere!

Let me know,


Luke Bayes
AsProject

Folkert

unread,
Apr 26, 2007, 2:07:49 PM4/26/07
to AsProjectUsers
allmost allmost only the flashplayer left to tackle.
Cannot get passed that. Tried with the standalone version unpacket but
it gives no show, somewhere i should need to set a path on the system
to flash_player_home, then we can get passed the player also and have
a working ubuntu pack WOEI

Folkert

Luke Bayes

unread,
Apr 26, 2007, 2:33:13 PM4/26/07
to asproje...@googlegroups.com
Wow!

Hey Folkert,

If you check out the flash_player.rb file in asproject-gem-install/lib/tasks/, you should see some member variables called "unix_url" and "unix_path", if you extract the Flash Player into ~/.asproject/downloads/flash_player-9/[extracted_path], and make sure that value is the same in your .rb file, it should stop trying to download it and just use what is found.

Good luck!


lb.

Folkert Hielema

unread,
Apr 26, 2007, 5:27:20 PM4/26/07
to asproje...@googlegroups.com
did so ;) packet the /usr/lib/flashplayer-nonfree folder and put that on localhost/sources. Now my project is created AND rake works. Then when i want to do 'rake test' from the projects/project folder i get a error on asunit something with the Mini.targz
I did the log as attachment with this mail.

Greetz and thanks a lot for all your inputs

Folkert
rake_test.log.txt

Luke Bayes

unread,
Apr 26, 2007, 6:07:13 PM4/26/07
to asproje...@googlegroups.com
It looks like the gem dependencies might have gotten messed up, can you do:

sudo gem install archive-tar-minitar

Then try again...


Thanks,

Luke Bayes

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



Folkert Hielema

unread,
Apr 26, 2007, 6:36:03 PM4/26/07
to asproje...@googlegroups.com
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

Luke Bayes

unread,
Apr 26, 2007, 7:39:25 PM4/26/07
to asproje...@googlegroups.com
I should have some time to look into it within the next week or two, thanks!


Luke


On 4/26/07, Folkert Hielema < neder...@gmail.com> wrote:

Luci3n

unread,
May 2, 2007, 7:43:45 PM5/2/07
to AsProjectUsers
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> wrote:
> I should have some time to look into it within the next week or two, thanks!
>
> Luke
>

Luke Bayes

unread,
May 2, 2007, 8:09:19 PM5/2/07
to asproje...@googlegroups.com
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

Folkert Hielema

unread,
May 2, 2007, 9:29:57 PM5/2/07
to asproje...@googlegroups.com
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* <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

Luci3n

unread,
May 3, 2007, 4:27:51 AM5/3/07
to AsProjectUsers
Folkert: I relalised after posting that you are using the as2 template
and I was using the as3 template for the mxmlc compiler.

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
>

Luci3n

unread,
May 4, 2007, 9:09:14 PM5/4/07
to AsProjectUsers
Hi Luke,

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

Luke Bayes

unread,
May 4, 2007, 9:46:42 PM5/4/07
to asproje...@googlegroups.com
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

Luci3n

unread,
May 5, 2007, 12:48:52 PM5/5/07
to AsProjectUsers
Luke you are right linux users do fall back to the base user but the
flash_player_home is not defined and it gives the error

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 »

Luke Bayes

unread,
May 6, 2007, 3:54:39 PM5/6/07
to asproje...@googlegroups.com
I'm sorry Clark, you're absolutely correct!

I belive that Flash Player Home would be that .macromedia folder you described and the value would go into the base User class in path_finder.as. Sorry I was confused....

As far as the value for that variable, it should be something like:

return File.join(home, '.macromedia')

There is probably some folder inside of the macromedia folder that should be added, but I'm not sure what that folder looks like.

As far as Flash Player Trust files go, did they release a 'debug' player for linux? Or is it just the regular player? I suspect the linux folks aren't getting the full monty and therefore may not be able to collect tract output or edit the trust files... We may need to modify some of the scripts so that they at least don't throw when these attempts fail on linux.

Good luck,

Luke


> > > /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 �





Reply all
Reply to author
Forward
0 new messages