>From here http://www.mozilla.org/projects/tamarin/:
It said it is under 'mozilla/js/tamarin/'
But when I go to here, I can't find the directory 'tamarin' under js?
ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/
Thanks for any help.
Tomi
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
Is there a tar ball where I can download?
And is it possible to compile under linux? I can only find instruction
to compile under Windows/Apple.
And at the current stage of the project, can I use tamarin to execute
a file with ActionScript?
it is , just do a CVS checkout
C:\mozilla_src>cvs -d :pserver:anonymous:anonymous@cvs-
mirror.mozilla.org:/cvsroot co mozilla/js/tamarin
and if you don't want the CVS stuff do
C:\mozilla_src>cvs -d :pserver:anonymous:anonymous@cvs-
mirror.mozilla.org:/cvsroot export -r HEAD mozilla/js/tamarin
cheers,
zwetan
> And at the current stage of the project, can I use tamarin to execute
> a file with ActionScript?
>
No, it lacks the compiler. (Or at least that was the case when the
initiali announcement was made.)
Nickolay
>
>
>
> On 2/1/07, Tomi Maila <Tomi....@helsinki.fi> wrote:
> > http://lxr.mozilla.org/mozilla/source/js/tamarin/
> >
> > Tomi
> >
> > ying lcs wrote:
> > > Can you please tell me where can I find the source of 'tamarin'?
> > >
> > >> From here http://www.mozilla.org/projects/tamarin/:
> > > It said it is under 'mozilla/js/tamarin/'
> > >
> > > But when I go to here, I can't find the directory 'tamarin' under js?
> > > ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/
> > >
> > > Thanks for any help.
nope afaik, but what's wrong using CVS ?
> And is it possible to compile under linux? I can only find instruction
> to compile under Windows/Apple.
see
http://lxr.mozilla.org/mozilla/source/js/tamarin/platform/unix/Makefile
> And at the current stage of the project, can I use tamarin to execute
> a file with ActionScript?
>
"execute a file", can you be more precise ?
you can compile ES4 code to bytecode and then interpret it with the VM
(avmplus)
fiddling a little with the sources you can even compile the VM and the
bytecode to execute
in your own executable and make little command line tools ;)
but if you're talking about File I/O acces , this is pretty limited
for now,
you can read/write ASCII file in the same path as the executable but
no more than that.
cheers,
zwetan
Thanks . I did try to make under unix, I get the following link error:
Can you please tell where/how to link in inflateEnd?
$ make
=== linking: avmplus ===
../../shell/ByteArrayGlue.o: In function
`avmshell::ByteArrayObject::zlib_compress()':../../shell/ByteArrayGlue.cpp:479:
undefined reference to `compress2'
../../shell/ByteArrayGlue.o: In function
`PlatformZlibStream':../../shell/genericzlib.h:112: undefined
reference to `inflateInit_'
../../shell/ByteArrayGlue.o: In function
`avmshell::PlatformZlibStream::InflateWithStatus()':../../shell/genericzlib.h:155:
undefined reference to `inflate'
../../shell/ByteArrayGlue.o: In function
`~PlatformZlibStream':../../shell/genericzlib.h:120: undefined
reference to `inflateEnd'
collect2: ld returned 1 exit status
make: *** [avmplus] Error 1
did you also imported the zlib from CVS ?
>
> $ make
> === linking: avmplus ===
> ../../shell/ByteArrayGlue.o: In function
> `avmshell::ByteArrayObject::zlib_compress()':../../shell/ByteArrayGlue.cpp:479:
> undefined reference to `compress2'
> ../../shell/ByteArrayGlue.o: In function
> `PlatformZlibStream':../../shell/genericzlib.h:112: undefined
> reference to `inflateInit_'
> ../../shell/ByteArrayGlue.o: In function
> `avmshell::PlatformZlibStream::InflateWithStatus()':../../shell/genericzlib.h:155:
> undefined reference to `inflate'
> ../../shell/ByteArrayGlue.o: In function
> `~PlatformZlibStream':../../shell/genericzlib.h:120: undefined
> reference to `inflateEnd'
> collect2: ld returned 1 exit status
> make: *** [avmplus] Error 1
>
if even with the zlib imported you still getting errors
try this https://bugzilla.mozilla.org/show_bug.cgi?id=360195
but more than that I can not help, I do not have a linux around
cheers,
zwetan
> On Feb 12, 6:29 pm, "ying lcs" <ying...@gmail.com> wrote:
> [...]
>>
>> Thanks . I did try to make under unix, I get the following link error:
>> Can you please tell where/how to link in inflateEnd?
>
> did you also imported the zlib from CVS ?
>
>
>
>
>>
>> $ make
>> === linking: avmplus ===
>> ../../shell/ByteArrayGlue.o: In function
>> `avmshell::ByteArrayObject::zlib_compress()':../../shell/ByteArrayGlue.cpp:479:
>> undefined reference to `compress2'
>> ../../shell/ByteArrayGlue.o: In function
>> `PlatformZlibStream':../../shell/genericzlib.h:112: undefined
>> reference to `inflateInit_'
>> ../../shell/ByteArrayGlue.o: In function
>> `avmshell::PlatformZlibStream::InflateWithStatus()':../../shell/genericzlib.h:155:
>> undefined reference to `inflate'
>> ../../shell/ByteArrayGlue.o: In function
>> `~PlatformZlibStream':../../shell/genericzlib.h:120: undefined
>> reference to `inflateEnd'
>> collect2: ld returned 1 exit status
>> make: *** [avmplus] Error 1
>>
>
I am also having the same problem. There seems to be something up with
the Makefile. Even though zlib gets built it isn't getting linked. When
I add '-lz' (using the system lib) to the LDFLAGS it links fine with _no_
symbol conflicts.
Matt
--
"You do not really understand something unless you
can explain it to your grandmother." - Albert Einstein.