tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
808 stars 284 forks source link

OCE 0.17.x and 0.18.x CMAKE (3.12) fails MinGW64 #711

Open asctime opened 5 years ago

asctime commented 5 years ago

cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX="/MSYS2/mingw64" -DCMAKE_PREFIX="/MSYS2/mingw64"

Always results in -- Processing ToolKit: TKDCAF (DDF;DDocStd;DNaming;DDataStd;DPrsStd;DrawDim) -- Processing ToolKit: TKXDEDRAW (XDEDRAW) -- Processing ToolKit: TKTObjDRAW (TObjDRAW) -- Processing application: DRAWEXE (DRAWEXE) CMake Error at CMakeLists.txt:1142 (get_filename_component): get_filename_component called with incorrect number of arguments -- Configuring incomplete, errors occurred! See also "D:/Download/MinGW-64-souorce/oce-OCE-0.17.3/mingw64/CMakeFiles/CMakeOu tput.log".

Regardless of other CMAKE options such as -DOCE_USE_TCL_TEST_FRAMEWORK=OFF CMakeOutput.log gives no useful information. Note that OCE 0.16.x branch does not have this problem and compiles with only minor issues. GCC version 8.2.0.

get_filename_component called with incorrect number of arguments is generally indicative of some assumed filename not being present, hence a missing value? As stated, logs are completely unhelpful as to what this started to be different in 0.17.x

Otherwise, binaries against the more-current MINGW64 gcc 8.2.0 C++ ABI would be helpful. Thanks.

ArvinShaffer commented 3 years ago

i have meet the same error ,have you ever solve of it ?