THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/11/2008 at 10:49, xxxxxxxx wrote:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
i try my first steps in C++ and Microsofts Visual C++ 2008 Express Edition (deutsch) with a 5 year old tutorial (2003). I installed VC++ and I opened the file "cinema4dsdk.dsw" (...Maxon/Cinema4D R10/plugins/cinema4dsdk...)
I saw two Projects: the api_v8 and cinema4dsdk. The intention was to create a windows-cdl-file, witch contains all SDK exmaples. But I can not built the SDK examples sucessfully. I got the message, both projects were too old. I can not understand this message.
The Buildprotocol shows a missing "Umgebungsvariable" called "WebDeployPatch" and 51 Errors.
What is wrong? I need some help.
On 11/11/2008 at 10:56, xxxxxxxx wrote:
I suggest to use Microsoft Visual C++ 2005 where the project files were made for. An express edition of 2005 should be avaible too..
On 11/11/2008 at 11:37, xxxxxxxx wrote:
I have 2005 and not 2008 but it could also be that you are trying to load the .dsw (VC++ 6.0) and not the .vcproj (VC++ 2003 and later). The much older .dsw will not translate and build well at all in later versions of VC++.
If that is not it, I'd go with Shawni's suggestion. Just be aware that the Express Edition has no 64-bit target support at all.
On 11/11/2008 at 14:28, xxxxxxxx wrote:
I coudn´t find a download for VC++2005, so I try it with 2008 online-installer. Now i opened the vcproj-file. The Conversion-Wizard started and works succesfull with some warnings. What would be the next right step?
If I start the Build-Process I read the error:
"fatal error C1083: Cannot open include file: 'c4d.h': No such file or directory"
In the cinema4dsdk (cpp-files) I found the line >#include "c4d.h"< very often. But the c4d.h-file exists on my harddisc in the directory "...maxon\cinema4d r10\resourse\_api". Why VC++ ignores this file on my computer?
In this discussion-board there are no topics about C1083 or the c4d.h-file. In the Visual C++ developer center I found an entry about "Fatal Error C1083". Unfortunately I do not know, how that me is to help.
All beginnings are difficult.
On 11/11/2008 at 14:36, xxxxxxxx wrote:
I tried it with 2008 too, but it did not work. Take a look here to get the installer of 2005:
I think you will have much faster success to get this to work when using this edition of MSVC.
On 11/11/2008 at 16:31, xxxxxxxx wrote:
thank you very much for this link. Now I tried with VC2005 express. There are pieces of news: After conversion I read only ONE error:
LINK : fatal error LNK1104: cannot open file 'odbc32.lib'
I will search for help with Google... but I am grateful for each information.
On 12/11/2008 at 02:05, xxxxxxxx wrote:
I never managed to get it running properly with the Express versions, something was always missing. So I finally purchased VS2005. Just open the .vcproj and everything works fine. Of course, you have to compile the API project, before you can work on your plugin.
For VS 2003, if I remember I could open the .sln file, and it was converted. Worked fine, but of course some settings from the project were lost (e.g. all settings for x64 platform, because the cross compiler came with VS2005).
On 12/11/2008 at 04:23, xxxxxxxx wrote:
I don't know if you have to install the Microsoft SDK on 2005, too. If its installed and imported in MSVC everything should work, otherwise you have to download it manually.
On 12/11/2008 at 07:34, xxxxxxxx wrote:
Now I think the Express Edition is really the problem. Very sadly. C++ is my first try for a new hobby. I don´t know, whether its a good idea to buy it. Perhaps I should remain with COFFEE and Xpresso.
You mean the PSDK? Unfortunately this is not part of the Express Edition, because EE is for free. I found Users with the same problem and some links for download the psdk, but the links are too old. All microsofts VisualStudio-websites are revised.
I ask myself, which problem would be to be solved more simply: The missing "WebDeployPatch" ore the fatal error C1083 ("Cannot open include file: 'c4d.h': No such file or directory") with VC++2008EE or the fatal error LNK1104 ("cannot open file odbc32.lib") with VC++2005EE. What do you think?
On 12/11/2008 at 12:09, xxxxxxxx wrote:
I found this Answer for my odbc32.lib-problem: "go to the project of the plugin settings... search the linker settings... and remove odbc32.lib odbccp32.lib from
If its right, where I find the plugin settings and the linker settings?? Can not find something like this. What happens if I delete something?
On 12/11/2008 at 15:41, xxxxxxxx wrote:
In VSC++2008 express needs to convert the sdk projectfile to the actual VSc++ version ... and the many errors are resulting because you have not set the include directorys ... normally webdeploypath is pointing to these.
You have to open cinema4dsdk.vcproj in c++2008 and
then he will convert it. Just hit ok and setup your Includepaths.
... right click on cinema4dsdk in the Project explorer
and choose Properties ... then choose c/c++ and there you can add additional include directories.
These you have to include:
Path to your c4d directory...\resources\_api
Path to your c4d directory...resources\_api\c4d_preview
Path to your c4d directory...resources\_api\c4d_customgui
Path to your c4d directory...resources\_api\c4d_libs
Path to your c4d directory...resources\_api\c4d_gv
Path to your c4d directory...resources\modules\Modeling\res\description
Path to your c4d directory...resources\res\description
Path to your c4d directory...resources\modules\objects\res\description
Path to your c4d directory...resources\_api_maxon\source
I hope this is helping you to setup VSC++2008.
If anyone knows how to setup the webdeploypath,
i would be thankful.
On 13/11/2008 at 05:53, xxxxxxxx wrote:
Thank you very much, Antimatter.
It works with VC++2008EE: 0 error, 0 warning.
On 13/11/2008 at 06:06, xxxxxxxx wrote:
Originally Microsoft droped web deployment for VS2008. It seems it found its way back into VS2008 again but you have to install it manually. Check this link and do a google about htis topic.
vs2008 web deployment rtw
I have not tested this myself yet.
On 13/11/2008 at 07:08, xxxxxxxx wrote:
@Padawan your welcome.
I just found useless information about webdeploymentpath in google.
Thank you for the link ... i will try out tonight and post a solution if i get it to work.
On 30/11/2008 at 13:16, xxxxxxxx wrote:
I am completly new to C4D. I am just a c++ programmer and I have to make plugin for camera in C4d. I downloaded the SDK and tried it with VC++2008 and had the same problem "Cannot open include file: 'c4d.h': No such file or directory".
I setup a new environment variable $webdeploypath and pointed it to "C:\maxon\resource" and it worked. 0 error, 0 warning.
But I dont know what to do next. How do I run it? Can someone point me to where do I start to learn creating a plugin.
On 08/12/2008 at 07:06, xxxxxxxx wrote:
I would need a bit more info to help you. What kind of plugin do you want to create? Check the SDK docu for the different types of plugins. Also I would recommend to learn the basics of Cinema 4D.
On 08/12/2008 at 18:55, xxxxxxxx wrote:
I need a plugin that will allow to me to do camera rotation using some XYZ data and set "field view" . Which example plugin will help me to do this? Is there a simple tutorial that will explain me the basics of Cinema 4D?
Thank you for your help.
On 08/12/2008 at 19:43, xxxxxxxx wrote:
You really should start a new inquiry in a new post but...
If the XYZ data is in a strict Euler format, you can build the matrix for the camera using the MatrixRotX/Y/Z() methods and set to the camera's global or local matrix (dependent upon parenting). Remember to multiply the rotations in right to left order for the proper sequence (XYZ for instance) :
Matrix rmat = MatrixRotZ() * MatrixRotY() * MatrixRotX();
The camera values can be found in the Resource:res:description:Ocamera.res file.