The undefined symbol error means that you have not linked something.
Precisely it seems that when you compile your code you should add to
your project also plylib.cpp (that you can find in the vcglib/wrap
directory.
once you link it the problem should disappear.
Have you successfully compiled the samples under the vcglib/apps/sample
directory?
cheers
p.
Jacob Montiel Lopez wrote:
> Hello
>
> It's me again, looks like the problem I'm having with the vcglib is
> not from Xcode. I tried to compile from terminal with no success.
> Actually I changed the location of the vcglib to /usr/include since I
> was using the location for Meshlab. Now I have different errors but
> they are coming from the same part of the code.
>
> Errors
> Undefined symbols:
> "vcg::ply::PlyFile::PlyFile()", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PlyFile::~PlyFile()", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PlyFile::ElemNumber(int) const", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PlyFile::AddToRead(char const*, char const*, int, int,
> unsigned long, int, int, int, int, unsigned long)", referenced from:
> vcg::ply::PlyFile::AddToRead(vcg::ply::PropDescriptor const&)in
> cc1AxD3V.o
> "vcg::ply::PlyFile::compile(vcg::ply::PlyElement*)", referenced from:
> vcg::ply::PlyFile::SetCurElement(int) in cc1AxD3V.o
> "vcg::ply::PlyFile::Read(void*)", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::interpret_texture_name(char const*, char const*,
> char*)", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PropDescriptor::memtypesize() const", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PlyFile::Open(char const*, int)", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> "vcg::ply::PlyFile::ElemName(int)", referenced from:
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
> vcg::tri::io::ImporterPLY<MyMesh>::Open(MyMesh&, char const*,
> vcg::tri::io::PlyInfo&)in cc1AxD3V.o
>
> I'm using a MacBook Pro with MacOS 10.5.5
>
> At this point I would like to use only vcglib instead of the full
> Meshlab, what do you recommend me?
> Thank you
>
> Jacob
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Meshlab-devel mailing list
> Mes...@li...
> https://lists.sourceforge.net/lists/listinfo/meshlab-devel
>
>
--
Paolo Cignoni -- Senior Researcher
Visual Computing Laboratory - ISTI - CNR
http://vcg.isti.cnr.it/~cignoni
ISTI - CNR
Via Moruzzi 1,
56124 Pisa
ITALY
|