Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't know how to compile it yet. What configuration is needed? Cmake compilation prompt is missing opencasacde, vtk, etc. #17

Closed
XXMCUG opened this issue Dec 9, 2019 · 8 comments

Comments

@XXMCUG
Copy link

XXMCUG commented Dec 9, 2019

I don't know how to compile it yet. What configuration is needed? Cmake compilation prompt is missing opencasacde, vtk, etc.

@trelau
Copy link
Owner

trelau commented Jan 5, 2020

can you provide more information about what errors you are getting? if you're familiar with Anaconda you might try and install the pre-built SMESH from conda-forge https://anaconda.org/conda-forge/smesh

@XXMCUG
Copy link
Author

XXMCUG commented Jan 7, 2020

您能否提供有关所遇到的错误的更多信息?如果您熟悉Anaconda,则可以尝试从conda-forge https://anaconda.org/conda-forge/smesh安装预构建的SMESH[](https://anaconda.org/conda-forge/smesh)

Hello, I downloaded your SALOME source code, and I used cmake to compile. After I clicked on config, I was prompted that some libraries are missing. Can't your project be compiled with cmake? Or do some libraries that I need to configure myself? Thank you

Here are my tips for compiling with cmake3.12:
########################################
CMake Error at CMakeLists.txt:37 (find_package):
By not providing "FindOpenCASCADE.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"OpenCASCADE", but CMake did not find one.

Could not find a package configuration file provided by "OpenCASCADE" with
any of the following names:

OpenCASCADEConfig.cmake
opencascade-config.cmake

Add the installation prefix of "OpenCASCADE" to CMAKE_PREFIX_PATH or set
"OpenCASCADE_DIR" to a directory containing one of the above files. If
"OpenCASCADE" provides a separate development package or SDK, be sure it
has been installed.
########################################

@trelau
Copy link
Owner

trelau commented Jan 7, 2020

if you are using a conda environment, try installing OpenCASCADE (and other dependencies) with something like conda install -c conda-forge occt. In fact, if you are using conda then you can likely install smesh via conda install -c conda-forge smesh.

If you are not using conda, then you will need to provide the dependencies manually, such as paths to include and library directories

@XXMCUG
Copy link
Author

XXMCUG commented Jan 7, 2020

if you are using a conda environment, try installing OpenCASCADE (and other dependencies) with something like conda install -c conda-forge occt. In fact, if you are using conda then you can likely install smesh via conda install -c conda-forge smesh.

If you are not using conda, then you will need to provide the dependencies manually, such as paths to include and library directories

I understand, thank you for your guidance !

@trelau
Copy link
Owner

trelau commented Jan 7, 2020

ok great. i'll go ahead and close the issue then.

@trelau trelau closed this as completed Jan 7, 2020
@weiweiisok
Copy link

I have install smesh via 'conda install -c conda-forge smesh', but I still can't import smesh module, and I also find that the file library of smesh only have two files named 'info' and 'Library', It's not a python file?

@trelau
Copy link
Owner

trelau commented Dec 18, 2021

@weiweiisok if you're looking for python bindings try https://github.com/trelau/pySMESH. this repo is the c++ library

@muezabdalla
Copy link

hi
I am beginner to compiling.
I am facing the same problem but i want to compile smesh without conda. I downloaded the source core of occt and tried to put it it src and external but did not work. i also tried to search for the variable CMAKE_MODULE_PATH in the file CMakeLists.txt but did not find it.
i am using void linux and I was facing a lot of problems when tried to use salome so I thought that I can compile smesh because I only need smesh and geometry modules in salome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants