Menu

Problem building on Intrepid

Help
martinmeba
2008-11-10
2013-04-06
  • martinmeba

    martinmeba - 2008-11-10

    Ok.  I am probably doing something dumb and any help would be greatly appreciated.

    I set three environmental variables:
    PYTHON_PATH = /usr/include/python2.5
    PYTHON_LIB = /usr/lib/python2.5
    PYTHONQT_ROOT =  /home/martin/Desktop/PythonQt-1.0

    next, to build PythonQt, I went to PYTHONQT_ROOT and executed:
    qmake -o Makefile PythonQt.pro

    next, I type 'make'

    This is the output that I get:
    martin@martin-laptop:~/Desktop/PythonQt-1.0$ make
    g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DPYTHONQT_EXPORTS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/Include -I/PC -I/ -Isrc -I. -I. -o PythonQtStdDecorators.o src/PythonQtStdDecorators.cpp
    In file included from src/PythonQtStdDecorators.cpp:42:
    src/PythonQtStdDecorators.h:46:20: error: Python.h: No such file or directory
    In file included from src/PythonQt.h:46,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtWrapper.h:49:26: error: structmember.h: No such file or directory
    src/PythonQtWrapper.h:50:26: error: methodobject.h: No such file or directory
    src/PythonQtWrapper.h:51:21: error: compile.h: No such file or directory
    src/PythonQtWrapper.h:52:18: error: eval.h: No such file or directory
    In file included from src/PythonQtStdDecorators.cpp:42:
    src/PythonQtStdDecorators.h:65: error: ‘PyObject’ has not been declared
    src/PythonQtStdDecorators.h:67: error: ‘PyObject’ has not been declared
    In file included from src/PythonQt.h:46,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtWrapper.h:57: error: ‘PyTypeObject’ does not name a type
    src/PythonQtWrapper.h:62: error: ‘PyObject_HEAD’ does not name a type
    In file included from src/PythonQt.h:47,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtVariantWrapper.h:54: error: ‘PyTypeObject’ does not name a type
    src/PythonQtVariantWrapper.h:61: error: ‘PyObject_HEAD’ does not name a type
    In file included from src/PythonQt.h:48,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtMetaObjectWrapper.h:57: error: ‘PyTypeObject’ does not name a type
    src/PythonQtMetaObjectWrapper.h:62: error: ‘PyObject_HEAD’ does not name a type
    src/PythonQtMetaObjectWrapper.h:73: error: ‘PyObject’ has not been declared
    src/PythonQtMetaObjectWrapper.h:73: error: ‘PyObject’ has not been declared
    In file included from src/PythonQt.h:49,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtSlot.h:50: error: ‘PyTypeObject’ does not name a type
    src/PythonQtSlot.h:54: error: ‘PyObject’ was not declared in this scope
    src/PythonQtSlot.h:54: error: expected primary-expression before ‘)’ token
    src/PythonQtSlot.h:55: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PythonQtSlot.h:62: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PythonQtSlot.h:64: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PythonQtSlot.h:67: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PythonQtSlot.h:72: error: ‘PyObject_HEAD’ does not name a type
    src/PythonQtSlot.h:74: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtSlot.h:74: error: expected ‘;’ before ‘*’ token
    src/PythonQtSlot.h:75: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtSlot.h:75: error: expected ‘;’ before ‘*’ token
    In file included from src/PythonQt.h:50,
                     from src/PythonQtStdDecorators.cpp:43:
    src/PythonQtObjectPtr.h:58: error: expected `)' before ‘*’ token
    src/PythonQtObjectPtr.h:70: error: declaration of ‘operator=’ as non-function
    src/PythonQtObjectPtr.h:70: error: expected ‘;’ before ‘(’ token
    src/PythonQtObjectPtr.h:75: error: expected `;' before ‘bool’
    src/PythonQtObjectPtr.h:83: error: ‘PyObject’ has not been declared
    src/PythonQtObjectPtr.h:87: error: ‘PyObject’ has not been declared
    src/PythonQtObjectPtr.h:93: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtObjectPtr.h:93: error: expected ‘;’ before ‘*’ token
    src/PythonQtObjectPtr.h:95: error: expected `;' before ‘PyObject’
    src/PythonQtObjectPtr.h:95: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtObjectPtr.h:95: error: expected ‘;’ before ‘&’ token
    src/PythonQtObjectPtr.h:97: error: expected `;' before ‘operator’
    src/PythonQtObjectPtr.h:97: error: expected type-specifier before ‘PyObject’
    src/PythonQtObjectPtr.h:100: error: ‘PyObject’ has not been declared
    src/PythonQtObjectPtr.h:107: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtObjectPtr.h:107: error: expected ‘;’ before ‘*’ token
    src/PythonQtObjectPtr.h:112: error: expected `;' before ‘QVariant’
    src/PythonQtObjectPtr.h:116: error: ‘PyObject’ has not been declared
    src/PythonQtObjectPtr.h:139: error: ‘PyObject’ has not been declared
    src/PythonQtObjectPtr.h:148: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQtObjectPtr.h:148: error: expected ‘;’ before ‘*’ token
    src/PythonQtObjectPtr.h:112: error: ‘Py_file_input’ was not declared in this scope
    src/PythonQtObjectPtr.h: In constructor ‘PythonQtObjectPtr::PythonQtObjectPtr()’:
    src/PythonQtObjectPtr.h:52: error: class ‘PythonQtObjectPtr’ does not have any field named ‘_object’
    src/PythonQtObjectPtr.h: In copy constructor ‘PythonQtObjectPtr::PythonQtObjectPtr(const PythonQtObjectPtr&)’:
    src/PythonQtObjectPtr.h:54: error: class ‘PythonQtObjectPtr’ does not have any field named ‘_object’
    src/PythonQtObjectPtr.h:55: error: ‘const class PythonQtObjectPtr’ has no member named ‘object’
    src/PythonQtObjectPtr.h: In destructor ‘PythonQtObjectPtr::~PythonQtObjectPtr()’:
    src/PythonQtObjectPtr.h:63: error: ‘_object’ was not declared in this scope
    src/PythonQtObjectPtr.h:63: error: ‘Py_DECREF’ was not declared in this scope
    src/PythonQtObjectPtr.h: In member function ‘PythonQtObjectPtr& PythonQtObjectPtr::operator=(const PythonQtObjectPtr&)’:
    src/PythonQtObjectPtr.h:66: error: ‘const class PythonQtObjectPtr’ has no member named ‘object’
    src/PythonQtObjectPtr.h: In member function ‘bool PythonQtObjectPtr::operator==(const PythonQtObjectPtr&) const’:
    src/PythonQtObjectPtr.h:76: error: ‘object’ was not declared in this scope
    src/PythonQtObjectPtr.h:76: error: ‘const class PythonQtObjectPtr’ has no member named ‘object’
    src/PythonQtObjectPtr.h: In member function ‘bool PythonQtObjectPtr::operator==(int*) const’:
    src/PythonQtObjectPtr.h:84: error: ‘object’ was not declared in this scope
    src/PythonQtObjectPtr.h: In member function ‘bool PythonQtObjectPtr::operator!=(int*) const’:
    src/PythonQtObjectPtr.h:88: error: ‘object’ was not declared in this scope
    src/PythonQtObjectPtr.h: In member function ‘bool PythonQtObjectPtr::isNull() const’:
    src/PythonQtObjectPtr.h:91: error: ‘object’ was not declared in this scope
    src/PythonQtObjectPtr.h: In member function ‘void PythonQtObjectPtr::setNewRef(int*)’:
    src/PythonQtObjectPtr.h:101: error: ‘_object’ was not declared in this scope
    src/PythonQtObjectPtr.h:102: error: ‘Py_DECREF’ was not declared in this scope
    src/PythonQtObjectPtr.h: In member function ‘void PythonQtObjectPtr::setObject(int*)’:
    src/PythonQtObjectPtr.h:140: error: ‘_object’ was not declared in this scope
    src/PythonQtObjectPtr.h:141: error: ‘Py_DECREF’ was not declared in this scope
    src/PythonQtObjectPtr.h:143: error: ‘Py_INCREF’ was not declared in this scope
    In file included from src/PythonQtStdDecorators.cpp:43:
    src/PythonQt.h: At global scope:
    src/PythonQt.h:107: error: ‘PyObject’ has not been declared
    src/PythonQt.h:132: error: ‘PyObject’ has not been declared
    src/PythonQt.h:132: error: ‘PyObject’ has not been declared
    src/PythonQt.h:135: error: ‘PyObject’ has not been declared
    src/PythonQt.h:138: error: ‘PyObject’ has not been declared
    src/PythonQt.h:143: error: ‘PyObject’ has not been declared
    src/PythonQt.h:146: error: ‘PyObject’ has not been declared
    src/PythonQt.h:149: error: ‘PyObject’ has not been declared
    src/PythonQt.h:152: error: ‘PyObject’ has not been declared
    src/PythonQt.h:159: error: ‘PyObject’ has not been declared
    src/PythonQt.h:162: error: ‘PyObject’ has not been declared
    src/PythonQt.h:165: error: ‘PyObject’ has not been declared
    src/PythonQt.h:168: error: ‘PyObject’ has not been declared
    src/PythonQt.h:171: error: ‘PyObject’ has not been declared
    src/PythonQt.h:175: error: ‘PyObject’ has not been declared
    src/PythonQt.h:182: error: ‘PyObject’ has not been declared
    src/PythonQt.h:295: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQt.h:295: error: expected ‘;’ before ‘*’ token
    src/PythonQt.h:307: error: ‘PyObject’ has not been declared
    src/PythonQt.h:135: error: ‘Py_file_input’ was not declared in this scope
    src/PythonQt.h:337: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQt.h:337: error: expected ‘;’ before ‘*’ token
    src/PythonQt.h:340: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    src/PythonQt.h:340: error: expected ‘;’ before ‘*’ token
    src/PythonQtStdDecorators.cpp:47: error: ‘PyObject’ has not been declared
    src/PythonQtStdDecorators.cpp:73: error: ‘PyObject’ has not been declared
    make: *** [PythonQtStdDecorators.o] Error 1

    Any thoughts?
    Best Regards,
    Martin.

     
    • martinmeba

      martinmeba - 2008-11-10

      Never mind.  I built using the svn trunk and everything built fine.

      martin.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.