Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  Announce EX11 release 2.5

joe at sics.se
Posted: Wed May 12, 2004 10:04 am Reply with quote
Guest
As promised version 2.4 of ex11 (X11 graphics for Erlang)


see http://www.sics.se/~joe/ex11/ for general info


and http://www.sics.se/~joe/ex11/download/release-2.5.tgz for the code


The latest release is release-2.5 - this is an "in between"
release. release-2.5 contains many undocumented widgets, the intention
of release-2.5 it merely to test that the initialization routines work
correctly.

If you run release-2.5 and initialization does not work can you
please mail the file startup_error_report to me.

If it works you'll know - try out the new widgets (emacs, lifts, font
selector ...)

Please run in all possible modes - ie with ssl forwarding etc.

Cheers

/Joe




Post generated using Mail2Forum (http://m2f.sourceforge.net)
mickael.remond at erlang-
Posted: Wed May 12, 2004 10:56 am Reply with quote
Guest
On Wed, 12 May 2004 12:04:19 +0200 (CEST), Joe Armstrong <joe_at_sics.se>
wrote:

> The latest release is release-2.5 - this is an "in between"
> release. release-2.5 contains many undocumented widgets, the intention
> of release-2.5 it merely to test that the initialization routines work
> correctly.
>
> If you run release-2.5 and initialization does not work can you
> please mail the file startup_error_report to me.
>
> If it works you'll know - try out the new widgets (emacs, lifts, font
> selector ...)

Hello,

I did not manage to make the previous version work (I did not dig into X11
configuration).
However, this new version is working very well for me. I just issued make
and everything worked.

This is good news for the next steps of this project.

--
Micka
vlad_dumitrescu at hotmai
Posted: Wed May 12, 2004 11:20 am Reply with quote
Guest
> However, this new version is working very well for me. I just issued make
> and everything worked.

Hi,

cool stuff! It worked for me too - with the small issue that the makefile should
detect windows/cygwin systems and not try to compile unixdom. Otherwise, no
problems!

/Vlad


Post generated using Mail2Forum (http://m2f.sourceforge.net)
bengt.kleberg at ericsson
Posted: Wed May 12, 2004 12:00 pm Reply with quote
Guest
Joe Armstrong wrote:

> As promised version 2.4 of ex11 (X11 graphics for Erlang)
>
>
> see http://www.sics.se/~joe/ex11/ for general info
>
>
> and http://www.sics.se/~joe/ex11/download/release-2.5.tgz for the code
>
>
perhaps i am overly sensitive, but why is the ''promised version 2.4''
called release-2.5.tgz :-)

on a more serious note:
is ex11 supposed to be useable on solaris (sunos 5.Cool?
while it is simple to replace CC, CFLAGS and LIBS in lib/Makefile i have
not been able to locate ''jpeglib.h''. this file is included from
lib/ex11_lib_read_jpeg.c.

on a curious note:
since there is an *hierarchy*al namespace available, why are files
called ex11_lib_<name> ?

on a i-think-this-is-related-to-Erlang-is-too-small/Publicity-needed note:
why does nobody(?) use the erlang module make?


bengt


Post generated using Mail2Forum (http://m2f.sourceforge.net)
tomas.pihl at ericsson.co
Posted: Wed May 12, 2004 12:10 pm Reply with quote
Guest
> on a more serious note:
> is ex11 supposed to be useable on solaris (sunos 5.Cool?
> while it is simple to replace CC, CFLAGS and LIBS in
> lib/Makefile i have
> not been able to locate ''jpeglib.h''. this file is included from
> lib/ex11_lib_read_jpeg.c.

Point your Makefile to /opt/pub/{include|lib}.

/topi


Post generated using Mail2Forum (http://m2f.sourceforge.net)
bengt.kleberg at ericsson
Posted: Wed May 12, 2004 12:16 pm Reply with quote
Guest
Tomas Pihl (AL/EAB) wrote:

>>is ex11 supposed to be useable on solaris (sunos 5.Cool?
>>
>>
...deleted

>>i have
>>not been able to locate ''jpeglib.h''. this file is included from
>>lib/ex11_lib_read_jpeg.c.
>>
>>
>
>Point your Makefile to /opt/pub/{include|lib}.
>
>
>
while i am unsure about the general applicability to solaris, i thank
you for this advice.


bengt


Post generated using Mail2Forum (http://m2f.sourceforge.net)
joe at sics.se
Posted: Wed May 12, 2004 12:40 pm Reply with quote
Guest
On Wed, 12 May 2004, Bengt Kleberg wrote:

> Joe Armstrong wrote:
>
> > As promised version 2.4 of ex11 (X11 graphics for Erlang)
> >
> >
> > see http://www.sics.se/~joe/ex11/ for general info
> >
> >
> > and http://www.sics.se/~joe/ex11/download/release-2.5.tgz for the code
> >
> >
> perhaps i am overly sensitive, but why is the ''promised version 2.4''
> called release-2.5.tgz :-)

Numlexia :-)

>
> on a more serious note:
> is ex11 supposed to be useable on solaris (sunos 5.Cool?

It's never been tested on Solaris - it might work - I have done
nothing with the unix-domain socket stuff - just go it working
on my linux boxes. If the domain sockets fails on Solaris delete
the entire domain sockets dioretory and try again - ex11 will then use
TCP sockets


> while it is simple to replace CC, CFLAGS and LIBS in lib/Makefile i have
> not been able to locate ''jpeglib.h''. this file is included from
> lib/ex11_lib_read_jpeg.c.
>

Ahh - the jpeg stuff is experimental and I havn't tryed this for a long
time.

> on a curious note:
> since there is an *hierarchy*al namespace available, why are files
> called ex11_lib_<name> ?
>

Something about teaching old dogs new bones ...


> on a i-think-this-is-related-to-Erlang-is-too-small/Publicity-needed note:
> why does nobody(?) use the erlang module make?
>
>
> bengt
>

/Joe



Post generated using Mail2Forum (http://m2f.sourceforge.net)
ulf.wiger at ericsson.com
Posted: Wed May 12, 2004 1:11 pm Reply with quote
Guest
I ran it on Solaris 8 with no problems.

I had to change the CFLAGS to -I/opt/pub/include
and the hard-coded erlang path in unixdom/src/Makefile,
since we don't install erlang under /usr/local/lib/.

/Uffe

> -----Original Message-----
> From: owner-erlang-questions_at_erlang.org
> [mailto:owner-erlang-questions_at_erlang.org]On Behalf Of Joe Armstrong
> Sent: den 12 maj 2004 14:40
> To: Bengt Kleberg (AL/EAB)
> Cc: erlang-questions_at_erlang.org
> Subject: Re: Announce EX11 release 2.5
>
>
> On Wed, 12 May 2004, Bengt Kleberg wrote:
>
> > Joe Armstrong wrote:
> >
> > > As promised version 2.4 of ex11 (X11 graphics for Erlang)
> > >
> > >
> > > see http://www.sics.se/~joe/ex11/ for general info
> > >
> > >
> > > and
> http://www.sics.se/~joe/ex11/download/release-2.5.tgz for the code
> > >
> > >
> > perhaps i am overly sensitive, but why is the ''promised
> version 2.4''
> > called release-2.5.tgz Smile
>
> Numlexia Smile
>
> >
> > on a more serious note:
> > is ex11 supposed to be useable on solaris (sunos 5.Cool?
>
> It's never been tested on Solaris - it might work - I have done
> nothing with the unix-domain socket stuff - just go it working
> on my linux boxes. If the domain sockets fails on Solaris delete
> the entire domain sockets dioretory and try again - ex11 will then use
> TCP sockets
>
>
> > while it is simple to replace CC, CFLAGS and LIBS in
> lib/Makefile i have
> > not been able to locate ''jpeglib.h''. this file is included from
> > lib/ex11_lib_read_jpeg.c.
> >
>
> Ahh - the jpeg stuff is experimental and I havn't tryed this
> for a long
> time.
>
> > on a curious note:
> > since there is an *hierarchy*al namespace available, why are files
> > called ex11_lib_<name> ?
> >
>
> Something about teaching old dogs new bones ...
>
>
> > on a
> i-think-this-is-related-to-Erlang-is-too-small/Publicity-needed note:
> > why does nobody(?) use the erlang module make?
> >
> >
> > bengt
> >
>
> /Joe
>


Post generated using Mail2Forum (http://m2f.sourceforge.net)
ulf.wiger at ericsson.com
Posted: Wed May 12, 2004 1:26 pm Reply with quote
Guest
It worked for me, but on my UltraSPARC 10, it feels
everything but fast. The moving frames lag behind
terribly (up to a number of seconds), and the scrolling
text is quite jumpy.

/Uffe

> -----Original Message-----
> From: owner-erlang-questions_at_erlang.org
> [mailto:owner-erlang-questions_at_erlang.org]On Behalf Of Joe Armstrong
> Sent: den 12 maj 2004 12:04
> To: erlang-questions_at_erlang.org
> Subject: Announce EX11 release 2.5
>
>
> As promised version 2.4 of ex11 (X11 graphics for Erlang)
>
>
> see http://www.sics.se/~joe/ex11/ for general info
>
>
> and http://www.sics.se/~joe/ex11/download/release-2.5.tgz
> for the code
>
>
> The latest release is release-2.5 - this is an "in between"
> release. release-2.5 contains many undocumented widgets, the intention
> of release-2.5 it merely to test that the initialization routines work
> correctly.
>
> If you run release-2.5 and initialization does not work can you
> please mail the file startup_error_report to me.
>
> If it works you'll know - try out the new widgets (emacs,
> lifts, font
> selector ...)
>
> Please run in all possible modes - ie with ssl forwarding etc.
>
> Cheers
>
> /Joe
>
>


Post generated using Mail2Forum (http://m2f.sourceforge.net)
bengt.kleberg at ericsson
Posted: Wed May 12, 2004 1:38 pm Reply with quote
Guest
Ulf Wiger (AL/EAB) wrote:

>I ran it on Solaris 8 with no problems.
>
>
what c compiler did you use?


bengt


Post generated using Mail2Forum (http://m2f.sourceforge.net)
hal at vailsys.com
Posted: Wed May 12, 2004 2:28 pm Reply with quote
Guest
Joe Armstrong <joe_at_sics.se> writes:

...
> The latest release is release-2.5 - this is an "in between" release.
> release-2.5 contains many undocumented widgets, the intention of
> release-2.5 it merely to test that the initialization routines work
> correctly.
>
> If you run release-2.5 and initialization does not work can you
> please mail the file startup_error_report to me.


On FreeBSD-5.0 with ssh forwarding, DISPLAY=localhost:10.0 - works ok.
Because gnu make is not the default on the BSD's, I changed toplevel
Makefile:

all:
cd lib; $(MAKE)
cd unixdom-0.1/src; $(MAKE)
cd widgets; $(MAKE)

clean:
cd lib; $(MAKE) clean
cd widgets; $(MAKE) clean
cd unixdom-0.1/src; $(MAKE) clean

Also paths for include and lib for jpeg lib had to be frobbed.



On i386 Solaris 9 with ssh forwarding, no joy. It sat there for a
couple minutes with no display. I was about to kill it when it cored.

No startup_error_report was written. Note DISPLAY is xyzzy.vail:11.0,
i.e. fqdn:display.screen.


1> Trying Host={ip,"localhost"} Display=11 Screen=0
Connecting to tcp port:6011
cannot connect reason:etimedout
Trying Host=unix Display=11 Screen=0
Connecting to unix domain socket:11
Port opened sending cookie:
gmake[1]: *** [all] Segmentation Fault (core dumped)
gmake[1]: Leaving directory `/export/home/hal/ex11/release-2.5/widgets'
gmake: *** [all] Error 2


There was more minor config stuff for the makefiles on this system -
utils are in /usr/pkg, not /usr/local, not /opt/sfw. gcc is not in
PATH, etc.


Thanks.


Post generated using Mail2Forum (http://m2f.sourceforge.net)
joe at sics.se
Posted: Wed May 12, 2004 2:53 pm Reply with quote
Guest
On Wed, 12 May 2004, Hal Snyder wrote:

> Joe Armstrong <joe_at_sics.se> writes:
>
> ...
> > The latest release is release-2.5 - this is an "in between" release.
> > release-2.5 contains many undocumented widgets, the intention of
> > release-2.5 it merely to test that the initialization routines work
> > correctly.
> >
> > If you run release-2.5 and initialization does not work can you
> > please mail the file startup_error_report to me.
>
>
> On FreeBSD-5.0 with ssh forwarding, DISPLAY=localhost:10.0 - works ok.
> Because gnu make is not the default on the BSD's, I changed toplevel
> Makefile:
>
> all:
> cd lib; $(MAKE)
> cd unixdom-0.1/src; $(MAKE)
> cd widgets; $(MAKE)
>
> clean:
> cd lib; $(MAKE) clean
> cd widgets; $(MAKE) clean
> cd unixdom-0.1/src; $(MAKE) clean
>
> Also paths for include and lib for jpeg lib had to be frobbed.
>

cored - wow.

At a guess this is the unix domain sockets. Try deleting the entire
directory with the unix domain sockets and running again

/Joe


>
>
> On i386 Solaris 9 with ssh forwarding, no joy. It sat there for a
> couple minutes with no display. I was about to kill it when it cored.
>
> No startup_error_report was written. Note DISPLAY is xyzzy.vail:11.0,
> i.e. fqdn:display.screen.
>
>
> 1> Trying Host={ip,"localhost"} Display=11 Screen=0
> Connecting to tcp port:6011
> cannot connect reason:etimedout
> Trying Host=unix Display=11 Screen=0
> Connecting to unix domain socket:11
> Port opened sending cookie:
> gmake[1]: *** [all] Segmentation Fault (core dumped)
> gmake[1]: Leaving directory `/export/home/hal/ex11/release-2.5/widgets'
> gmake: *** [all] Error 2
>
>
> There was more minor config stuff for the makefiles on this system -
> utils are in /usr/pkg, not /usr/local, not /opt/sfw. gcc is not in
> PATH, etc.
>
>
> Thanks.
>



Post generated using Mail2Forum (http://m2f.sourceforge.net)
bengt.kleberg at ericsson
Posted: Wed May 12, 2004 2:59 pm Reply with quote
Guest
Joe Armstrong wrote:

>On Wed, 12 May 2004, Bengt Kleberg wrote:
>
>
>
...deleted

>
>
>>on a more serious note:
>>is ex11 supposed to be useable on solaris (sunos 5.Cool?
>>
>>
>
>It's never been tested on Solaris - it might work - I have done
>nothing with the unix-domain socket stuff - just go it working
>on my linux boxes. If the domain sockets fails on Solaris delete
>the entire domain sockets dioretory and try again - ex11 will then use
>TCP sockets
>
>
>
should this go to Scott Lystig Fritchie, too?

the unixdom-0.1/src/Makefile needed updating for ERLDIR and CC. since my
CC was cc i needed to change CFLAGS. here i removed ''-Wall -pedantic''.
at first i tried to replace them with the cc equivalents ''-v -Xc'', but
this produced way too many warnings.
moreover, i needed to replace ''-pict -shared'' with -G to create a
shared library (.so).

after having built everything i tested with example0:start(). this crashed.
=ERROR REPORT==== 12-May-2004::16:29:26 ===
Error in process <0.45.0> with exit value:
{badarg,[{erlang,hd,[[]]},{ex11_lib_utils,mk_colorfun,2},{ex11_lib_control,init,1}]}

the reason for this crash is that visuals is empty here:
lib/ex11_lib_utils.erl:178: V = hd(D#depth.visuals),

this is the whole depths list:

{depth,1,0,[]},
{depth,8,
10,
[{visual,32,3,0,0,0,8,256},
{visual,33,3,0,0,0,8,256},
{visual,34,2,7,56,192,8,256},
{visual,35,0,0,0,0,8,256},
{visual,36,1,0,0,0,8,256},
{visual,37,4,7,56,192,8,8},
{visual,38,5,7,56,192,8,8},
{visual,39,0,0,0,0,8,256},
{visual,46,3,0,0,0,8,256},
{visual,47,3,0,0,0,8,255}]},
{depth,24,
6,
[{visual,40,4,255,65280,16711680,8,256},
{visual,41,4,255,65280,16711680,8,256},
{visual,42,5,255,65280,16711680,8,256},
{visual,43,5,255,65280,16711680,8,256},
{visual,44,4,255,65280,16711680,8,256},
{visual,45,4,255,65280,16711680,8,256}]}

is this ok? do you need more info?

>>while it is simple to replace CC, CFLAGS and LIBS in lib/Makefile i have
>>not been able to locate ''jpeglib.h''. this file is included from
>>lib/ex11_lib_read_jpeg.c.
>>
>>
>>
>
>Ahh - the jpeg stuff is experimental and I havn't tryed this for a long
>time.
>
>
>
several local ericsson people explained where this is installed. thank
you all.


bengt


Post generated using Mail2Forum (http://m2f.sourceforge.net)
bengt.kleberg at ericsson
Posted: Wed May 12, 2004 4:05 pm Reply with quote
Guest
Joe Armstrong wrote:

>On Wed, 12 May 2004, Bengt Kleberg wrote:
>
>
>
...deleted

>>on a more serious note:
>>is ex11 supposed to be useable on solaris (sunos 5.Cool?
>>
>>
>
>It's never been tested on Solaris - it might work
>

it is i, with the crash in
lib/ex11_lib_utils.erl:178: V = hd(D#depth.visuals).

is there a particular reason to use the first of the #depth{} in
#screen.depths ? i have replaced

lib/ex11_lib_utils.erl:177: D = hd(S#screen.depths),
with
lib/ex11_lib_utils.erl:177: D = lists:last(S#screen.depths),

after this i can run example0:start(). however, the colours are
terrible. perhaps because of the change i have made?
instead of picking the last (or first?) entry in S#screen.depths i would
like to be able to choose the ''best''. what are the criteria for a good
entry?


bengt


Post generated using Mail2Forum (http://m2f.sourceforge.net)
hal at vailsys.com
Posted: Wed May 12, 2004 4:10 pm Reply with quote
Guest
Joe Armstrong <joe_at_sics.se> writes:

> cored - wow.
>
> At a guess this is the unix domain sockets. Try deleting the entire
> directory with the unix domain sockets and running again

Starting over but deleting the unixdom directory before build gives
same result on i386 Solaris 9, no display, eventual core. However,
after doing string replace of every occurrence of "localhost" with
"xyzzy.vail", the demo runs.

Note hostname command returns xyzzy.vail and DISPLAY is xyzzy.vail:11.0.

>> On i386 Solaris 9 with ssh forwarding, no joy. It sat there for a
>> couple minutes with no display. I was about to kill it when it cored.
>>
>> No startup_error_report was written. Note DISPLAY is xyzzy.vail:11.0,
>> i.e. fqdn:display.screen.
>>
>>
>> 1> Trying Host={ip,"localhost"} Display=11 Screen=0
>> Connecting to tcp port:6011
>> cannot connect reason:etimedout
>> Trying Host=unix Display=11 Screen=0
>> Connecting to unix domain socket:11
>> Port opened sending cookie:
>> gmake[1]: *** [all] Segmentation Fault (core dumped)
>> gmake[1]: Leaving directory `/export/home/hal/ex11/release-2.5/widgets'
>> gmake: *** [all] Error 2


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 2
Goto page 1, 2  Next
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum