Compiling SDK Problems
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 08:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;---------
While attempting to compile the SDK using the project files given to us we are getting errors, fatal errors, and warnings. After supressing the warnings with pragmas its also giving me dead-end problems like missing delcarations and such. I have not modified the files other than the fact that they were converted to MSVC 7.0 project format. Some members of our team use MSVC 6.0 still, I will have them attempt to check it out.
Here is my detailed build log:
http://www.universeunlimited.com/dox/buildlog.htm
I have changed nothing. I merely imported the project workspace which doesnt touch the source code. The only problems i've ever had whild importing older project scenes were when they implented STL versions which were not compliant to the standard in prior versions of MSVC, particurally 6.0, which let you devistate your project without you even knowing and had memory leaks in certain STL headers. But other than that I open and import older projects all the time with no problems. Either way, all the settings are there for your review in the build log. I hope that helps.Thanks,
Dustin Juliano
President/CEO
Ethereal Evolution, Inc. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 08:16, xxxxxxxx wrote:
I forgot to mention:
I am using the workspace from the [c4droot]\Plugins\cinema4dsdk.
It included for me the _api_8 lib and the examples as well. I isolated the build to the _api_8 becuase it was causing the errors first. The build log is only for that sub-project inside the workspace.We are running Windows XP Professional (latest updates as always from windowsupdate and service releases) and MSVC++ .NET.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 10:42, xxxxxxxx wrote:
...well, from the distance this sound like you still need to do a few neccessary adjustments as lined out in the SDK info here:
<[URL-REMOVED]>
HTH
Kabe
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 11:42, xxxxxxxx wrote:
I think this is another issue than the one Kabe points at. Some versions of the API are crippled by a pc/mac conversion. I think that's why it complains about "expected a newline", where there are only mac newlines.
The simplest way to repair the files are to open and save them. (I guess there's a batch tool somewhere.)
As far as I know, only 8.012, and the very first 8.100 updaters, had this error. If you're still using 8.012 (contrary to the message header) you could download the updater and see if that helps. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 11:45, xxxxxxxx wrote:
Ok.... lets be strait here. I have followed the instructions to the T. Now im more than willing to bet it is indeed somthing I am doing wrong, but, I have followed the instructions as per the SDK and verified the settings that came with the project itself. All the include directories are there, as you can see inside the build log which I posted for you.
A missing del specs error is not a sign of a missing include, unless, there is a fatal error telling me it could not find that include. The warnings about data at the end of pre-processors doesnt bother me, I supressed them, but its the errors that is stopping it from compiling.
Do you have compiled binaries of your LIB/DLL or which-ever, that can be downloaded? It would save the hassle of working with this. I've checked, and re-checked my settings. If it is somthing im doing wrong, I'd like to know.
Also this is the project that came with the program. Its even a MSVC project, just a slightly older version.
Does anyone have any suggestions other than pointing me to the documentation?
-D -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 11:47, xxxxxxxx wrote:
Quote: Originally posted by Mikael Sterner on 17 August 2003
>
> * * *
>
> I think this is another issue than the one Kabe points at. Some versions of the API are crippled by a pc/mac conversion. I think that's why it complains about "expected a newline", where there are only mac newlines.
>
> The simplest way to repair the files are to open and save them. (I guess there's a batch tool somewhere.)
>
> As far as I know, only 8.012, and the very first 8.100 updaters, had this error. If you're still using 8.012 (contrary to the message header) you could download the updater and see if that helps.
>
> * * *Hmm. Very cool. Now thats an answer. I am using 8.1, so I guess i'll do the save-open method? Wouldn't it be easier to get the API as a LIB for download?
D -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 20:37, xxxxxxxx wrote:
Ok. I have a lot of new information regarding this issue.
First of all. I have written a program that will convert source code from Macintosh(r) line-feeds to PC compatible line-feeds. I tested it and it works. If you get any bugs with it, let me know. It is pure C++. Its an easy to use singleton class that is exception safe.
Its released under GPL, meaning its free to use, even in commercial apps. The license and everything is included in the single file for easier distribution.
http://www.universeunlimited.com/dox/mac2pc.cpp
Ok, next I'll have to say while testing this I actually killed my original problem. I deleted the Resource\_api folder and then re-ran the C4D setup. It copied the files over. A quick check in the Hex Editor revealed that everything was normal, CRLF's, no stand alone CR's. Well, I luckily had done copies on the HD of the original install before I started messing around.
My only estimation is that while installing some of the modules it copied them over in a Macintosh(r) format? What im saying is that to reproduce this. You can do a clean uinstall, then reinstall C4D, then all the modules. It will be in the Macintosh(r) line-feeds. Then if you were to delete the Resource\_api\ folder and then re-run the setup program, it appears to copy the files with the proper/compatible line-feeds. Thus, I wasn't able to further test the source on a large scale. The recursive code would be the only thing in question and I use that extensively in other parts of our engine tools.
Any comments? I will still work on trying to get it to compile, but I figure perhaps Maxon can look at that program. If its helpful to me, it will surely be helpful to others who have had or will have the same problem. Or for somone who wants to easily convert source code over from the Mac!
Cheers,
Dustin Juliano
President/CEO
Ethereal Evolution, Inc. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/08/2003 at 20:56, xxxxxxxx wrote:
I forgot to mention: the mac2pc program transforms entire directory heiarchies. You give it a root for your project and it will convert hundreds of files over in one swoop. Its also very fast.