joesfer / Voronoi-Shattering

Maya plugin implementing geometry fracturing based on Voronoi Diagrams (Voronoi Shattering). Visit http://www.joesfer.com/?p=60 for further information.
http://www.joesfer.com/?p=60
GNU Lesser General Public License v3.0
42 stars 9 forks source link

Joesfer #5

Open BuckRoggers opened 6 years ago

BuckRoggers commented 6 years ago

Hello Joe, I've been struggeling for a while to generate a .mll file with your library. I tried to generate it with cmake and visual studio express without any succes. I followed your instruction and build first the Corelib then the Renderlib. Corelib is running without any warning or errors but I still have some mistake for the RenderLib like "Function already defined \RenderLib\source\geometry\tesselation\delaunay\delaunay3D.cpp"

Any idea why I keep getting this kind of error ? Which version of the Win SDk are you using for this project ? I'm using maya 2018 on window 10.

I will realy appriciate if you can give me a hand on this and I would realy like to try your Voronoï script.

Thanks in advance for your time Jérôme

joesfer commented 6 years ago

Hi Jérôme,

The code was originally developed under Maya 2011, which is ancient by now and it is thus likely that it'll need some tweaking in order to make it compile under a more recent version of the Maya API.

That being said, the issue you're describing seems more like a linking issue, where a symbol is included more than once in a given compilation unit. This could be caused by a number of reasons, such as including CPPs from one library into another. I can only guess here without more information.

I have noticed I did quite a bit of fixes on both Core and RenderLib which weren't being picked up by the submodule references. I've updated these to latest, so please give those a go. Alternatively you can update them manually by doing

cd CoreLib
git submodule update
git pull

and the same for RenderLib. Make sure they're in the latest master branch.

rakkar1974 commented 6 years ago

This is the error he is referring to, which exists in the master

voronoi-shattering\corelib\include\containers/list/list.h(74): error C2535: 'T &CoreLib::List<T,Allocator>::operator ': member function already defined or declared (compiling source file C:\Voronoi-Shattering\RenderLib\source\geometry\tesellation\delaunay\delaunay2D.cpp) 2> voronoi-shattering\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []' (compiling source file C:\Voronoi-Shattering\RenderLib\source\geometry\tesellation\delaunay\delaunay2D.cpp)

Fixed as follows: List& operator=( const List& other ); Type& operator[](int index) { return list[index]; } ConstType& operator[](int index) const { return list[index]; } / Type& operator[]( size_t index ); ConstType& operator[]( size_t index ) const;
Type& operator[]( unsigned int index ); ConstType& operator[]( unsigned int index ) const;
/ Visual Studio 2015