No "bin" directory after compiling #12269
-
I would like to ask if what is wrong because after my compilation, there is no "bin" directory produced where the Kratos executable file is located. May I ask if what might be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Here is the compilation prompt in windows: Microsoft Windows [Version 10.0.22631.3447] C:\Windows\System32>cd C:\Kratos\scripts C:\Kratos\scripts>configure.bat C:\Kratos\scripts>cmake -G"Visual Studio 16 2019" -H"C:\Kratos\scripts.." -B"C:\Kratos\scripts../build\RelWithDebInfo" -DUSE_EIGEN_MKL=OFF -DCMAKE_CXX_FLAGS=" " -DKRATOS_GENERATE_PYTHON_STUBS=ON Update the VERSION argument value or use a ... suffix to tell -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. Update the VERSION argument value or use a ... suffix to tell CMake Warning (dev) at cmake_modules/FindPythonLibsNew.cmake:60 (find_package): Call Stack (most recent call first): -- Found PythonInterp: C:\Python\Python312\python.exe (found version "3.12.2") CMake variable BOOST_ROOT is set to:
For compatibility, find_package is ignoring the variable, but code in a -- Found Boost: C:/boost_1_78_0 (found version "1.78.0") Update the VERSION argument value or use a ... suffix to tell -- Looking for sys/types.h -- CMAKE_BUILD_TYPE ........ RelWithDebInfo WARNING: YOUR GIDPOST IS BEING COMPILED WITHOUT DEBUG (ALL ASSERTS WILL BE AVOIDED) Update the VERSION argument value or use a ... suffix to tell
**** configuring KratosStructuralMechanicsApplication **** Update the VERSION argument value or use a ... suffix to tell
**** configuring KratosFluidDynamicsApplication **** Update the VERSION argument value or use a ... suffix to tell -- [Info] Adding dependency DelaunayMeshingApplication Update the VERSION argument value or use a ... suffix to tell -- Tetgen found in C:/Kratos/applications/DelaunayMeshingApplication/external_libraries/tetgen Update the VERSION argument value or use a ... suffix to tell -- [Info] Adding dependency DemStructuresCouplingApplication Update the VERSION argument value or use a ... suffix to tell CMake Deprecation Warning at cmake_modules/pybind11Tools.cmake:8 (cmake_minimum_required): Update the VERSION argument value or use a ... suffix to tell -- [Info] Adding dependency ConstitutiveLawsApplication Update the VERSION argument value or use a ... suffix to tell CMake Deprecation Warning at cmake_modules/pybind11Tools.cmake:8 (cmake_minimum_required): Update the VERSION argument value or use a ... suffix to tell
**** Configuring KratosContactStructuralMechanicsApplication **** Update the VERSION argument value or use a ... suffix to tell CMake Warning at CMakeLists.txt:578 (message):
**** configuring KratosMeshingApplication **** Update the VERSION argument value or use a ... suffix to tell CMake Warning at CMakeLists.txt:578 (message):
**** configuring KratosSolidMechanicsApplication **** Update the VERSION argument value or use a ... suffix to tell -- [Info] Adding dependency ConstitutiveModelsApplication Update the VERSION argument value or use a ... suffix to tell
List of upcoming API-breaking and behavior changes: C:\Kratos\scripts>rem Build C:\Kratos\scripts>cmake --build "C:\Kratos\scripts../build/RelWithDebInfo" --target install -- /property:configuration=RelWithDebInfo /p:Platform=x64 KratosVersion.vcxproj -> C:\Kratos\build\RelWithDebInfo\kratos\KratosVersion.dir\RelWithDebInfo\KratosVersion.lib C:\Kratos\scripts>goto:eof C:\Kratos\scripts> |
Beta Was this translation helpful? Give feedback.
-
Hi, it seems the problem is that tetgen tried to install the triangle lib and was unable to do so. I would suggest disabling the delaunay application and use the meshing application instead, which does not have third party dependencies. Maybe someone from @KratosMultiphysics/solid-mechanics can give you more insight on the problem |
Beta Was this translation helpful? Give feedback.
-
Also, please check if https://github.com/KratosMultiphysics/Kratos/blob/master/INSTALL.md#tpl-libraries activating the non-tpl libraries with those options helps to solve the problem |
Beta Was this translation helpful? Give feedback.
-
I hope this helps resolve my issue. this is my defined configure.bat file. May I know how can I disable the delaunay application as a dependency? Thank you. @echo off rem For any question please contact with us in: rem Optional parameters: rem Set compiler rem Set variables rem Warning: In windows this option only works if you run through a terminal with admin privileges rem Set basic configuration rem Set applications to compile rem Clean em Configure rem Build rem Function to add apps |
Beta Was this translation helpful? Give feedback.
-
Removing
Should disable the compilation of the Delaunay extension |
Beta Was this translation helpful? Give feedback.
hi @engrjessie
You must use the same python you used during the compilation. PYTHONPATH is correct. (basically change
python
forC:\Python\Python312\python.exe
):