Fix build issues and add install instructions#246
Conversation
|
I am in no way officially affiliated to the project, but I am among the Debian maintainers for it. The change to You may want to compare the packages you have installed to the one reported at Also note that TCL is requested at Line 283 in ce5c087 so that should be enough to populate TCL_INCLUDE_PATH
|
|
@francesco-ballarin I'm not sure why I've created a Dockerfile that you can use to replicate this issue: from ubuntu
run apt update && apt install -y python-is-python3 pip
run pip install --break-system-packages scikit-build requests netgen-occt-devel
run apt install -y git cmake tcl-dev tk-dev libglu1-mesa-dev libxmu-dev
run git clone https://github.com/NGSolve/netgen.git
run pip install --break-system-packages ./netgenThe build fails with this error: |
|
Not sure what to say. In the same docker image the minimal cmake file results in |
On ubuntu and other linux distributions, the tcl/tk headers are installed in
/usr/include/tcl, which is not discoverable by the current CMake configuration.I've fixed this by adding the necessary include directories to CMakeLists.txt in a way that shouldn't interfere with other systems.
The content of the
INSTALLfile was also incorrect, so I removed it and added build instructions toREADME.md. Currently, only the ubuntu system dependencies are listed, but more systems can be added as needed.