Menu

#402 Missing include for mpirxx.h?

v1.0_(example)
open
nobody
None
1
2015-02-15
2014-06-17
EugenioR
No

Hello,

I just downloaded and unzipped on OpenSuse 12.2. External libs are compiled with no error. Then, when I make the full, I get a

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtXml -I/usr/include/QtXmlPatterns -I/usr/include/QtScript -I/usr/include -I../.. -I../../../../vcglib -I../../external/glew-1.7.0/include -I/usr/X11R6/include -I. -o filter_csg.o filter_csg.cpp
In file included from filter_csg.cpp:29:0:
gmpfrac.h:5:20: fatal error: mpirxx.h: No such file or directory
compilation terminated.

If I manually add -I../../external/inc/linux-g++/mpir-2.4.0/, the filter compiles flawlessly.

Discussion

  • Alexander Masalskikh

    I have same problem on x64 Debian. Does anybody have an idea how to compile it? I have tried old solutions with commenting strings, but it is now working.

     

    Last edit: Alexander Masalskikh 2014-08-03
  • Mike

    Mike - 2014-09-30

    I faced same problem on ubuntu 12.04 (64 bits) to compile meshlab and all plugins.
    I found the problem was QMAKESPEC variable was not defined (linux-g++-64 in my case). You can check value with:

    qmake -query QMAKESPEC
    

    First, in vcglib/wrap/ply/plystuff.h, include file unistd.h (to use the access function), so it looks like this:

    #ifdef WIN32
    #include <io.h>
    #else
    #include <unistd.h>
    #endif
    

    Then, in meshlab/src/meshlabplugins/filter_csg/filter_csg.pro, add lines for platform linux-g++-64:

    linux-g++-64:INCLUDEPATH += ../../external/inc/linux-g++/mpir-2.4.0
    linux-g++-64:LIBS += ../../external/lib/linux-g++/libmpirxx.a ../../external/lib/linux-g++/libmpir.a
    

    Finally, I compiled with commands:

    export QMAKESPEC=/usr/share/qt4/mkspecs/linux-g++-64
    cd meshlab/external
    qmake -recursive external.pro
    make
    cd ..
    qmake -recursive meshlab_full.pro
    make
    

    Build programs are in meshlab/src/distrib

     

Log in to post a comment.