Archived issue #0024426
CMake ignores 3rd party options; env.sh does not set "CASROOT" environment variable
Description
CMakeLists.txt which now placed in the root of occt contains following switchers for 3rd party:
SET(USE_GL2PS OFF CACHE BOOL "whether use gl2ps product or not")
SET(USE_FREEIMAGE OFF CACHE BOOL "whether use freeimage product or not")
SET(USE_TBB OFF CACHE BOOL "whether use tbb product or not")
SET(USE_OPENCL OFF CACHE BOOL "whether use OpenCL or not")
but, generated CMakeList.txt for toolkits (e.g. for TKService: occt/adm/cmake/TKService/CMakeList.txt) contains "if" statement with "3RDPARTY_" prefix:
if(3RDPARTY_USE_FREEIMAGE)
list( APPEND TKService_USED_LIBS freeimage )
endif()
Also the option "USE_OPENCL" is not checked anywhere, OpenCl always added to the library linking (check CMakeList.txt for TKOpenGl).
Moreover after "make install" command copied "env.sh" script does not contain path setting for "CASROOT" environment variable.
SET(USE_GL2PS OFF CACHE BOOL "whether use gl2ps product or not")
SET(USE_FREEIMAGE OFF CACHE BOOL "whether use freeimage product or not")
SET(USE_TBB OFF CACHE BOOL "whether use tbb product or not")
SET(USE_OPENCL OFF CACHE BOOL "whether use OpenCL or not")
but, generated CMakeList.txt for toolkits (e.g. for TKService: occt/adm/cmake/TKService/CMakeList.txt) contains "if" statement with "3RDPARTY_" prefix:
if(3RDPARTY_USE_FREEIMAGE)
list( APPEND TKService_USED_LIBS freeimage )
endif()
Also the option "USE_OPENCL" is not checked anywhere, OpenCl always added to the library linking (check CMakeList.txt for TKOpenGl).
Moreover after "make install" command copied "env.sh" script does not contain path setting for "CASROOT" environment variable.
Public activity
8 archived notes
Participants are labeled by their role within this record.
Dear ibs,
please check the "env.sh" script carefully. For example:
>> export CSF_XSMessage="SCRIPTROOT/res/XSMessage"
points to strange location (SCRIPTROOT ?)
>> export CSF_PluginDefaults="${aScriptPath}/res/StdResource"
in the installation directory there is no "res" folder, all necessary folders are copied to the "src" directory
Also i recommend adding interpreter line (#!/bin/bash) in the "env.sh" script
please check the "env.sh" script carefully. For example:
>> export CSF_XSMessage="SCRIPTROOT/res/XSMessage"
points to strange location (SCRIPTROOT ?)
>> export CSF_PluginDefaults="${aScriptPath}/res/StdResource"
in the installation directory there is no "res" folder, all necessary folders are copied to the "src" directory
Also i recommend adding interpreter line (#!/bin/bash) in the "env.sh" script
dbv, thank for found bugs)
corrected the 3rdparty variables
added USE_OPENCL
res folder is absent due to all the resources were moved to scr folder
looking for setting of CASROOT variable
corrected the 3rdparty variables
added USE_OPENCL
res folder is absent due to all the resources were moved to scr folder
looking for setting of CASROOT variable
dbv,
>Moreover after "make install" command copied "env.sh" script does not contain path setting for "CASROOT" environment variable.
after installing CASROOT variable should point to current folder and therefore it should be empty.
or are some bugs there?
>Moreover after "make install" command copied "env.sh" script does not contain path setting for "CASROOT" environment variable.
after installing CASROOT variable should point to current folder and therefore it should be empty.
or are some bugs there?
dbv please review CR24426 branches of OCCT and WOK git
dbv, please review the latest changes in CR24426 occt and wok git
Removed "echo off" from shell script, other changes seems to be ok.
Dear Commenter 2, please check occt compilation with cmake on Windows and *nix stations. Patch for WOK from branch CR24426 should be applied.
Dear Commenter 2, please check occt compilation with cmake on Windows and *nix stations. Patch for WOK from branch CR24426 should be applied.
Fix has been integrated into master of occt-wok repository
Please integrate CR24426 OCCT branch
Related records