[XForms] Migrating from xforms-0.89

Jens Thoms Toerring jt at toerring.de
Thu Mar 13 07:03:03 EDT 2008


To subscribers of the xforms list

Hi,

> I have a project which still uses xforms 0.89.  I would like to  
> upgrade, but installing
> the new versions results in all sorts of error messages when I compile.

Do you get errros when you try to compile the new version of
the XForms library or when you try to recompile your program
using the new version?

In the first case I would be very interested to get a list
of all messages! If you're using e.g. a bash like shell you
could redirect the output of the configure and make command
to files by using e.g.

./configure > configlog 2>&1
make > makelog 2>&1

Please be so kind to send me the resulting files.

In the second case it also would be helpful to see what you
actually get as error messages. It's a long time since I
have been using version 0.89, so I probably don't not re-
member most of the changes that happened since then. But
I guess that the main changes were:

a) The forms.h file to be included by your program was in

   /usr/X11/include/X11/

   Nowadays it's per default in

   /usr/local/include/

   You must make sure that the compiler picks up this new
   file and not accidentally the old one. Perhaps you will
   need to pass something like '-I/usr/local/include' to
   the compiler.

b) The library itself also seem to have been in

   /usr/X11/lib/

   but nowadays is per default in

   /usr/local/lib/

   You may have to tell the linker by using something like
   '-L/usr/local/lib'.

c) In version 0.89 Pixmaps were handled by some internal
   functions is XForms. This has changed and XForms now
   requires the external Xpm library for this, see e.g.

   http://koala.ilog.fr/lehors/xpm.html

   This library needs to be installed on your system and
   you must explicitely link against it (using e.g. the
   option '-lXpm' when compiling with gcc).

I really don't remember what you had to specify as compiler
and linker flags when compiling against 0.89. But nowadays
I would probably use someting like

-I/usr/local/include -L/usr/local/lib -X11 -lforms -lXpm -lm

The API itself hasn't experienced too many changes and I can't
remember them. If your problems result from them please post
the error messages you got, otherwise it's going to be very
figure out what's going wrong;-)

                            Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      jt at toerring.de
   \_______________________________      http://toerring.de
_______________________________________________
To unsubscribe, send any message to
xforms-leave at bob.usuhs.mil or see: 
http://cweblog.usuhs.mil/mailman/listinfo/xforms
List Archive: http://bob.usuhs.mil/pipermail/xforms and
http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms



More information about the Xforms mailing list