Skip to content

error: use of undeclared identifier 'SIP_NULLPTR' #92

@Atomzdq

Description

@Atomzdq

(Python_3.5.2-PyQt_5.10) zhoudeMacBook-Pro:build zhou$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV -DBUILD_STATIC=ON -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=OFF ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/zhou/Documents/cura-environment/libArcus-master/build
(Python_3.5.2-PyQt_5.10) zhoudeMacBook-Pro:build zhou$ make -j4
[ 35%] Built target Arcus
[ 47%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart1.cpp.o
[ 47%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart2.cpp.o
[ 58%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart3.cpp.o
[ 58%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart0.cpp.o
In file included from In file included from In file included from /Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipArcuspart0.cpp/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipArcuspart3.cpp::1010:
:
/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipArcuspart2.cpp:10:
In file included from /Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipArcuspart1.cpp:10:
/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipAPIArcus.h/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipAPIArcus.h::163163::99:: warningwarning: : /Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipAPIArcus.h:163:9: warning:
'sipConvertFromSliceObject'
'sipConvertFromSliceObject' macromacro redefinedredefined [-Wmacro-redefined][-Wmacro-redefined]

/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipAPIArcus.h:163:9: warning:
'sipConvertFromSliceObject' macro redefined [-Wmacro-redefined]
'sipConvertFromSliceObject' macro redefined [-Wmacro-redefined]
#define sipConvertFromSliceObject sipAPI_Arcus->api_convert_from_slice_object#define sipConvertFromSliceObject sipAPI_Arcus->api_convert_from_slice_object#define sipConvertFromSliceObject sipAPI_Arcus->api_convert_from_slice_object
#define sipConvertFromSliceObject sipAPI_Arcus->api_convert_from_slice_object
/usr/local/include/sip.h:2021:9: note: previous definition is here
/usr/local/include/sip.h#define sipConvertFromSliceObject PySlice_GetIndicesEx:
2021:9
/usr/local/include/sip.h:2021note:: 9:previous definition noteis: hereprevious
definition is here
#define sipConvertFromSliceObject PySlice_GetIndicesEx
#define sipConvertFromSliceObject PySlice_GetIndicesEx
/usr/local/include/sip.h:2021:9: note: previous definition is here
#define sipConvertFromSliceObject PySlice_GetIndicesEx
/Users/zhou/Documents/cura-environment/libArcus-master/build/python/sipArcuspart3.cpp:29:9: error: use
of undeclared identifier 'SIP_NULLPTR'
SIP_NULLPTR,

What I should do to solve this problem?Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions