#55 wxwidgets build error on rhel5.2

closed-fixed
Werner Smekal
None
5
2008-08-28
2008-08-19
Glenn Morris
No

5.9.0 build failure on rhel5.2 using wxGTK-2.6.3:

cmake -DCMAKE_INSTALL_PREFIX=/data/soft/plplot/5.9.0
ENABLE_wxwidgets: ON

make

[ 4%] Building CXX object src/CMakeFiles/plplotd.dir/__/drivers/wxwidgets.o
In file included from /usr/include/wx-2.6/wx/wx.h:15,
from /scratch/gmorris/tmp/scamp/plplot/5.9.0/plplot-5.9.0/drivers/wxwidgets.cpp:51:
/usr/include/wx-2.6/wx/defs.h:41:13: error: #error "No Target! You should use wx-config program for compilation flags!"

Traced problem to these three files:

pkgcfg/plplotd.pc
src/CMakeFiles/plplotd.dir/build.make
src/CMakeFiles/plplotd.dir/flags.make

which contain eg "-I-D__WXGTK__" rather than
"-D__WXGTK__".

Editing these files allowed build to continue.

Don't know where this '-I' is coming from, since cmake is totally opaque to me. `wx-config --cxxflags' has the correct output with no '-I' before the '-D's.

Discussion

  • Alan W. Irwin
    Alan W. Irwin
    2008-08-19

    Logged In: YES
    user_id=15737
    Originator: NO

    IIRC, this issue has been fixed in the svn version. Could you try that please, and report back?

     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-19

    • assigned_to: nobody --> airwin
     
  • Glenn Morris
    Glenn Morris
    2008-08-19

     
    Attachments
  • Glenn Morris
    Glenn Morris
    2008-08-19

    Logged In: YES
    user_id=638715
    Originator: YES

    > IIRC, this issue has been fixed in the svn version. Could you try that
    > please, and report back?

    I checked out your svn trunk.
    Firstly, the build fails with an ada-related error, so I reran cmake
    with ada off.

    Then the build fails with a new WX-related error while compiling
    drivers/wxwidgets_dc.cpp (build.log attached).

    There are no more instances of '-I-D' in the build directory, so it does
    seem as if the initial problem I reported has been fixed.

    File Added: BUILD.LOG.gz

     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-20

    Logged In: YES
    user_id=15737
    Originator: NO

    I believe you caught our svn version at a momentary bad state with regards to wxwidgets which has since been fixed. Some of our developers have reported issues with some Ada compiler versions which we are still investigating. Could you try again, please, with Ada turned off, but everything else you need turned on? Our svn version may solve the fortran and itcl/itk issues you reported elsewhere. We are particularly keen on solving all svn trunk issues since we plan a 5.9.1 release soon based on that version.

     
  • Glenn Morris
    Glenn Morris
    2008-08-20

    Logged In: YES
    user_id=638715
    Originator: YES

    > I believe you caught our svn version at a momentary bad state with regards
    > to wxwidgets which has since been fixed.

    Updated to svn revision 8689, emptied build directory.
    Still getting wx build error, log attached.

    > Our svn version may solve the fortran
    > and itcl/itk issues you reported elsewhere.

    Fortran is fixed, thanks, itcl is not.
    File Added: BUILD.LOG.gz

     
  • Glenn Morris
    Glenn Morris
    2008-08-20

    Build log for rev 8689

     
    Attachments
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-20

    Logged In: YES
    user_id=15737
    Originator: NO

    I believe you caught our svn version at a momentary bad state with regards to wxwidgets which has since been fixed. Some of our developers have reported issues with some Ada compiler versions which we are still investigating. Could you try again, please, with Ada turned off, but everything else you need turned on? Our svn version may solve the fortran and itcl/itk issues you reported elsewhere. We are particularly keen on solving all svn trunk issues since we plan a 5.9.1 release soon based on that version.

     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-20

    • status: open --> open-works-for-me
     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-20

    Logged In: YES
    user_id=15737
    Originator: NO

    Thanks for the fortran report. I have closed that (separate) bug report as a result.

    I cannot confirm the latest wx build error you report for svn revision 8689. Here is the command used for that successful build on my system.

    cd /home/software/plplot_cvs/HEAD/build_dir/drivers && /usr/bin/c++ -DHAVE_CONFIG_H -Dwxwidgets_EXPORTS -fPIC -I/home/software/plplot_cvs/HEAD/plplot_cmake/include -I/home/software/plplot_cvs/HEAD/build_dir -I/home/software/plplot_cvs/HEAD/build_dir/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/include/freetype2 -I/usr/include -o CMakeFiles/wxwidgets.dir/wxwidgets_dc.o -c /home/software/plplot_cvs/HEAD/plplot_cmake/drivers/wxwidgets_dc.cpp

    The only fundamental difference I have spotted compared to the build command that failed for you seems to be the -Dwxwidgets_EXPORTS option. I assume that is due to our having different versions of wxwidgets-2.6. I have wxwidgets version 2.6.3.2.2-2 from Debian testing. What version do you have?

     
  • Glenn Morris
    Glenn Morris
    2008-08-22

    Logged In: YES
    user_id=638715
    Originator: YES

    > What version do you have?

    I have wxGTK-2.6.3-1, from Dag Wieers yum repository, on RHEL 5.2.

    I have "-Dplplotd_EXPORTS" where you have "Dwxwidgets_EXPORTS". I changed this by hand, it made no difference.

    I don't have "-I/usr/include/freetype2 -I/usr/include", since cmake
    disables freetype for some reason. Adding those by hand also did not help.

    (This is with svn rev 8701.)

     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-22

    • assigned_to: airwin --> smekal
     
  • Alan W. Irwin
    Alan W. Irwin
    2008-08-22

    Logged In: YES
    user_id=15737
    Originator: NO

    Thanks, Glenn for the data you sent. However, I have come to the end of my limited wxwidgets build expertise. Thus, I have asked another PLplot developer with lots of such expertise to take over, and hopefully he will be able to help you out. Note all PLplot developers are volunteers so no guarantees on how quickly he will be able to respond.

     
  • Werner Smekal
    Werner Smekal
    2008-08-23

    Logged In: YES
    user_id=899567
    Originator: NO

    Hi,

    I already installed CentOS 5.2 with VirtualBox so I should be able to closely follow the way you tried to compile plplot. I'll proceed on Monday or Tuesday. I'll keep you updated.

    Thanks,
    Werner

     
  • Werner Smekal
    Werner Smekal
    2008-08-27

    Logged In: YES
    user_id=899567
    Originator: NO

    Argh,

    I should have looked at your build logs before I installed CentOS and everything. These build problems occur actually if the freetype library is not installed or not available (because of missing fonts). Anyway this problem occured also yesterday while compiling on Mac OS X and I commited a fix yesterday. This should also solve your compile problems. At least I can compile PLplot including the wxWidgets driver on my virtual CentOS computer.

    Please post, if this bug is solved, then I'll close this report. Thank you for your reports.

    Werner

     
  • Glenn Morris
    Glenn Morris
    2008-08-27

    Logged In: YES
    user_id=638715
    Originator: YES

    Yes, rev 8717 builds fine. Many thanks.

     
  • Werner Smekal
    Werner Smekal
    2008-08-28

    • status: open-works-for-me --> closed-fixed