[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-dev] Cannot build PyHLA 1.1.0 on Linux
From: |
Nicolas Huynh |
Subject: |
[certi-dev] Cannot build PyHLA 1.1.0 on Linux |
Date: |
Thu, 10 Mar 2011 10:54:31 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
Hello,
I'm trying to compile PyHLA 1.1.0 on Linux CentOS with Python 2.4.
PyHLA sources were downloaded from :
http://ftp.igh.cnrs.fr/pub/nongnu/certi/contrib/PyHLA/PyHLA-1.1.0-Source.tar.gz
Trying to build with cmake then make runs into error:
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:
In function 'EXC SetFromPyException(PyObject*)':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:125:
error: there are no arguments to 'PyExceptionClass_Check' that depend on
a template parameter, so a declaration of 'PyExceptionClass_Check' must
be available
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:125:
error: (if you use '-fpermissive', G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:126:
error: there are no arguments to 'PyExceptionClass_Name' that depend on
a template parameter, so a declaration of 'PyExceptionClass_Name' must
be available
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:
In function 'PyObject* PyObject_GetCallback(FederateAmbassadorObject*,
const char*)':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:34:
error: invalid conversion from 'const char*' to 'char*'
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:34:
error: initializing argument 2 of 'PyObject*
PyObject_GetAttrString(PyObject*, char*)'
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:
In function 'EXC SetFromPyException(PyObject*) [with EXC =
RTI::FederateInternalError]':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:88:
instantiated from here
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:125:
error: 'PyExceptionClass_Check' was not declared in this scope
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:126:
error: 'PyExceptionClass_Name' was not declared in this scope
if I add -fpermissive into the CXX_MAKE_FLAGS, I still have a
compilation error:
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:
In function 'EXC SetFromPyException(PyObject*)':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:125:
warning: there are no arguments to 'PyExceptionClass_Check' that depend
on a template parameter, so a declaration of 'PyExceptionClass_Check'
must be available
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:126:
warning: there are no arguments to 'PyExceptionClass_Name' that depend
on a template parameter, so a declaration of 'PyExceptionClass_Name'
must be available
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:
In function 'PyObject* PyObject_GetCallback(FederateAmbassadorObject*,
const char*)':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:34:
warning: invalid conversion from 'const char*' to 'char*'
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:34:
warning: initializing argument 2 of 'PyObject*
PyObject_GetAttrString(PyObject*, char*)'
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:
In function 'EXC SetFromPyException(PyObject*) [with EXC =
RTI::FederateInternalError]':
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/federateambassador.cpp:88:
instantiated from here
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:125:
error: 'PyExceptionClass_Check' was not declared in this scope
/home/nhuynh/CERTI/python/PyHLA-1.1.0/PyHLA-1.1.0-Source/hla/_rti/exceptions.h:126:
error: 'PyExceptionClass_Name' was not declared in this scope
Anyone has an idea ?
Thanks !
Nicolas Huynh
nicolas_huynh.vcf
Description: Vcard
- [certi-dev] Cannot build PyHLA 1.1.0 on Linux,
Nicolas Huynh <=