Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile f2fd48 on Linux Platform #63

Closed
berndhahnebach opened this issue Oct 23, 2017 · 5 comments
Closed

compile f2fd48 on Linux Platform #63

berndhahnebach opened this issue Oct 23, 2017 · 5 comments

Comments

@berndhahnebach
Copy link
Contributor

berndhahnebach commented Oct 23, 2017

I gave Ifc++ a try on Linux platform. I got an error. The branch used was https://github.com/berndhahnebach/IfcPlusPlus/commits/fggit94travis The error is https://travis-ci.org/berndhahnebach/IfcPlusPlus?utm_source=email&utm_medium=notification

Does someone with better C++ knowledge than me has an idea what's going wrong?

Cheers bernd

@berndhahnebach
Copy link
Contributor Author

I got around this. berndhahnebach@3dca69b Sorry guys for the noise. I leave it open in case the build stops another time ...

bernd

@berndhahnebach
Copy link
Contributor Author

berndhahnebach commented Oct 23, 2017

I have some error at carve ... Does someone has an idea ?

$ make -j 4
[  0%] [  0%] [  0%] Building CXX object Carve/CMakeFiles/carve.dir/src/lib/convex_hull.cpp.o
Building CXX object Carve/CMakeFiles/carve.dir/src/lib/csg_collector.cpp.o
Building CXX object Carve/CMakeFiles/carve.dir/src/lib/csg.cpp.o
In file included from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-github/ifcpp/Carve/src/include/carve/mesh.hpp:881:0,
                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-github/ifcpp/Carve/src/include/carve/csg.hpp:35,
                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-github/ifcpp/Carve/src/lib/convex_hull.cpp:30:
/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-github/ifcpp/Carve/src/include/carve/mesh_impl.hpp:43:11: error: ‘ptrdiff_t’ does not name a type
   typedef ptrdiff_t difference_type;

....


/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-github/ifcpp/Carve/src/include/carve/polyhedron_impl.hpp:77:62: note: ‘vertexToIndex_fast’ declared here, later in the translation unit
     edges[i].v1 = vmap[(size_t)vertexToIndex_fast(edges[i].v1)];
                                                              ^
Carve/CMakeFiles/carve.dir/build.make:169: recipe for target 'Carve/CMakeFiles/carve.dir/src/lib/edge.cpp.o' failed
make[2]: *** [Carve/CMakeFiles/carve.dir/src/lib/edge.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'Carve/CMakeFiles/carve.dir/all' failed
make[1]: *** [Carve/CMakeFiles/carve.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
hugo@ahorn:~/Documents/dev/ifcplusplus/ifcplusplus-github/build$ 

all error in file attached ...

error.log

@berndhahnebach
Copy link
Contributor Author

berndhahnebach commented Dec 15, 2017

JFI:

comit 6bdc66b introduced a change in SimpleViewer ... Qt class QOpenGLWidget is used 6bdc66b#diff-e2093fbeec92d259fc322bdc9ada4be3R23 This class was introduced in Qt with 5.4 http://doc.qt.io/qt-5/qopenglwidget.html Means starting from the commit mentioned in the first line it will no longer be possible to compile on Qt4. Since all debian based distributions uses Openscenegraph compiled against Qt4 one has to compile Openscenegraph on Linux Debian based to get Ifc++ run on Linux.

I may give it a try ...

If any other succeed in compiling on Linux I'd be highly interested in any informations.

bernd

@berndhahnebach
Copy link
Contributor Author

I was able to compile openscengraph with qt5 and compile Ifc++ against this osg, but only for the commit e09f05d Since I'm still on Debian Jessie and on jessie qt5 is on 5.3.2 and QOpenGLWidget was intrduced with Qt5.4 I run into trouble. For sure I'm not gone compile Qt but upgrading my Debian Jessie (it is oldstable) has been overdue for a year now. Debian Stretch (stable ATM) usess Qt5.7.1 means I shluld be fine with this one. I will come back ...

@berndhahnebach
Copy link
Contributor Author

berndhahnebach commented Dec 21, 2017

The problem originally described in this issue only comes up on Debian Jessie (OldStable). On Debian Stretch (Stable) I do not have this problem at all.

BTW: Latest IfcPlusPlus does compiles on my Debian Stretch :-) i'm gone go for a small PR later on.

bernd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant