← Back to team overview

yade-users team mailing list archive

[Question #680316]: wrong path autogens for two include hpp

 

New question #680316 on Yade:
https://answers.launchpad.net/yade/+question/680316

hello,

when I try to compile the latest yade trunk (15-04-2019) I got two worng generated path :

here the rror 
Building CXX object gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o
cd /home/oger/Yade/build_april-qt5/gui && /usr/bin/c++  -DBOOST_MATH_DISABLE_FLOAT128=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSUITESPARSE_VERSION_4 -DYADE_ODEINT -D_GLViewer_EXPORTS -I/home/oger/Yade/build_april-qt5/gui/_GLViewer_autogen/include -I/home/oger/Yade/trunk -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -I/usr/include/eigen3 -I/usr/include/vtk-8.1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/suitesparse -I/home/oger/Yade/build_april-qt5 -I/usr/local/include/QGLViewer -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtOpenGL  -fPIC -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -std=c++11 -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include -DQGLVIEWER_FOUND -DYADE_OPENGL -DYADE_QT5  -DYADE_CGAL  -DLINSOLV -DFLOW_ENGINE -DYADE_GL2PS -g -fPIC   -ftrack-macro-expansion=0 -save-temps -fstack-protector-strong -DYADE_DEBUG -g -DEIGEN_DONT_VECTORIZE -DEIGEN_DONT_ALIGN -DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT -DCGAL_DISABLE_ROUNDING_MATH_CHECK -frounding-math -fPIC -std=gnu++11 -o CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o -c /home/oger/Yade/build_april-qt5/gui/_GLViewer_autogen/mocs_compilation.cpp
In file included from /home/oger/Yade/build_april-qt5/gui/_GLViewer_autogen/mocs_compilation.cpp:2:0:
/home/oger/Yade/build_april-qt5/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:9:10: fatal error: ../../../../../../Yade/trunk/gui/qt5/GLViewer.hpp: Aucun fichier ou dossier de ce type
 #include "../../../../../../Yade/trunk/gui/qt5/GLViewer.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

clearly for the moc_GLViewer.cpp and moc_OpenGLManager.cpp we have the path errors:
more gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp |grep hpp
** Meta object code from reading C++ file 'GLViewer.hpp'
#include "../../../../../../Yade/trunk/gui/qt5/GLViewer.hpp"

 more gui/_GLViewer_autogen/OXRBQHTNNB/moc_OpenGLManager.cpp|grep hpp
** Meta object code from reading C++ file 'OpenGLManager.hpp'
#include "../../../../../../Yade/trunk/gui/qt5/OpenGLManager.hpp"

instead of something like:
   more gui/_GLViewer_autogen/OXRBQHTNNB/moc_OpenGLManager.cpp|grep hpp
** Meta object code from reading C++ file 'OpenGLManager.hpp'
#include "../../../../../Yade/trunk/gui/qt5/OpenGLManager.hpp"

one less '../" will be good 
I have corrected insside the two files and I can compile but I guess that he solution is to correct during the make process!
but where??


Luc

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.