Installing OpenCascade on Cygwin on a PC

Is it possible to install OpenCascade 4.0 on Cygwin (http://cygwin.com/) installed on a PC running Windows XP? Has anyone done this?

Cathy

maverick's picture

No, It is definitely a good idea but I had no time to try it yet.
Do other people succeed ?

mv

Jerome Robert's picture

The compilation of static library work fine but I had some trouble with dynamic library. I did not make any runtime test.

Paolo Mosna's picture

Actually I can compile but i cannot link. If I run the make command (under cygwin on windows 2000) I have:
make all-recursive
make[1]: Entering directory `/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0'
Making all in src
make[2]: Entering directory `/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0/src'
Making all in TKernel
make[3]: Entering directory `/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0/src/TKernel'
/bin/sh ../../libtool --mode=link --tag CXXDL g++ -g -O2 -DCSFDB -o libTKernel.la -rpath /cygdrive/c/soft/openCASCADE/openCASCADE-bin-4.0-src/lib
...

and, after a while:

creating reloadable object files...
creating a temporary reloadable object file: .libs/libTKernel.la-2.o

/usr/i686-pc-cygwin/bin/ld.exe -r -o .libs/libTKernel.la-1.o .libs/Dico_DictionaryOfInteger_0.o ...

.libs/Dico_DictionaryOfTransient_0.o: In function `Dico_DictionaryOfTransient::GetCopied(Handle_Dico_DictionaryOfTransient const &)':
/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0/src/TKernel/../../inc/Dico_Dictionary.gxx:433: reloc refers to symbol `text$__tf18Standard_Transient' which is not being output
/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0/src/TKernel/../../inc/Dico_Dictionary.gxx:433: reloc refers to symbol `Standard_Transient::text$GetRefCount(void) const' which is not being output
/cygdrive/c/soft/openCASCADE/CASCADE-src-4.0/src/TKernel/../../inc/Dico_Dictionary.gxx:433: reloc refers to symbol `text$__tf12MMgt_TShared' which is not being output
.libs/Dico_IteratorOfDictionaryOfTransient_0.o: In funct ...

A long list of such errors?

Does anybody have an idea about this problem?

Paolo.

maverick's picture

No, It is definitely a good idea but I had no time to try it yet.
Do other people succeed ?

mv

Paolo Mosna's picture

Actually I'm trying to compile OC libraries under windows 2000 with Cygwin. I will let you know if I will be able to complete the process.
Beside I would like to know if somebody else has already done such a work.

Thanks.