Error when building Open Cascade with "make" on Linux

hi ,

I'm try to build Open Cascade 7.0 with "make" on Linux, and the error message in the terminal is :

[ 95%] Linking CXX shared library ../../lin64/gcc/lib/libTKDraw.so
/usr/bin/ld: cannot find -ltcl8.6
collect2: ld returned 1 exit status
make[2]: *** [lin64/gcc/lib/libTKDraw.so.7.0.0] Erreur 1
make[1]: *** [src/TKDraw/CMakeFiles/TKDraw.dir/all] Erreur 2
make: *** [all] Erreur 2

I look in the folder, the file does not present her as "libTKDraw" is set. The same for libTcl (i have libTcl8.5 but i find open cascade seeks 8.5 & 8.6).

and I put away the build directory with "cmake 3.5.0". the message displayed in the terminal and the following:

-- Info: TCL is used by OCCT
-- Info: TCL version isn't found
-- Info: TK is used by OCCT
-- Info: TK version isn't found
-- Info: Freetype is used by OCCT
-- Info: TKIVtk and TKIVtkDraw toolkits excluded due to VTK usage is disabled
-- Info: The directories of 3rdparty headers:
    /usr/include/tcl
    /usr/include
    /usr/include/freetype2
-- Info: The directories of 3rdparty libraries:
    /usr/lib
--
Info: (11:37:34) Start collecting all OCCT header files into /home/bdaval/Desktop/build/inc ...
-- Info: (11:37:34) Compare FILES with files in package directories...
-- Warning. File /home/bdaval/Desktop/opencascade-7.0.0/src/StepFile/step.yacc is not listed in /home/bdaval/Desktop/opencascade-7.0.0/src/StepFile/FILES
-- Warning. File /home/bdaval/Desktop/opencascade-7.0.0/src/StepFile/step.lex is not listed in /home/bdaval/Desktop/opencascade-7.0.0/src/StepFile/FILES
-- Info: (11:38:25) Create header-links in inc folder...
-- Info: (11:38:28) Checking headers in inc folder...
-- Info: (11:38:31) End the collecting
-- Warning: TCL version has not been specified by CSF_TclLibs defining thus it will be used as 8.6
-- Warning: TK version has not been specified by CSF_TclTkLibs defining thus it will be used as 8.6
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bdaval/Desktop/build

 

it does not work but  I have already install the library the different libraries i don't understand the configuration and i hope get help or explanation .

thank you ,greeting

 

daval baptiste's picture

my problem is solved, then the compilation program seeks libtcl8.5 &  libtcl8.6 and libtk8.5  & libtk8.6.

in my computer I have the version 8.4 & 8.5.
to solve the problem was renamed 8.5 => 8.6 with the command "cp".

Madhu Vanam's picture

Hi,

I have followed steps to configure, generate and build OCCT on Xcode using https://dev.opencascade.org/doc/overview/html/occt_dev_guides__building_..., all the steps were successful and was able to launch XCode using xcode.sh but to start DRAWEXE, i don't see draw_cbp.sh in OCCT Root Directory.

Running the script "./draw_cbp.sh xcd [d]" gives no such file or directory (obvious). Am i missing something??

Any help is appreciated.

Thank you,

Madhu

Attachments: