Importexport-Iges file not recognised

Dear supervisors

I recently installed OCCT652 and Qt-4.6.4. I compiled IESample.pro and run 'run.sh'
finally when I used TIT_SAMPLE screen to Import Iges file (example hammer.iges and bearing.iges), It doesn't recognized this file type, then I couldn't import it? Any Idea?

Game

Forum supervisor's picture

Dear Game,
Check please definitions of the next variables(it should be like below):
RES_DIR="${ROOT_DIR}/res"
CSF_ResourcesDefaults="${RES_DIR}"
CSF_IEResourcesDefaults="${RES_DIR}"
Regards

Game Milky's picture

Dear Supervisor,

Thank you for your information. I don't have such variables in my env_DRAW.sh file before! But,I added according to your suggestion but the same problem! I have only env_DRAW.sh script with system environment definitions. I here attached the file, incase another problem exist in this file.

There are no env.csh and env.ksh scripts as described in system environment variables.

I couldn't proceed anymore, help!

Attachments: 
Forum supervisor's picture

Dear Game,
It seems some misunderstanding.
You should use 'run.sh' file located in root directory of the Sample.
See it attached.
Regards

Attachments: 
Game Milky's picture

Dear Supervisor

Yes, I used run.sh to open the screen, my problem was, when i navigate through and try to open the file, it doesn't recognize the file type (say: hammer.iges)!
say: MNU_FILE--->MNU_FILE_IMPORT--->MNU_IMPORT_IGES, then I navigate through directories to import hammer or bearing iges files which provided with OCCT it doesn't recognise the file type.

I saw some warnings during 'make':

/usr/local/opecascade-6.5.2/inc/TCollection_ExtendedString.hxx:251:61: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
src/View.cxx: In constructor ‘View::View(Handle_AIS_InteractiveContext, QWidget*)’:
src/View.cxx:79:13: warning: unused variable ‘visualID’ [-Wunused-variable]
src/View.cxx: At global scope:
src/View.cxx:182:6: warning: unused parameter ‘e’ [-Wunused-parameter]
src/View.cxx:193:6: warning: unused parameter ‘e’ [-Wunused-parameter]
src/View.cxx:588:6: warning: unused parameter ‘point’ [-Wunused-parameter]
src/View.cxx:672:6: warning: unused parameter ‘nFlags’ [-Wunused-parameter]
src/View.cxx:672:6: warning: unused parameter ‘point’ [-Wunused-parameter]
src/View.cxx:678:6: warning: unused parameter ‘nFlags’ [-Wunused-parameter]
src/View.cxx:779:6: warning: unused parameter ‘x’ [-Wunused-parameter]
src/View.cxx:779:6: warning: unused parameter ‘y’ [-Wunused-parameter]
src/View.cxx:812:6: warning: unused parameter ‘x’ [-Wunused-parameter]
src/View.cxx:812:6: warning: unused parameter ‘y’ [-Wunused-parameter]
src/View.cxx:818:6: warning: unused parameter ‘x’ [-Wunused-parameter]
src/View.cxx:818:6: warning: unused parameter ‘y’ [-Wunused-parameter]
src/View.cxx:861:6: warning: unused parameter ‘theMenu’ [-Wunused-parameter]

I have no idea, if it might be the cause?

In addition, when I used run.sh file you send me in-steady of mine, I face an error
bash: ./run.sh: Permission denied

with what i have before, it works fine! Atleast it open the screen, though I face the above problem.

Regards

Game!