My idea to start would be to limit the effort to a very FreeCAD centric offering. Python 2.7 version only.
Is the audience/utility large enough to justify the effort?
If so, First question is ifcopenshell-python is all that FreeCAD needs now? I believe so based on the Windows builds.
Are python-dev, swig, and, oce the only dependencies?
The first step would be to build ifcopenshell-python27 on trusty locally (I'm gonna do this anyway)
Thoughts, ideas, advice?
EDIT: next question
Code: Select all
[100%] Built target _ifcopenshell_wrapper
sgrogan@sgrogan-HP-ZBook-17:~/ifcOpenShell-Python27$ make install
[ 39%] Built target IfcParse
[ 69%] Built target IfcGeom
[ 90%] Built target IfcConvert
[ 93%] Built target IfcGeomServer
[ 96%] Swig source
[100%] Building CXX object ifcwrap/CMakeFiles/_ifcopenshell_wrapper.dir/IfcPythonPYTHON_wrap.cxx.o
Linking CXX shared module _ifcopenshell_wrapper.so
[100%] Built target _ifcopenshell_wrapper
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:36 (FILE):
file cannot create directory: /usr/local/include/ifcgeom. Maybe need
administrative privileges.
make: *** [install] Error 1
EDIT 2: After "sudo make install" What do you guys think of a few sample .ifc files in the FreeCAD/Examples GitHub repo?
I get what I think are some KDE specific warnings, but it looks like this will work.
Code: Select all
Active view is Unnamed : 1[*] (at 0x3aebe20)
Active document is Unnamed (at 0x3adfe10)
KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 31 (X_GrabKeyboard)
Resource id: 0x0
Active view is Unnamed : 1[*] (at 0x3aebe20)
Finished importing.