How to change the source code of OCC 5.0

Hello and good evening,

I am working on OCC 5.0 using Linux and would like to change and work around on the original source code.
The sources are placed under /opt/OpenCascDe/ros/src
and most logically all header are placed under /opt/OpenCascade/ros/inc.

Now one of my main-projects lie in my local directory /home/mike/projects/OCC/

It seems that whatever I change in the source files of OCC, it has no effect (for example screen-messages) on my own projects, although my Makefile includes the correct headers/sources (see above) and all necessary path-information are okay.
Must I recompile the whole OCC library to gain an .so-file ... ???

What am I missing ? Or am I just too tired right now to think coherently ?

Some hints ?

Mike

C R Johnson's picture

For this to work, you should be using 5.1 and have built from source yourself using the new ( THANK YOU VERY VERY MUCH! it is wonderful. ) autoconf build process.

Once you have done this you will have a directory for each toolkit under $CASROOT/adm/make, with makefiles ( and just as importantly the Makefile.am) for each toolkit.

If for example you modify the file XSDRAW/XSDRAW_Functions.cxx you need to figure out which toolkit builds this package:

grep XSDRAW_Functions.cxx adm/make/*/Makefile.am

and then rebuild just that toolkit, in this case TKXSDRAW

cd adm/make/TKXSDRAW
make

which will only rebuild the changed files and relink the library.

You can also just do make at the top level, but it is much much slower as it will go though every single package.

- Cliff

seong seok Lee's picture

give me the opencascede ver.5.0

seong seok Lee's picture

give me the opencascede ver.5.0

seong seok Lee's picture

give me the opencascede ver.5.0