[Meshlab-devel] Compiling on Linux
A processing system for 3D triangular meshes
Brought to you by:
cignoni,
granzuglia
From: <12...@uf...> - 2008-10-14 02:30:11
|
mes...@li... Hi all, We have downloaded the meshlab version 1.1.1 and we compiled for MacOX 10.5 and Linux (Ubuntu 2.6.24-19-generic). On mac we got it work just fine with only a few refinements. We altered meshlab's mainserver.cpp and we added: int mask = vcg::tri::io::Mask::IOM_WEDGTEXCOORD; if (!pCurrentIOPlugin->save(extension, fileName, mm ,mask,0,0/*gla*/)) in the function ::Save in order to get the texture coordinates in the output OBJ file that is generated. Our input file is also in OBJ format with texture coordinates. In mac it works just fine, but in Linux it crashes on an assertion: meshlabserver: ../../../../sf/vcg/simplex/faceplus/component_ocf.h:518: A& vcg::face::WedgeTexCoordOcf<A, TT>::WT(int) [with A = vcg::TexCoord2<float, 1>, TT = vcg::FaceArity8<CVertexO, CEdge, CFaceO, vcg::DumTT, vcg::face::InfoOcf, vcg::face::VertexRef, vcg::face::BitFlags, vcg::face::Normal3f, vcg::face::MarkOcf, vcg::face::Color4bOcf, vcg::face::FFAdjOcf, vcg::face::VFAdjOcf>]: Assertion `(*this).Base().WedgeTexEnabled' failed. Aborted If we remove the above lines "mask = ...." it doesn't crash, but of course we didn't get the texture coordinates. The only thing that we had to change to compile meshlab on linux was to uncomment the following line in meshio.pro : UNIX:LIBS += -L../../../../CODE/LIB/LIB3DS-1.3.0/LIB3DS/ -L3DS We have also tried to replace the above line with the line used for mac compiling [MAC: instead of UNIX:], unix:LIBS += ../../../../code/lib/lib3ds-1.3.0/lib3ds/lib3ds.a Both lines compile in Linux but the crash is the same. Do you have any idea why we are getting two different behaviour for the same meshlab code ? Cheers, Victor Magalhaes ---------------------------------------------------------------- Enviado por https://webmail.ufp.pt |