Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#56 itcl.h build failure on rhel 5.2

closed-fixed
Alan W. Irwin
None
5
2008-08-21
2008-08-19
Glenn Morris
No

5.9.0 build failure on rhel 5.2 due to itcl.h
problems:

itcl.h is in a non-standard location on my system
(/data/soft/local).

Tried the following:

export CPPFLAGS=-I/data/soft/local/include
export LDFLAGS=-L/data/soft/local/libs

cmake -DCMAKE_INSTALL_PREFIX=/data/soft/plplot/5.9.0 \ -DCMAKE_INCLUDE_PATH=/data/soft/local/include \ -DCMAKE_LIBRARY_PATH=/data/soft/local/lib ..

cmake reports:

-- Looking for itcl.h
-- Looking for itcl.h - found
-- Looking for itcl library
-- Looking for itcl library - found
-- ITCL_INCLUDE_PATH = /data/soft/local/include
-- ITCL_LIBRARY = /data/soft/local/lib/itcl3.3/libitcl3.3.so

which is all correct.

However, build fails:
[100%] Building C object utils/CMakeFiles/pltcl.dir/pltcl.o
/tmp/plplot-5.9.0/utils/pltcl.c:37:19: error: itcl.h: No such file or directory
make[2]: *** [utils/CMakeFiles/pltcl.dir/pltcl.o] Error 1
make[1]: *** [utils/CMakeFiles/pltcl.dir/all] Error 2
make: *** [all] Error 2

Fixed by editing
utils/CMakeFiles/pltcl.dir
by hand to add -I/data/soft/local/include
to C_FLAGS.

Discussion

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

    Logged In: YES
    user_id=15737
    Originator: NO

    I will need more information from you because for my platform (Debian testing) I have to turn itcl and itk off (since they are not compatible with the latest Tcl/Tk).

    Therefore, please attach the complete output from your cmake command, and also give more context lines for he make error. The way you get more context is use make VERBOSE=1.

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

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

    cmake log

     
    Attachments
  • Glenn Morris
    Glenn Morris
    2008-08-20

    Logged In: YES
    user_id=638715
    Originator: YES

    > Therefore, please attach the complete output from your cmake command, and
    > also give more context lines for he make error. The way you get more
    > context is use make VERBOSE=1.

    Attached.

    File Added: CMAKE.LOG.gz

     
  • Glenn Morris
    Glenn Morris
    2008-08-20

    Logged In: YES
    user_id=638715
    Originator: YES

    File Added: BUILD.LOG.gz

     
  • Glenn Morris
    Glenn Morris
    2008-08-20

    make VERBOSE=1 log

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

    Logged In: YES
    user_id=15737
    Originator: NO

    Please try the latest svn version (revision 8692) where
    I think I may have solved the issue (although I cannot test the result.)

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

    Logged In: YES
    user_id=15737
    Originator: NO

    make that revision 8693.

     
  • Glenn Morris
    Glenn Morris
    2008-08-21

    Logged In: YES
    user_id=638715
    Originator: YES

    > Please try the latest svn version

    I tried rev 8694, and this problem is fixed. Thanks.

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

    • status: open --> closed-fixed