Path: news.cs.au.dk!news.net.uni-c.dk!logbridge.uoregon.edu!newsfeed.ecrc.net!newscore.gigabell.net!newscore.ipf.de!news0.de.colt.net!news-fra1.dfn.de!news-koe1.dfn.de!nx6.hrz.uni-dortmund.de!Informatik.Uni-Dortmund.DE!news From: Daniel Sawitzki Newsgroups: comp.lang.beta Subject: Re: BETA, Linux and Pixmaps... Date: Thu, 22 Apr 1999 13:50:00 +0200 Organization: CS Department, University of Dortmund, Germany Lines: 146 Message-ID: <371F0CE8.FC6C6670@marvin.informatik.uni-dortmund.de> NNTP-Posting-Host: marvin.cs.uni-dortmund.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:11905 > Date: Thu, 22 Apr 1999 08:36:37 +0200 > From: Flemming Gram Christensen > To: Daniel Sawitzki > Subject: Re: BETA, Linux and Pixmaps... > Mime-Version: 1.0 > Content-Transfer-Encoding: 8bit > > Hi Hello > You seems to have used some time with BETA/lesstif. > I would like see the lists of what does not work. > Also if there is anything about installation, that > is not so easy i would like to know also. > You write that it is not an easy job to get it > working. Is there something that should be in the faq? At last you can get all the informationen about using Beta with glibc2 ans Lesstif from FAQs from Mjolner. But I think that the nessecary modifications are a little bit tricky. That should be no critics on Mjolner or the Beta System :-) And static linking under Linux leads to problems described in no FAQ. Maybe I will complete the list later, here are some problems with Lesstif: 1. The optionbutton looks nice, but the currentitem attribute doesn't contain the actual selected itemnumber. In addition when opening the optionbutton, it doesn't show the first menuitem, but something like "Option". 2. When resizing a texteditor (with binding for example) the amount of text reachable with the scrollbar is corrupted. 3. When puttin a text into a texteditor, this works fine (text[]->myeditor.contents.contents). But when putting another text in it again in it, the probability that the contents really change gets less with the amount of text trying to put (no joke, this was an really ugly workaround, i found it just when trying different things). 4. When using an iconbutton with a picture and a label, the graphics and text are not displayed in the right way (only half of the graphics, not centered). You have to disable the label. 5. Sometimes the program just crashes with an xlib-error. 6. The filedialog isn't displayed properly after resizing. 7. When initialising some attributes in the open patterns of guienv objects (I think it was a problem of the checkbox and similar guienv objects) the program crashes because these guienv object aren't opened at this time. This is only with Lesstif a problem and should work after the lecture of some bib-docs. I'm sure this wasn't all, when I remeber something more, I will write you :-) Ciao Daniel Sawitzki > > /gram > > > On Wed, Apr 21, 1999 at 03:10:50PM +0200, Daniel Sawitzki wrote: > > Christof Pohl wrote: > > > > > > Hi! > > Hello > > > > > > > > I want to use BETA under Linux with Lesstif, and have spent some time to > > > get it working. ;-) I use the SuSE 6.0 distribution of Linux, which is > > > glibc2-based. Furthermore, I have updated my system to the 2.2.2 kernel. > > > Following the instructions given in the mia90-04.pdf, the beta-faq (for > > > solving glibc2-problems) and the beta-lesstif-faq (for getting BETA to > > > work with lesstif), there is still one problem left. :-\ > > > > > My congratulations so far! Even this isn't easy! > > > > > If I compile the iconbutton-example in ~beta/demo/guienv, compilation > > > and linking goes well, but when executing the binary, I get the > > > following error: > > > > > > -------------------------------------------------------------------------------- > > > > > > Warning: Cannot convert string "" to type FontStruct > > > > > > **** Exception processing > > > pixmap file "communicator.xpm" was not found in any of the pixmap > > > directories > > > > > > # Beta execution aborted: Stop is called. > > > # Look at 'iconbutton.dump' > > > > > This seems a new problem with Lesstif. As far as I know I had the same > > problem. You have to give beta the full path of the xpm. Of course you > > may use expressions like "./" or "~/". > > > > > -------------------------------------------------------------------------------- > > > > > > All other GUIENV-based demos run fine, as do the demos without GUI. I > > > have tried modifying my .fvwm2rc (added "." to the PixMap-Directories), > > > but that didnīt work. > > > > A further annotation: Don't work with Lesstif !!!!!!!!!!!!! I have > > developed a Database Application > > (http://studserver.uni-dortmund.de/~su0754/mk/mk.html) under Linux with > > Lesstif, and it was a pure torture. You can't imagine WHAT THINGS DON'T > > WORK! If you are going to do seriously development with Beta under > > Linux, buy the Runtime or better the Static Version of Motif. If you are > > interested in that, i can send you a list of things not properly working > > with Lesstif. > > > > A second annotattion: When zou decide to work with Lesstif, you maybe > > want to link it static against Lesstif, so other users can use the > > program without the shared Lesstif libs. First you need to compile with > > "beta --static". But then there are some error-messages. So compile with > > "beta -p --static". That has the effect that beta keeps the program..job > > file in the ./linux directory. In this file there are some ld-calls. I > > think the last one has one "-lc"-parameter (ld -lc ...). You have to > > remove this. At the end of the file there is a further "-lc". You got to > > replace this by "-lc_nonshared". Then execute the scriptfile from the .. > > directory (not from the linux subdir). This should work. It's working on > > my system (SuSe 6.0). The workaround comes from Mjolner. > > > > > > > > Any help would be very welcome. > > > > > > Thanks in advance, > > > > > > Chris > > > > > Ciao > > Daniel > > -- > /Flemming Gram Christensen > > ------------------------------------------------------------------------ > Mjolner Informatics ApS Phone: +45 86 20 20 00 > Science Park Aarhus Fax: +45 86 20 12 22 > Gustav Wieds Vej 10 > DK-8000 Aarhus C > Denmark E-mail: gram@mjolner.dk > ------------------------------------------------------------------------