Hi,
I was able to build carve with xcode on Mac, after changing everything as described. No I’m trying to build the Boolop and BoolPro sources. First thing to mention is, that you have to change the include “conio.h” to “curses.h” in “main.cpp” of Boolop. According to that you also have to add “/usr/lib/libncurses.dylib” to the Library search Paths.
As Im a complete noob with C++ I’m totally stuck right now. To build the sources I added all Maya Headers and Libraries. Additionally I added the Carve includes to the Header search Paths. My Problem is, that I’m getting new errors trying to build Carve in this context. Do I need to include the already build “libcarve.dylib” or something? Or is it required to be able to build carve in the Maya plugin context?
Here are the new Errors with Apple LLVM compiler 4.2:
ld: warning: directory not found for option '-L/Users/dennis/Library/Developer/Xcode/DerivedData/BoolPro-dljwmrbdgcefincmflmmiyzmskxa/Build/Products/Debug'
ld: warning: directory not found for option '-F/Users/dennis/Library/Developer/Xcode/DerivedData/BoolPro-dljwmrbdgcefincmflmmiyzmskxa/Build/Products/Debug'
Undefined symbols for architecture x86_64:
"carve:: csg:: CSG::Hooks::registerHook(carve:: csg:: CSG::Hook*, unsigned int)", referenced from:
carve::interpolate::Interpolator::installHooks(carve:: csg:: CSG&) in BoolPro.bundle-x86_64-master.o
"carve:: csg:: CSG:: compute(carve:: poly:: Polyhedron const*, carve:: poly:: Polyhedron const*, carve:: csg:: CSG::OP, std::unordered_set<std:: pair<carve:: poly::Vertex<3u> const*, carve:: poly::Vertex<3u> const*>, carve:: poly::hash_vertex_ptr, std::equal_to<std:: pair<carve:: poly::Vertex<3u> const*, carve:: poly::Vertex<3u> const*> > >*, carve:: csg:: CSG:: CLASSIFY_TYPE)", referenced from:
boolPro:: compute(MPlug const&, MDataBlock&) in BoolPro.bundle-x86_64-master.o
"carve:: csg:: CSG:: CSG()", referenced from:
boolPro:: compute(MPlug const&, MDataBlock&) in BoolPro.bundle-x86_64-master.o
"carve:: csg:: CSG::~CSG()", referenced from:
boolPro:: compute(MPlug const&, MDataBlock&) in BoolPro.bundle-x86_64-master.o
"carve:: poly:: Polyhedron:: Polyhedron(std::vector<carve:: poly::Face<3u>, std::allocator<carve:: poly::Face<3u> > >&, bool)", referenced from:
mesh2poly_csg(MObject, carve::interpolate::FaceVertexAttr<carve::geom::vector<3u> >&) in BoolPro.bundle-x86_64-master.o
"carve:: poly:: Polyhedron::~Polyhedron()", referenced from:
boolPro:: compute(MPlug const&, MDataBlock&) in BoolPro.bundle-x86_64-master.o
"carve:: poly::Face<3u>::Face(std::vector<carve:: poly::Vertex<3u> const*, std::allocator<carve:: poly::Vertex<3u> const*> > const&, bool)", referenced from:
mesh2poly_csg(MObject, carve::interpolate::FaceVertexAttr<carve::geom::vector<3u> >&) in BoolPro.bundle-x86_64-master.o
"carve::tagable::s_count", referenced from:
carve::tagable::tagable(carve::tagable const&) in BoolPro.bundle-x86_64-master.o
carve::tagable::tagable() in BoolPro.bundle-x86_64-master.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Would be very nice to compile that one for Mac as well!