Matthieu Fertré wrote:

For the paragui main menu, the last time I use it, it looking like the same as before the SDL port except for the button color. I think I was using the official debian package of paragui which is paragui 1.02.

At a first time, I have tried to compile wormux SVN with the debian official paragui package (1.0.4 as today said by paragui-config --version) but that wasn't working:

   [EMAIL PROTECTED] make
   Making all in .
   make[1]: Entering directory `/home/jeanchri/SVN/wormux/src'
   if g++ -DPACKAGE_NAME=\"Wormux\" -DPACKAGE_TARNAME=\"wormux\"
   -DPACKAGE_VERSION=\"0.6.0\" -DPACKAGE_STRING=\"Wormux\ 0.6.0\"
   -DPACKAGE_BUGREPORT=\"[EMAIL PROTECTED]" -DPACKAGE=\"wormux\"
   -DVERSION=\"0.6.0\" -DENABLE_NLS=1 -DHAVE_GETTEXT=1
   -DHAVE_DCGETTEXT=1 -DHAVE_LIBX11= -DHAVE_DIRENT_H=1
   -DSTDC_HEADERS=1  -I. -I.   -I/usr/X11R6/include  -pg
   -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml++-1.0
-I/usr/lib/libxml++-1.0/include -I/usr/include/libxml2 -I/usr/include/paragui -I/usr/include/freetype2 -I/usr/include/SDL
   -D_REENTRANT -DINSTALL_DATADIR=\"/usr/local/share/wormux/\"
   -DINSTALL_LOCALEDIR=\"/usr/local/share/po/\" -Wall -MT infos_menu.o
   -MD -MP -MF ".deps/infos_menu.Tpo" -c -o infos_menu.o `test -f
   'menu/infos_menu.cpp' || echo './'`menu/infos_menu.cpp; \
   then mv -f ".deps/infos_menu.Tpo" ".deps/infos_menu.Po"; else rm -f
   ".deps/infos_menu.Tpo"; exit 1; fi
   menu/infos_menu.cpp: In member function 'void MenuInfos::Run()':
   menu/infos_menu.cpp:61: error: 'CENTER' is not a member of 'PG_Label'
   make[1]: *** [infos_menu.o] Erreur 1
   make[1]: Leaving directory `/home/jeanchri/SVN/wormux/src'
   make: *** [all-recursive] Erreur 1

So I have tried to compile/install paragui 1.17 by hand. Then wormux SVN has well compiled. So I think the main_menu and info_menu code is based on the paragui 1.2 (or 2.0 ?) API (that is currently unstable 1.1.x)

Sorry, I will switch to the 1.1.8.

Already done by you ;) If I am true.
But is it a good idea to rely on an unstable branch ? Judging by the paragui roadmap it we can expect API changements until the next stable release:

1.1.8 - unify constructors (e.g.: PG_Widget(PG_Widget* parent, const PG_Rect& rect)) - needed for factory. redesign of event-handling. merge object factory from paragui2

1.1.9 - bug fixing and API reality check

1.1.11 - bug fixing and API freeze

Have a look here:
http://www.bms-austria.com/projects/paragui/modules.php?op=modload&name=News&file=article&sid=5

and unfortunatly there is no dates previsions

a+
Jean-Christophe

--
Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr
webmaster du site MNEA  - http://www.mnea.fr


Répondre à