Menu

#855 Compile error Xaw3d

v3.0
closed-wont-fix
Linux
Buildsystem
2017-03-05
2017-01-08
No

I get a compile error when I try to build VICE 3.0 under Ubunut 16.04 with Xaw3d user interface:

./configure --with-xaw3d
...
make
...
Making all in widgets
In file included from Joystick.c:8:0:
./JoystickP.h:15:29: fatal error: X11/Xaw/SimpleP.h: No such file or directory
compilation terminated.

It should either tell me during "configure" what is missing resp. what needs to be installed, or compile.

Discussion

  • compyx

    compyx - 2017-01-08

    Hmm, when I use --with-xaw3d, configure quits with:

    checking for XawFormDoLayout in -lXaw3d... no
    checking X11/Xaw3d/Tip.h usability... no
    checking X11/Xaw3d/Tip.h presence... no
    checking for X11/Xaw3d/Tip.h... no
    configure: error: X11/Xaw3d/Tip.h is missing.
    

    This is using SVN on Debian 8.6.

    So configure won't even complete without xaw3d-dev installed. But I agree that configure should emit a proper warning when something is missing that is requested with either --with-foo or --enable-foo.

    It's on our TODO list of things that need fixing: a lot of missing dependencies are silently ignored or some optional features are only enabled when the dependencies are there without a switch to turn it on or off (for example: MP3 decoding is only enabled if libmpg123-dev is installed, but there's no switch for it)

     
  • compyx

    compyx - 2017-01-08
    • assigned_to: compyx
     
  • compyx

    compyx - 2017-01-08

    After looking at configure.proto, it seems after Xaw/Xaw3d is checked, there's an additional check for Xaw/Simple.h, but configure only emits a warning about using at least Xaw7 when the compile test fails. What Xaw version are you using?

     
  • Andre Fachat

    Andre Fachat - 2017-01-08

    After the first configure message, I installed xaw3d-dev, then tried to compile, only to then get the message from above.
    New Install on a new ubuntu 16.04 64bit system.

     
  • compyx

    compyx - 2017-01-09

    Odd, when I install xaw3dg-dev, configure completes, but with a warning:

    checking if XawNdisplayList is defined... no
    configure: WARNING: X11/{Xaw or Xaw3d}/Simple.h does not #define XawNdisplayList. It is recommended to use at least version 7 of Xaw. Xaw3d based on older versions is buggy and incomplete. This warning will turn into an error soon.
    

    Then, when running make this message appears:

    Making all in xaw
    Making all in widgets
    ../../../../../../../vice/src/arch/unix/x11/xaw/widgets/MultiList.c:264:37: warning: function declaration isnt a prototype [-Wstrict-prototypes]
             /* change_sensitive      */ XtInheritChangeSensitive
                                         ^
    

    Make completes and I can run x64. But then a lot of these warnings appear in the log:

    Warning: Missing charsets in String to FontSet conversion
    Warning: No type converter registered for 'String' to 'XawDisplayList' conversion.
    

    And hovering my mouse over any submenu header in the Xaw3d UI inverts it in color and then leaves it completely black.

    So for now I would avoid the Xaw3d UI until someone figures out what is wrong.

     
  • Greg King

    Greg King - 2017-01-10

    The "JoystickP.h" error message suggests that the xaw-dev package wasn't installed.

     
  • compyx

    compyx - 2017-01-12

    But configure will catch that (missing libxaw7-dev). So the Makefile's shouldn't be generated which will allow make to run. Something fishy is going on here ;)

     
  • Greg King

    Greg King - 2017-01-13

    I see configure code that tests for either Xaw or Xaw3d. I don't see code that tests for the presense of both of them (the joystick widget source file uses the 2D headers even when we ask for 3D menues and buttons).

     

    Last edit: Greg King 2017-01-13
  • Marco van den Heuvel

    • status: open --> pending-fixed
    • assigned_to: compyx --> Marco van den Heuvel
     
  • Marco van den Heuvel

    Fixed in rev 32680, please retry.

     
  • Andre Fachat

    Andre Fachat - 2017-01-14

    Sorry for the late reply. It could well be that Xaw3d was installed but Xaw wasn't, as I was "retreating" from SDL to Xaw3d to Xaw and had to install Xaw only after Xaw configure failed, but not with Xaw3d.
    So Greg should be right with it.

     
  • compyx

    compyx - 2017-01-14

    Oddly enough, on Debian xaw3d does not depend on libXaw, so installing xaw3d won't install libXaw. However, since VICE seems to use both, configure needs to be altered I think, to also check for libXaw if --enable-xaw3d is specified.

     
  • compyx

    compyx - 2017-03-05
    • status: pending-fixed --> closed-wont-fix
     
  • compyx

    compyx - 2017-03-05

    Since all ports wihout maintainers will use SDL in the future and an experimental portable Gtk3 UI is being worked on, I'll mark this as won't fix.

     

Log in to post a comment.

MongoDB Logo MongoDB