Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / msvc8.0 support?

msvc8.0 support?

msvc8.0 support?
Gennady Khokhorin 2008/01/31 23:52
OCCD News (http://www.opencascade.com/pub/doc/OCC62_Overview.pdf) stated that MSVC 2005 supported.
Installed latest OpenCASCADE6.2.0, opened samples\standard\mfc\All\all.vcproj (still vc7.1) and got 52 compilation errors, 75 warnings.
Some of which is pretty strange:
C4717: recursive on all control paths, function will cause runtime stack overflow (occ_2dviewrd.cpp, line 60)

void OCC_2dViewRD::OnFileExportImage()
{
     OCC_2dViewRD::OnFileExportImage();
...
}
What kind of function is that?

All binaries still linked with vc7.1
How rebuild pack for vc8?
Mikael Aronsson 2008/02/01 09:38
Well, if the method look's like that then the compiler is correct, isn't it ;o)

I guess you have two choices, you can fix the error's yourself or you can wait until OCC has been updated to work with VC 8, it hasn't been out very long so I guess you will have to wait a while or stick with VC 7 until then.

You should not expect any rapid movement here, the free version is not updated very often, if you are a paying customer it's a different thing I guess.

Gennady Khokhorin 2008/02/01 22:27
Weird thing I can not install pack on machine with vc7.1, InstallShield just dissapered after "Preparing Java VM" dialog box.
Mikael, do you know what else besides creating 17 System variables setupWindows.exe doing?
Regards.
Joe 2008/02/04 22:56
I do not run the JavaVM on my development box - the install appears to only require the Java Virtual Machine for setting environment vars and some registry entries...

I simply copied the OCC directory and edited a bat file for the needed environment vars (use CMD SET command or Computer Properties... to obtain) and copied any OCC registry entries onto my devel box and it seems to work... [it didn't take long, so I think it worked first try, I'll have to check to see if I have copies..]

I also am running OCC on VS 2008 Beta (release versions are available @ http://msdn2.microsoft.com/en-us/vstudio/products/default.aspx) - I do recall making some minor corrections for the loop vars (as mentioned) - I believe I hand fixed several and then simply searched for a compiler switch (most legacy warnings/errors are toggleable).

I downloaded OCC last summer and haven't spent more than about 3 hours with it (just got on here to see if its been upgraded). I noticed its C# support was weak, but I did get it working with C#... noticed some posts on this forum regarding C# I might read. C++ is no problem for me, but I have been doing a lot with C# in recent years.



Hesham Nasif 2008/08/05 03:40
Dear Joe

I already made a wrapper for Net because i also use C#, the wrapper is working fine on a machine with OCC installed, do you have an idea how to deploy the applications for other machine with no occ
Paul Camilleri 2008/02/01 10:17
For OpenCASCADE version 6.2 I importeded all the VC7 solution files to VC8+SP1 without any problems apart from a small number of minor errors in the source files like:

for(int i=0;i<5;++) { ... }
for(i=0;i<5;i++) { ... }

VC8 considers "i" in the first loop as going out of scope and is therefore undefined in the second loop.

I then built debug and release versions of the whole library without a hitch along with all the examples and they work just fine.

I also compiled the whole library for debug and release from the command line using the .MAK files proided with no problems apart from the fact that the manifest files are generated seperately.
P Dolbey 2008/02/01 19:33
There's a simpler method; see

http://www.opencascade.org/org/forum/thread_10904/

You may need to reconvert your 2003 projects to 2005

Pete
Gennady Khokhorin 2008/02/01 19:42
Paul,
I'm saying it is not msvc version issue but obvious basic cpp errors (example above)
P Dolbey 2008/02/01 20:23
I have both a vanilla and tweaked source code tree for Open Cascade. In my teaked version I just commented out the line to make it compile. However its actually on line 35 not 60 in my source.

However, I suspect that

OCC_2dViewRD::OnFileExportImage();

should really read

OCC_2dView::OnFileExportImage();

i.e. call the parent class function first to do the real work, then show the function source code. The same pattern, and therefore error, can be seen in all the functions in the class - funny its not really been noticed before !!!! I haven't tested this option, but I don't do much with MFC these days.

Pete
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map