Loading ...
Sorry, an error occurred while loading the content.

Fails to build on Xubuntu 11.10 amd64

Expand Messages
  • london4562
    Trying to get pvbrowser to compile, and it appears to fail on the python bindings. It successfully installs and the demo runs, but I was hoping to use the
    Message 1 of 5 , Jan 16, 2012
    View Source
    • 0 Attachment
      Trying to get pvbrowser to compile, and it appears to fail on the python bindings. It successfully installs and the demo runs, but I was hoping to use the python bindings.
      Is both python 2.6 and 2.7 in the include path going to be an issue?
      Is the failure to find /usr/lib64 relevant? This box has /usr/lib and /usr/lib32 but no lib64 - and is this part of the QMake configs? I'm hesitant to dive in and change things because I've never touched qmake stuff before.

      Thanks for your time. Hope I'm not missing anything too obvious..

      Repeat build output:

      $ ./build.sh
      We are at home
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      cd src/ && make -f Makefile
      make[1]: Entering directory `/home/steve/VirtualBox Shared/R/pvb/qwt/src'
      make[1]: Nothing to be done for `first'.
      make[1]: Leaving directory `/home/steve/VirtualBox Shared/R/pvb/qwt/src'
      cd textengines/ && make -f Makefile
      make[1]: Entering directory `/home/steve/VirtualBox Shared/R/pvb/qwt/textengines'
      make[1]: Nothing to be done for `first'.
      make[1]: Leaving directory `/home/steve/VirtualBox Shared/R/pvb/qwt/textengines'
      cd designer/ && make -f Makefile
      make[1]: Entering directory `/home/steve/VirtualBox Shared/R/pvb/qwt/designer'
      make[1]: Nothing to be done for `first'.
      make[1]: Leaving directory `/home/steve/VirtualBox Shared/R/pvb/qwt/designer'
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      rm -f glencode.o pvbImage.o util.o
      rm -f *~ core *.core
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -DUSE_INETD -I/usr/share/qt4/mkspecs/linux-g++ -I. -o glencode.o glencode.cpp
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -DUSE_INETD -I/usr/share/qt4/mkspecs/linux-g++ -I. -o pvbImage.o pvbImage.cpp
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -DUSE_INETD -I/usr/share/qt4/mkspecs/linux-g++ -I. -o util.o util.cpp
      rm -f libpvsid.so.1.0.0 libpvsid.so libpvsid.so.1 libpvsid.so.1.0
      g++ -Wl,-O1 -shared -Wl,-soname,libpvsid.so.1 -o libpvsid.so.1.0.0 glencode.o pvbImage.o util.o
      ln -s libpvsid.so.1.0.0 libpvsid.so
      ln -s libpvsid.so.1.0.0 libpvsid.so.1
      ln -s libpvsid.so.1.0.0 libpvsid.so.1.0
      rm -f libpvsid.a
      ar cqs libpvsid.a glencode.o pvbImage.o util.o
      rm -f glencode.o pvbImage.o util.o wthread.o
      rm -f *~ core *.core
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++ -I. -o glencode.o glencode.cpp
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++ -I. -o pvbImage.o pvbImage.cpp
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++ -I. -o util.o util.cpp
      g++ -c -pipe -O2 -Wall -W -fPIC -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++ -I. -o wthread.o wthread.cpp
      rm -f libpvsmt.so.1.0.0 libpvsmt.so libpvsmt.so.1 libpvsmt.so.1.0
      g++ -Wl -Wl,-O1 -shared -lpthread -Wl,-soname,libpvsmt.so.1 -o libpvsmt.so.1.0.0 glencode.o pvbImage.o util.o wthread.o
      ln -s libpvsmt.so.1.0.0 libpvsmt.so
      ln -s libpvsmt.so.1.0.0 libpvsmt.so.1
      ln -s libpvsmt.so.1.0.0 libpvsmt.so.1.0
      rm -f libpvsmt.a
      ar cqs libpvsmt.a glencode.o pvbImage.o util.o wthread.o
      g++ -Wl,-O1 -o processviewserver main.o Mask1.o Mask2.o Mask3.o Mask4.o periodic.o maskvtk.o modal1.o qwt.o glencode.o pvbImage.o util.o wthread.o -lpthread
      make: Nothing to be done for `first'.
      make: Nothing to be done for `staticlib'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      ### building lua language bindings ###
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      make: Nothing to be done for `first'.
      ### Probe necessary components for python language binding ###
      find: `/usr/lib64': No such file or directory
      python_include=/usr/include/python2.7 /usr/include/python2.7_d /usr/include/python2.6_d /usr/include/python2.6
      python_lib=/usr/lib/python2.7/config/libpython2.7.so /usr/lib/libpython2.7.so
      g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7
      g++: fatal error: no input files
      compilation terminated.
      make: *** [qtdatabase.o] Error 4
      g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7
      g++: fatal error: no input files
      compilation terminated.
      make: *** [language_binding_rllib_wrap_python.o] Error 4
      cp: cannot stat `lib_pv.so': No such file or directory
      cp: cannot stat `lib_rllib.so': No such file or directory
      g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7
      g++: fatal error: no input files
      compilation terminated.
      make: *** [qtdatabase.o] Error 4
      g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7
      g++: fatal error: no input files
      compilation terminated.
      make: *** [language_binding_rllib_wrap_python.o] Error 4
      cp: cannot stat `lib_pv.so': No such file or directory
      cp: cannot stat `lib_rllib.so': No such file or directory
      ################################################################
      # finished !!! #
      # verify that no errors occured by running me again #
      # now run: #
      # su #
      # ./install.sh #
      # exit #
      # if you want to use Qt Designer for designing your masks, #
      # copy the plugins to Qt Designer (read designer/README.txt) #
      # Have a lot of fun (Yours pvbrowser community) #
      ################################################################
    • pvbrowser
      ... In pvb/language_bindings/build_python_interface.sh you find the following lines that set Python include and lib.
      Message 2 of 5 , Jan 16, 2012
      View Source
      • 0 Attachment
        > Trying to get pvbrowser to compile, and it appears to
        > fail on the python bindings. It successfully installs
        > and the demo runs, but I was hoping to use the python bindings.
        > Is both python 2.6 and 2.7 in the include path going to be an issue?
        > Is the failure to find /usr/lib64 relevant?
        > This box has /usr/lib and /usr/lib32 but no lib64 -
        > and is this part of the QMake configs? I'm hesitant to dive
        > in and change things because I've never touched qmake stuff before.

        In
        pvb/language_bindings/build_python_interface.sh
        you find the following lines that set Python include and lib.

        ################################################################
        if [ "x${PYTHON_INCLUDE}" = "x" ]; then
        echo "No Python Includes found. Install package python-devel !"
        exit
        fi

        export PYTHON_LIB=$(find /usr/lib64 -name "libpython2.*.so")
        if [ "x${PYTHON_LIB}" = "x" ]; then
        export PYTHON_LIB=$(find /usr/lib -name "libpython2.*.so")
        if [ "x${PYTHON_LIB}" = "x" ]; then
        echo "No Python library found. Install package python-devel !"
        exit
        fi
        fi
        ################################################################
        You see, that "both python 2.6 and 2.7" could be a problem,
        since the script tries to find the installed version of python.

        Please edit build_python_interface.sh and
        export PYTHON_INCLUDE=/path/to/python/include
        export PYTHON_LIB=/path/to/python/lib.so

        manually and run the script again.
      • pvbrowser
        #!/bin/bash # # Build the Python interface for ProcessViewServer Library # echo ### Probe necessary components for python language binding ### # HERE WE TEST
        Message 3 of 5 , Jan 16, 2012
        View Source
        • 0 Attachment
          #!/bin/bash
          #
          # Build the Python interface for ProcessViewServer Library
          #
          echo "### Probe necessary components for python language binding ###"

          # HERE WE TEST IF SWIG IS INSTALLED
          if [ "${1}" = "swig" ]; then
          SWIG=$(which swig)
          if [ "x${SWIG}" = "x" ]; then
          echo "swig not found. Install package swig !"
          exit
          fi
          fi

          # HERE SET PYTHON_INCLUDE MANUALLY
          export PYTHON_INCLUDE=$(find /usr/include -name "python2.*")
          if [ "x${PYTHON_INCLUDE}" = "x" ]; then
          echo "No Python Includes found. Install package python-devel !"
          exit
          fi

          # HERE SET PYTHON_LIB MANUALLY
          export PYTHON_LIB=$(find /usr/lib64 -name "libpython2.*.so")
          if [ "x${PYTHON_LIB}" = "x" ]; then
          export PYTHON_LIB=$(find /usr/lib -name "libpython2.*.so")
          if [ "x${PYTHON_LIB}" = "x" ]; then
          echo "No Python library found. Install package python-devel !"
          exit
          fi
          fi
        • london4562
          Sorry its taken a while, tried a build after your first reply, which seemed to work.. then noticed the second reply, then another clean and build to be on the
          Message 4 of 5 , Jan 16, 2012
          View Source
          • 0 Attachment
            Sorry its taken a while, tried a build after your first reply, which seemed to work.. then noticed the second reply, then another clean and build to be on the safe side..
            Basically everything appears ok with the python 2.7 directories specified. Everything makes fine there, and installs.
            When I try to use the make command in pvdevelop on a clean python project (works fine in c/c++ project):

            g++ -c -m64 -pipe -O2 -Wall -W -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/opt/pvb/pvserver -I/usr/include/python2.7
            g++: fatal error: no input files
            compilation terminated.
            make: *** [main.o] Error 4
            ready

            Is this expected behaviour for python? I thought it might be until I modified main, and it still occurred.
            Also, as it is currently experimental - there a specific python version that you recommend?

            You offer the best support I've come across! Thanks!

            --- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
            >
            >
            >
            > #!/bin/bash
            > #
            > # Build the Python interface for ProcessViewServer Library
            > #
            > echo "### Probe necessary components for python language binding ###"
            >
            > # HERE WE TEST IF SWIG IS INSTALLED
            > if [ "${1}" = "swig" ]; then
            > SWIG=$(which swig)
            > if [ "x${SWIG}" = "x" ]; then
            > echo "swig not found. Install package swig !"
            > exit
            > fi
            > fi
            >
            > # HERE SET PYTHON_INCLUDE MANUALLY
            > export PYTHON_INCLUDE=$(find /usr/include -name "python2.*")
            > if [ "x${PYTHON_INCLUDE}" = "x" ]; then
            > echo "No Python Includes found. Install package python-devel !"
            > exit
            > fi
            >
            > # HERE SET PYTHON_LIB MANUALLY
            > export PYTHON_LIB=$(find /usr/lib64 -name "libpython2.*.so")
            > if [ "x${PYTHON_LIB}" = "x" ]; then
            > export PYTHON_LIB=$(find /usr/lib -name "libpython2.*.so")
            > if [ "x${PYTHON_LIB}" = "x" ]; then
            > echo "No Python library found. Install package python-devel !"
            > exit
            > fi
            > fi
            >
          • london4562
            Ok, no idea what changed, but it made it slightly further and needed manual lib/include paths added in the project also - again probably due to the 2 python
            Message 5 of 5 , Jan 16, 2012
            View Source
            • 0 Attachment
              Ok, no idea what changed, but it made it slightly further and needed manual lib/include paths added in the project also - again probably due to the 2 python versions I'm running.
              Think it was a stale executable or something. Either way all's well now.
              Cheers

              --- In pvbrowser@yahoogroups.com, "london4562" <steve.with.the.hood@...> wrote:
              >
              > Sorry its taken a while, tried a build after your first reply, which seemed to work.. then noticed the second reply, then another clean and build to be on the safe side..
              > Basically everything appears ok with the python 2.7 directories specified. Everything makes fine there, and installs.
              > When I try to use the make command in pvdevelop on a clean python project (works fine in c/c++ project):
              >
              > g++ -c -m64 -pipe -O2 -Wall -W -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/opt/pvb/pvserver -I/usr/include/python2.7
              > g++: fatal error: no input files
              > compilation terminated.
              > make: *** [main.o] Error 4
              > ready
              >
              > Is this expected behaviour for python? I thought it might be until I modified main, and it still occurred.
              > Also, as it is currently experimental - there a specific python version that you recommend?
              >
              > You offer the best support I've come across! Thanks!
              >
              > --- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@> wrote:
              > >
              > >
              > >
              > > #!/bin/bash
              > > #
              > > # Build the Python interface for ProcessViewServer Library
              > > #
              > > echo "### Probe necessary components for python language binding ###"
              > >
              > > # HERE WE TEST IF SWIG IS INSTALLED
              > > if [ "${1}" = "swig" ]; then
              > > SWIG=$(which swig)
              > > if [ "x${SWIG}" = "x" ]; then
              > > echo "swig not found. Install package swig !"
              > > exit
              > > fi
              > > fi
              > >
              > > # HERE SET PYTHON_INCLUDE MANUALLY
              > > export PYTHON_INCLUDE=$(find /usr/include -name "python2.*")
              > > if [ "x${PYTHON_INCLUDE}" = "x" ]; then
              > > echo "No Python Includes found. Install package python-devel !"
              > > exit
              > > fi
              > >
              > > # HERE SET PYTHON_LIB MANUALLY
              > > export PYTHON_LIB=$(find /usr/lib64 -name "libpython2.*.so")
              > > if [ "x${PYTHON_LIB}" = "x" ]; then
              > > export PYTHON_LIB=$(find /usr/lib -name "libpython2.*.so")
              > > if [ "x${PYTHON_LIB}" = "x" ]; then
              > > echo "No Python library found. Install package python-devel !"
              > > exit
              > > fi
              > > fi
              > >
              >
            Your message has been successfully submitted and would be delivered to recipients shortly.