THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/01/2009 at 04:33, xxxxxxxx wrote:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C++ ;
Just realized that the Reselector plugin open source does not compile correctly with R11+ SDK. Darn. Don't enough right now to change it so it does.
Got the following compiler error:
1>.\source\ReSelector.cpp(219) : error C2664: 'Neighbor::Init' : cannot convert parameter 2 from 'BaseSelect *' to 'const CPolygon *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Any open source that works in R11 SDK? Or what does this mean exactly?
On 11/01/2009 at 06:23, xxxxxxxx wrote:
Change the line 219. I can't compile it because I am not at home - can't promise it will work but in the SDK Documentation I just found the method PolygonR() which should match with the required type.
> \> ng.Init(ob->GetPointCount(),ob->GetPolygon(),ob->GetPolygonCount(),NULL); \>
\> ng.Init(ob->GetPointCount(),ob->GetPolygon(),ob->GetPolygonCount(),NULL); \>
> \> ng.Init(ob->GetPointCount(),ob->GetPolygonR(),ob->GetPolygonCount(),NULL); \>
\> ng.Init(ob->GetPointCount(),ob->GetPolygonR(),ob->GetPolygonCount(),NULL); \>
On 14/01/2009 at 11:53, xxxxxxxx wrote:
I have been trying to build/compile the Reselector plugin with no success. I managed to get the cinemasdk plugs to work, but get this message when I try to compile the Reselector:
fatal error C1083: Cannot open include file: 'c4d.h': No such file or directory
Any help? I guess the thing that I am most curious about is whether I can create a totally separate project with the open source plugs (ie. not have to place it into the plugin folder or sdk folder)? As long as I have the directories linked properly I should be able to do this, right?
On 14/01/2009 at 13:20, xxxxxxxx wrote:
i feel that i am getting closer... here is my latest compiling error:
LINK : cinema4dsdk.cdl not found or not built by the last incremental link; performing full link
Creating library \\Midwayfs01\Staff\rperrine\CINEMA4DR11010 Demo\plugins\cinema4dsdk\obj\cinema4dsdk\Win32_Deb ug\cinema4dsdk.cdl.lib and object \\Midwayfs01\Staff\rperrine\CINEMA4DR11010 Demo\plugins\cinema4dsdk\obj\cinema4dsdk\Win32_Deb ug\cinema4dsdk.cdl.exp
Main.obj : error LNK2019: unresolved external symbol "int __cdecl RegisterReSelector(void)" ([email protected]@YAHXZ) referenced in function "int __cdecl PluginStart(void)" ([email protected]@YAHXZ)
cinema4dsdk.cdl : fatal error LNK1120: 1 unresolved externals
is this something simple or overlooked?
On 15/01/2009 at 01:50, xxxxxxxx wrote:
Any help? The other thing that I cannot understand is why the code for ReSelector does not showup in the solution explorer? I placed the cpp file in the same directory within the sdk, but it does not show up?
On 15/01/2009 at 02:01, xxxxxxxx wrote:
Which version of VisualStudio are you using?
On 15/01/2009 at 02:08, xxxxxxxx wrote:
On 15/01/2009 at 02:52, xxxxxxxx wrote:
okay, figured out how to add the source code into the project, but get this message still:
main.obj : error LNK2019: unresolved external symbol "int __cdecl RegisterReSelector(void)" ([email protected]@YAHXZ) referenced in function "int __cdecl PluginStart(void)" ([email protected]@YAHXZ)
2>cinema4dsdk.cdl : fatal error LNK1120: 1 unresolved externals
On 15/01/2009 at 03:04, xxxxxxxx wrote:
Have you added both "Main.cpp" and "ReSelector.cpp" files to your solution?
I got it working here and will later upload the whole project as VS2005 project.
On 15/01/2009 at 03:31, xxxxxxxx wrote:
thanks, matthias. not at all certain what i'm doing incorrectly, but look forward to your project...
both reselector.cpp and main.cpp are present. what i did was included registers for reselector in the main.cpp of the sdk. is this what i should be doing?
On 15/01/2009 at 04:49, xxxxxxxx wrote:
Here the link to the complete VS2005 project. It should work right out of the box. Just open the "Reseletor.sln" file and hit the F7 key (shortcut to compile).
On 15/01/2009 at 05:29, xxxxxxxx wrote:
thanks for the link, but it does not work.
as soon as I open the .sln file, i get:
The following error has occurred during XML parsing:
File: C:\Documents and Settings\rperrine\Desktop\ReSelector Project\ReSelector.vcproj
Property sheet file '..\..\resource\_api_lib\DebugWin32.vsprops' was not found or failed to load.
The file 'C:\Documents and Settings\rperrine\Desktop\ReSelector Project\ReSelector.vcproj' has failed to load.
what the heck is going on???
On 15/01/2009 at 05:33, xxxxxxxx wrote:
Could it be that you didn't extract the archive into your plugin directory?
On 15/01/2009 at 07:02, xxxxxxxx wrote:
finally, success! i was having some strange issues with VS. rebooted the comp. and tried again.