IFC Viewer ifcplusplus

This forum section is only for IFC-related issues
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

Cyril
Posts: 133
Joined: Wed Aug 23, 2017 5:04 pm
Location: Geneva (Switzerland)
Contact:

Re: IFC Viewer ifcplusplus

Post by Cyril »

bernd wrote: Sun Sep 08, 2019 9:27 pm updated https://github.com/berndhahnebach/ifcpl ... its/master
Thanks Bernd !
The AUR recipe I updated few months ago still works like a charm.
I blog about HVAC / BIM / Energy : pythoncvc.net. If you like you can follow the RSS feed.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

PR accepted, means upstream head does compile on Linux too :-) ATM my repo only fixes the icons ands an example and some informations.

https://github.com/berndhahnebach/ifcpl ... its/master
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: IFC Viewer ifcplusplus

Post by paullee »

Previous build (on Fedora 29?) seem does not run on Fedora 30... trying to rebuild have following errors, no idea yet what is/are missing.

Any idea? Thanks!

Code: Select all

paullee@localhost build]$ cmake ../
-- Build type: Release
-- ------------------------------------------------------------------------
-- Boost version: 1.69.0
-- Boost version: 1.69.0
-- Qt5 is used
-- Boost version: 1.69.0
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OSGDB_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSGFX_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSGGA_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSGTEXT_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSGUTIL_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSGVIEWER_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt
OSG_LIBRARY_DEBUG (ADVANCED)
    linked by target "SimpleViewerExample" in directory /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt

-- Configuring incomplete, errors occurred!
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

which code are you trying to compile. This has been fixed in ifcquery upstream ... https://github.com/ifcquery/ifcplusplus ... 50360ece94
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: IFC Viewer ifcplusplus

Post by paullee »

bernd wrote: Mon Oct 07, 2019 7:06 pm This has been fixed in ifcquery upstream ... https://github.com/ifcquery/ifcplusplus ... 50360ece94
Thanks for the hint and fix, downloaded and cmake is good now, make is in progress....
bernd wrote: Mon Oct 07, 2019 7:06 pm which code are you trying to compile/11a41e6f4e1bfb195e2d3e6356197f50360ece94
I am afraid I do not understand what is it mean by 'code', I have minimal knowledge in compiling... python version?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: IFC Viewer ifcplusplus

Post by paullee »

Unfortunately, when it comes to end of 99%, it fails with errors I have no idea about :)

Code: Select all

[ 99%] Building CXX object examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/viewer/moc_ViewerWidget.cpp.o
[ 99%] Building CXX object examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o
[ 99%] Building CXX object examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/main.cpp.o
[ 99%] Building CXX object examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/cmd/CmdRemoveSelectedObjects.cpp.o
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IfcPlusPlusSystem.cpp:38:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h: In member function ‘void RepresentationConverter::subtractOpenings(const std::shared_ptr<IfcElement>&, std::shared_ptr<ProductShapeData>&)’:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:1076:127: error: invalid initialization of reference of type ‘const std::shared_ptr<BuildingEntity>&’ from expression of type ‘std::__shared_ptr<IfcElement, __gnu_cxx::_S_atomic>::element_type*’ {aka ‘IfcElement*’}
 1076 |           CSG_Adapter::computeCSG( product_meshset, opening_meshset, carve::csg::CSG::A_MINUS_B, result, this, ifc_element.get() );
      |                                                                                                                ~~~~~~~~~~~~~~~^~
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/Sweeper.h:26,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:59,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IfcPlusPlusSystem.cpp:38:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/CSG_Adapter.h:785:102: note: in passing argument 6 of ‘void CSG_Adapter::computeCSG(std::shared_ptr<carve::mesh::MeshSet<3> >&, std::shared_ptr<carve::mesh::MeshSet<3> >&, carve::csg::CSG::OP, std::shared_ptr<carve::mesh::MeshSet<3> >&, StatusCallback*, const std::shared_ptr<BuildingEntity>&)’
  785 |   shared_ptr<meshset_t >& result, StatusCallback* report_callback, const shared_ptr<BuildingEntity>& entity )
      |                                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/main.cpp:36:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h: In member function ‘void RepresentationConverter::subtractOpenings(const std::shared_ptr<IfcElement>&, std::shared_ptr<ProductShapeData>&)’:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:1076:127: error: invalid initialization of reference of type ‘const std::shared_ptr<BuildingEntity>&’ from expression of type ‘std::__shared_ptr<IfcElement, __gnu_cxx::_S_atomic>::element_type*’ {aka ‘IfcElement*’}
 1076 |           CSG_Adapter::computeCSG( product_meshset, opening_meshset, carve::csg::CSG::A_MINUS_B, result, this, ifc_element.get() );
      |                                                                                                                ~~~~~~~~~~~~~~~^~
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/Sweeper.h:26,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:59,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/main.cpp:36:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/CSG_Adapter.h:785:102: note: in passing argument 6 of ‘void CSG_Adapter::computeCSG(std::shared_ptr<carve::mesh::MeshSet<3> >&, std::shared_ptr<carve::mesh::MeshSet<3> >&, carve::csg::CSG::OP, std::shared_ptr<carve::mesh::MeshSet<3> >&, StatusCallback*, const std::shared_ptr<BuildingEntity>&)’
  785 |   shared_ptr<meshset_t >& result, StatusCallback* report_callback, const shared_ptr<BuildingEntity>& entity )
      |                                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/cmd/CmdRemoveSelectedObjects.cpp:24:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h: In member function ‘void RepresentationConverter::subtractOpenings(const std::shared_ptr<IfcElement>&, std::shared_ptr<ProductShapeData>&)’:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:1076:127: error: invalid initialization of reference of type ‘const std::shared_ptr<BuildingEntity>&’ from expression of type ‘std::__shared_ptr<IfcElement, __gnu_cxx::_S_atomic>::element_type*’ {aka ‘IfcElement*’}
 1076 |           CSG_Adapter::computeCSG( product_meshset, opening_meshset, carve::csg::CSG::A_MINUS_B, result, this, ifc_element.get() );
      |                                                                                                                ~~~~~~~~~~~~~~~^~
In file included from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/Sweeper.h:26,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:59,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:34,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/IncludeGeometryHeaders.h:29,
                 from /run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/examples/SimpleViewerExampleQt/src/cmd/CmdRemoveSelectedObjects.cpp:24:
/run/media/paullee/Data_40G_EXT3/Temp_Download/ifcplusplus_bernd/ifcplusplus-master/IfcPlusPlus/src/ifcpp/geometry/Carve/CSG_Adapter.h:785:102: note: in passing argument 6 of ‘void CSG_Adapter::computeCSG(std::shared_ptr<carve::mesh::MeshSet<3> >&, std::shared_ptr<carve::mesh::MeshSet<3> >&, carve::csg::CSG::OP, std::shared_ptr<carve::mesh::MeshSet<3> >&, StatusCallback*, const std::shared_ptr<BuildingEntity>&)’
  785 |   shared_ptr<meshset_t >& result, StatusCallback* report_callback, const shared_ptr<BuildingEntity>& entity )
      |                                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
make[2]: *** [examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/build.make:165: examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/build.make:178: examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/main.cpp.o] Error 1
make[2]: *** [examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/build.make:191: examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/src/cmd/CmdRemoveSelectedObjects.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:202: examples/SimpleViewerExampleQt/CMakeFiles/SimpleViewerExample.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[paullee@localhost build]$ 
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

which code do you use? My repo or the original repo or another one? How do you get the code? Download zip by the use of git, or however?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: IFC Viewer ifcplusplus

Post by paullee »

bernd wrote: Tue Oct 08, 2019 4:59 am which code do you use? My repo or the original repo or another one? How do you get the code? Download zip by the use of git, or however?
Thanks, I download the Zip from your repo.
Post Reply