Re: [FreeJ] Blank screen when trying to capture from webcam

dyne.org open discussions
Author: Pablo Baena
Date:  
To: Luca Bigliardi
CC: freej
Subject: Re: [FreeJ] Blank screen when trying to capture from webcam
I finally was able to make javascript to behave correctly by
uninstalling libmozjs-dev and use freej's embedded javascript library.
I had a problem linking, so I changed this line on
freej/lib/javascript/config/Linux_All.mk:

MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS)

to this:

MKSHLIB = $(CC) -shared $(XMKSHLIBOPTS)

And it finally works! \o/

freej segfaults later though, probably because of a problem related to
the freej console, because when I redirected output to some file, it
works.

On Tue, Nov 10, 2009 at 2:17 PM, Pablo Baena <pbaena@???> wrote:
> Using libmozjs-dev I could build freej, but the javascript interpreter
> seems to have some problems. It complains about: encoder.stream_host
> not being a function, register_encoded not being defined, among other
> things.
>
> Do you know why this could be? TIA
>
> On Tue, Nov 10, 2009 at 10:31 AM, Luca Bigliardi <shammash@???> wrote:
>> On Tue, Nov 10, 2009 at 10:04 AM, Pablo Baena wrote:
>>
>>> Hi, I tried building the debian package on ubuntu, but there's a
>>> dependency I can't satisfy because libmozjs-dev conflicts with
>>> xulrunner-dev on ubuntu.
>>>
>>> So I tried compiling from source, but I got the same dependency problems.
>>
>> Which version of ubuntu? You should have libmozjs-dev >= 1.9 , which means
>> the mozjs library shipped by xulrunner deb-src and not by spidermonkey
>> deb-src. If that's the case probably there are some problems in your
>> configuration..
>>
>> If you've tried building from git source and you have a (d|r)ecent version
>> of libmozjs (>= 1.9) then you can leave without xulrunner-dev.
>>
>>
>> Luca
>>
>> --
>> Beware of programmers who carry screwdrivers.
>>                        -- Leonard Brandwein
>>
>> http://shammash.homelinux.org/ - http://www.artha.org/ - http://www.yue.it/
>>
>
>
>
> --
> "Not possessing the gift of reflection, a dog does not know that he
> does not know, and does not understand that he understands nothing;
> we, on the other hand, are aware of both. If we behave otherwise, it
> is from stupidity, or else from self-deception, to preserve our peace
> of mind."
>




--
"Not possessing the gift of reflection, a dog does not know that he
does not know, and does not understand that he understands nothing;
we, on the other hand, are aware of both. If we behave otherwise, it
is from stupidity, or else from self-deception, to preserve our peace
of mind."