https://github.com/trelau/SMESH/blob/ma ... txt#L59L62
Code: Select all
if(CMAKE_SIZEOF_VOID_P STREQUAL 8)
add_definitions(-D_OCC64)
add_definitions(-DSALOME_USE_64BIT_IDS)
endif(CMAKE_SIZEOF_VOID_P STREQUAL 8)
Code: Select all
if(CMAKE_SIZEOF_VOID_P STREQUAL 8)
add_definitions(-D_OCC64)
add_definitions(-DSALOME_USE_64BIT_IDS)
endif(CMAKE_SIZEOF_VOID_P STREQUAL 8)
I am also not sure if I am talking nonsense here Let's wait for @wmayer explaining what should be done...adrianinsaval wrote: ↑Sun Jul 10, 2022 2:24 pm Since FreeCAD is compiled for x86_64 shouldn't it use int64 by default? Or is it explicitly using int32? (I have very limited c++ knowledge so excuse if I'm talking nonsense )
absolutely but I have no idea how to do it. I know how to install osx64 packages on osxarm64 but not the other way. Maybe it is as simple as doing it the other way:adrianinsaval wrote: ↑Sun Jul 10, 2022 4:42 pm Isn't the bundling action just downloading and repackaging already built binaries? Can't conda be forced to download some specific architecture?
Code: Select all
export CONDA_SUBDIR=osx-arm64
Code: Select all
Bad CPU type in executable
On a 64-bit system it preferably should use int64_t. However, it looks like Salome has used int32_t for 64-bit systems too and only has changed this recently to use int64_t instead. The difficulty for FreeCAD is that there is no way to determine whether smesh was built with SALOME_USE_64BIT_IDS or not.