File not found error when compiling FreeCAD

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
josephlzd
Posts: 1
Joined: Mon Aug 03, 2020 12:38 am

File not found error when compiling FreeCAD

Post by josephlzd »

Code: Select all

[ 65%] Building CXX object src/Mod/Fem/App/CMakeFiles/Fem.dir/FemMeshShapeNetgenObject.cpp.o
In file included from /users/liuzhidan/FreeCAD/src/Mod/Measure/App/AppMeasure.cpp:32:
In file included from /users/liuzhidan/FreeCAD/src/Mod/Measure/App/Measurement.h:29:
In file included from /users/liuzhidan/FreeCAD/src/App/DocumentObject.h:28:
In file included from /users/liuzhidan/FreeCAD/src/App/TransactionalObject.h:27:
In file included from /users/liuzhidan/FreeCAD/src/App/ExtensionContainer.h:33:
/users/liuzhidan/FreeCAD/src/Base/Reader.h:32:10: error: 'xercesc/framework/XMLPScanToken.hpp' file not found with <angled> include; use "quotes" instead
#include <xercesc/framework/XMLPScanToken.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "xercesc/framework/XMLPScanToken.hpp"
In file included from /users/liuzhidan/FreeCAD/src/Mod/Measure/App/AppMeasure.cpp:32:
In file included from /users/liuzhidan/FreeCAD/src/Mod/Measure/App/Measurement.h:29:
In file included from /users/liuzhidan/FreeCAD/src/App/DocumentObject.h:28:
In file included from /users/liuzhidan/FreeCAD/src/App/TransactionalObject.h:27:
In file included from /users/liuzhidan/FreeCAD/src/App/ExtensionContainer.h:33:
In file included from /users/liuzhidan/FreeCAD/src/Base/Reader.h:32:
/users/liuzhidan/FreeCAD/src/Base/xercesc/framework/XMLPScanToken.hpp:25:10: fatal error: 'xercesc/util/XMemory.hpp' file not found
#include <xercesc/util/XMemory.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
I've copied xercesc directory into /usr/include/ but it doesn't work.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: File not found error when compiling FreeCAD

Post by vocx »

josephlzd wrote: Mon Aug 03, 2020 12:41 am I've copied xercesc directory into /usr/include/ but it doesn't work.
Follow the Compile on Linux instructions.

Maybe you don't have libxerces installed.

Code: Select all

sudo apt install libxerces-c-dev
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply