Path: news.cs.au.dk!news.net.uni-c.dk!uninett.no!newsfeed1.online.no!newsfeed.online.no!news-feed.inet.tele.dk!bofh.vszbr.cz!dispose.news.demon.net!demon!colt.net!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: Wed, 21 Apr 1999 15:10:50 +0200 Organization: CS Department, University of Dortmund, Germany Message-ID: <371DCE5A.4E0685AC@marvin.informatik.uni-dortmund.de> References: <36F16479.73724F50@edu.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 To: Christof Pohl Lines: 70 Xref: news.cs.au.dk comp.lang.beta:11903 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