On 27/03/2015 at 20:21, xxxxxxxx wrote:
Cinema 4D Version: 15
Platform: Windows ;
Language(s) : C++ ;
I created a new shader on my Mac, in Xcode. It built nicely and is working great.
Now I was trying to compile it in Windows and just installed Visual Studio 2012. I tried duplicating the cinema4dsdk project into my plugin folder, rename it to my plugin name, remove the .cpp files from it and adding mine.
But I can't build
It keeps telling me:
The project file '' has been renamed or is not longer in the solution.
Can anyone explain me what are the steps to create a new project, using the res and source folders that I already have?
On 28/03/2015 at 07:06, xxxxxxxx wrote:
I tried following tutorials that are for Visual Studio 2010 but it seems that Visual Studio 2012 works in a different way (and has a new GUI).
I also tried to follow tutorials for Visual Studio 2012 but they are for R16 and it now has a framework thingy that makes it different and I was not able to follow the directions.
Is there any tutorial out there (I will keep looking, though) for Visual Studio 2012 AND R15?
On 28/03/2015 at 07:15, xxxxxxxx wrote:
I had the same issue, but my solution is the lazy man's solution. I don't change the name of the sdk project, I only change the name of the Output File in the Linker/General properties of the project.
On 28/03/2015 at 08:45, xxxxxxxx wrote:
So, you use the cinema4dsdk.vcxproj file with the original name?
On 28/03/2015 at 08:52, xxxxxxxx wrote:
Yep, I simply copy all of the relevant project files into a new project folder with my plugin's source files, and then open the sdk project and replace the source files with mine, then add the search paths specific to my plugin and change the name of the output file.
On 28/03/2015 at 09:14, xxxxxxxx wrote:
What is that of the search paths, Dan?
I just have a res folder and a source folder. Do I need to change anything more?
On 28/03/2015 at 10:35, xxxxxxxx wrote:
Well, not everything in Cinema 4D is in the "resources/res" folder. For example, if you need to access Xpresso nodes' data, you'll need to add the path "resources/modules/gv/expressiontag/res/description" to your project's search paths.
Or if you have some common functions that several of your plugins share, you'd add the path to those files. For example I have a folder named "CD_Global" in my plugins folder that has all of the common c++ and header files that several of my plugins use.
On 28/03/2015 at 11:56, xxxxxxxx wrote:
Oh, good to know that
Luckily, my project is very, very simple.
I will fire up Parallels and try that as soon as I get home.
Thank you, Dan.
On 28/03/2015 at 12:09, xxxxxxxx wrote:
On 28/03/2015 at 13:41, xxxxxxxx wrote:
Damn!!! I tried to do what you said and I still get the same error
I just copied the cinema4dsdk.vcxproj and projectsettings.props files to my folder. In my folder I already have my res and source folders.
Then, I changed the Output file name to $(ProjectDir)MyPlugin.cdl64
And then, when I choose Build Solution, I get the same error:
On 28/03/2015 at 14:01, xxxxxxxx wrote:
I'd get rid of the "$(ProjectDir)" and have it just say "MyPlugin.cdl64".
The files that I copy into the new folder are:
On 29/03/2015 at 04:06, xxxxxxxx wrote:
Thank you once again, Dan.
I finally managed to build my plugin
On 30/03/2015 at 07:54, xxxxxxxx wrote:
glad you got your problem fixed.
I just want to add that there are guides on setting up projects for Visual Studio (and Xcode as well) in the new SDK documentation, e.g. Visual Studio: Setup Project by Cloning cinema4dsdk