DiscussionsIssue archiveOther usage issues

Archived discussion

How to Release OCC app.?

Other usage issuesWed, 01/12/2011 - 05:189 replies

Browse this forum
QuestionAuthor

Hi.

I have developed an app, and want to release it.
I'm using static library mfc, and compile release mode.
Resultingly, I got .exe file. but it don't be execute.

.exe file and dll files(using occ dll files in my app.) located in same folder(TKOpenGL too.).
execute .exe file, i've got this message. "Fetal error during graphic initialization"

somebody help me~~!

Discussion

9 archived replies

Posts are displayed in their archived order.

01Commenter-1

nice, can you tell us, what kind of application it is?
Thanks,
V

02Author

it's simply CNC program.

I think it's associate CSF_GraphicShr. but i don't think any solution....T_T

03Commenter-1

Very nice, congrats, looking forward to trying it.
V

04Author

I trying this method.

1. add "OSD_Environment OSD("CSF_GraphicShr", "TKOpenGl.dll");" in ~app.cpp

2. check CSF_GraphicShr path (in Run.bat)

3. add TKOpenGl.lib on Project

but I don't solve this problem...
What something I missed?

05Commenter-2

You might want to check this http://opencascade.blogspot.com/2009/03/distributing-your-software.html

Hope this helps.
Commenter-2

06Author

Hi Roman.
I saw this posting yesterday.
but I don't know exactly yet.

this posting say, "- CSF_GraphicShr (set to TKOpenGl.dll or a full path where it is located)".

so, I using OSD_Environment, and check my bat file.
but don't solved this problem...

could you give me some advice?

07Commenter-2

Try to debug your app and find out why the development version works and your to-be-distributed version does not.
Create a bat file setting all environment variables (avoid OSD_Environment at first) and launch your app.
The root-cause seems to be in environment so focus on that.
Good luck!
Commenter-2

08Commenter-3

Hi,
You may also use as template the "env.bat" file located in OCCT ...\ros\ directory.
I hope it will help you tune your local environment.

Regards

09Author

I solved this problem!! wow!!!
Thank you very much, everyone!!

It's all thanks to you!!!^0^