View Revisions: Issue #3912

Summary 0003912: freecad 0.18 fails to build against Python3 and Qt5
Revision 2019-03-20 18:54 by Kunda1
Description Hi,

I tried on Mageia Cauldron to build latest freecad against Qt5 and Python3 but it fails to build with the following error:


PyTools.c.o CMakeFiles/FreeCADBase.dir/PreCompiled.cpp.o /usr/lib64/libpython3.7m.so /usr/lib64/libxerces-c.so /usr/lib64/libboost_filesystem.so /usr/lib64/libboost_program_options.so /usr/lib64/libboost_regex.so /usr/lib64/libboost_system.so -lboost_thread -lpthread /usr/lib64/libboost_chrono.so /usr/lib64/libboost_date_time.so /usr/lib64/libboost_atomic.so -lpthread /usr/lib64/libz.so /usr/lib64/libQt5Core.so.5.12.1 -lutil -ldl /usr/lib64/libzipios.so -lpython3.7  /usr/bin/ld: CMakeFiles/FreeCADBase.dir/ParameterPy.cpp.o:(.data.rel.ro._ZTVN2Py15PythonExtensionIN4Base14ParameterGrpPyEEE[_ZTVN2Py15PythonExtensionIN4Base14ParameterGrpPyEEE]+0x28): undefined reference to `Py::PythonExtensionBase::print(_IO_FILE*, int)' /usr/bin/ld: CMakeFiles/FreeCADBase.dir/ParameterPy.cpp.o:(.data.rel.ro._ZTVN4Base14ParameterGrpPyE[_ZTVN4Base14ParameterGrpPyE]+0x28): undefined reference to `Py::PythonExtensionBase::print(_IO_FILE*, int)' collect2: error: ld returned 1 exit status make[2]: *** [src/Base/CMakeFiles/FreeCADBase.dir/build.make:1242: lib/libFreeCADBase.so] Error 1 make[2]: Leaving directory '/home/david/mgarepo/freecad/BUILD/FreeCAD-0.18/build' make[1]: *** [CMakeFiles/Makefile2:686: src/Base/CMakeFiles/FreeCADBase.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....]

Attached full compile log.

Regards,
David
Revision 2019-03-20 09:32 by daviddavid
Description Hi,

I tried on Mageia Cauldron to build latest freecad against Qt5 and Python3 but it fails to build with the following error:

[code=pytools.c.o cmakefiles/freecadbase.dir/precompiled.cpp.o /usr/lib64/libpython3.7m.so /usr/lib64/libxerces-c.so /usr/lib64/libboost_filesystem.so /usr/lib64/libboost_program_options.so /usr/lib64/libboost_regex.so /usr/lib64/libboost_system.so -lboost_thread -lpthread /usr/lib64/libboost_chrono.so /usr/lib64/libboost_date_time.so /usr/lib64/libboost_atomic.so -lpthread /usr/lib64/libz.so /usr/lib64/libqt5core.so.5.12.1 -lutil -ldl /usr/lib64/libzipios.so -lpython3.7 /usr/bin/ld: cmakefiles/freecadbase.dir/parameterpy.cpp.o:(.data.rel.ro._ztvn2py15pythonextensionin4base14parametergrppyeee[_ztvn2py15pythonextensionin4base14parametergrppyeee]+0x28): undefined reference to `Py::PythonExtensionBase::print(_IO_FILE*, int)' /usr/bin/ld: CMakeFiles/FreeCADBase.dir/ParameterPy.cpp.o:(.data.rel.ro._ZTVN4Base14ParameterGrpPyE[_ZTVN4Base14ParameterGrpPyE]+0x28): undefined reference to `Py::PythonExtensionBase::print(_IO_FILE*, int)' collect2: error: ld returned 1 exit status make[2]: *** [src/Base/CMakeFiles/FreeCADBase.dir/build.make:1242: lib/libFreeCADBase.so] Error 1 make[2]: Leaving directory '/home/david/mgarepo/freecad/BUILD/FreeCAD-0.18/build' make[1]: *** [CMakeFiles/Makefile2:686: src/Base/CMakeFiles/FreeCADBase.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....][/code]

Attached full compile log.

Regards,
David