Need help with System environment variables - OCC 6.5.3
first of all i want to thank you guys for your great help and posts in this forum. I was able to solve a lot of problems on my own with help of some nice posts.
But now i want to write my one occ application with Visual Studio 2008 running on Win 7 32 Bit Professional Edition. To avoid errors caused by my own i want to debug/launch the qt-samples included in the occ-package.
If i start VS 2008 using the msvc.bat located at ./samples/qt/tutorial/ everything works fine and i can start the sample with in debug or release mode and there are no errors.
But in the future i don't want - better lets say - i don't know how to use the msvc.bat for my own applications. So i decide to launch the VC++ Project file without the msvc.bat. There was no compile or linker error but when the application starts it says "The program can't start because TKernel.dll is missing from your computer. Try reinstalling the program to fix this problem".
For sure i started to search the forum and google to find solutions for this problem. Most of them are like this "You have an error with your System environment variables". In the OCC-Doc i found these hints:
You can define the environment variables with env.bat script located in the OpenCACADE
The additional environment settings necessary for compiling OCCT libraries and samples by Microsoft Visual Studio can be set using script env_build.bat located in the same folder."
First i have to say, that there is no env_build.bat located in ./ros/. Maybe this hint is for old versions and not for 6.5.3. I launched the env.bat files for many times. Sometimes with admin privileges, sometimes without. Sometimes with the windows command prompt or with the one of Visual Studio. But all have the same result: Nothing changed.
There are no variables set by this bat. I checked this with Computer-->Properties-->Advanced system settings-->Environment variables and with using the "set"-command in command prompt.
So i think i have to set all variables manually? Can somebody tell me which variables i have to set? I looked into the env.bat but i don't understand all of the concatenation of variables and commands in it. It would be nice if someone can post his occ-variables as an output of "set" in command prompt.
Thanks in advance!