- Thank you received: 0
Conda installers available!
- creativeworker
-
- Offline
- Senior Member
-
Less
More
5 years 8 months ago #2170
by creativeworker
Replied by creativeworker on topic Conda installers available!
I tried today on macOS 10.15 in combination with Anaconda 2019.10
It works perfectly! I works with Spyder and PyCharm.
Just a small note, I used the following commands to add channels
It works perfectly! I works with Spyder and PyCharm.
Just a small note, I used the following commands to add channels
Code:
conda config --add channels conda-forge
conda config --add channels ngsolve
conda install ngsolve
5 years 8 months ago #2171
by matthiash
Replied by matthiash on topic Conda installers available!
Thanks for the feedback, I fixed the commands on the download page

- creativeworker
-
- Offline
- Senior Member
-
Less
More
- Thank you received: 0
5 years 8 months ago #2172
by creativeworker
Replied by creativeworker on topic Conda installers available!
A second thing that I just noticed:
When I want to compile my C++ Extensions, CMake can't find the cmake files:
I think the find_package command in the NGSolveConfig.cmake has to be updated.
When I want to compile my C++ Extensions, CMake can't find the cmake files:
Code:
NetgenConfig.cmake
netgen-config.cmake
I think the find_package command in the NGSolveConfig.cmake has to be updated.
5 years 8 months ago #2173
by matthiash
Replied by matthiash on topic Conda installers available!
mylittlengsolve builds fine on my Mac (also 10.15). Make sure you have no other NGSolve installation available. Maybe cmake is finding the wrong Netgen or NGSolve in /Applications/Netgen.app?
In case you cannot fix the issue, post/send the CMakeCache.txt file in you build directory.
Anyway, there is still another bug: compiled python modules shall not link to libpython, as it is statically linked to the python executable in conda. This results in a segfault when loading the module. A fix in the cmake function add_ngsolve_python_module() will be released later today.
Best,
Matthias
In case you cannot fix the issue, post/send the CMakeCache.txt file in you build directory.
Anyway, there is still another bug: compiled python modules shall not link to libpython, as it is statically linked to the python executable in conda. This results in a segfault when loading the module. A fix in the cmake function add_ngsolve_python_module() will be released later today.
Best,
Matthias
- creativeworker
-
- Offline
- Senior Member
-
Less
More
- Thank you received: 0
5 years 8 months ago #2174
by creativeworker
Replied by creativeworker on topic Conda installers available!
Thanks for your fast reply. The installation is complete clean, so I'm sure there is nowhere else the NGSolve and I double checked that there are not any false environment variables.
Find attached the CMakeCache.txt. To produce this I only changed the CMakeLists.txt to give the find_package function a hint to the ngsolve CMake file:
So, perhaps you have set up environment variables that I don't have?
Find attached the CMakeCache.txt. To produce this I only changed the CMakeLists.txt to give the find_package function a hint to the ngsolve CMake file:
Code:
HINTS /Users/username/opt/anaconda3/pkgs/ngsolve-6.2.1909-py37_91/lib/cmake/ngsolve
So, perhaps you have set up environment variables that I don't have?
Attachments:
5 years 8 months ago #2175
by matthiash
Replied by matthiash on topic Conda installers available!
I'm not (yet) a conda expert, but I think your given hint is wrong. That's the path to the uninstalled package.
For me a hint is not necessary, conda sets PATH appropriately such that cmake finds Netgen/NGSolve automatically:
For me a hint is not necessary, conda sets PATH appropriately such that cmake finds Netgen/NGSolve automatically:
Code:
Netgen_DIR:PATH=/home/mhochsteger/miniconda3/envs/ngs/lib/cmake/netgen
NGSolve_DIR:PATH=/home/mhochsteger/miniconda3/envs/ngs/lib/cmake/ngsolve
Time to create page: 0.111 seconds