MeshLib icon indicating copy to clipboard operation
MeshLib copied to clipboard

Readme installation steps are incorrect for Linux

Open JeffreyWardman opened this issue 1 year ago • 4 comments

Steps:

sudo apt-get install libglfw3
sudo apt-get install -y libglfw3-dev libxerces-c-dev
git clone https://github.com/MeshInspector/MeshLib.git
cd MeshLib
git submodule update --init --recursive
./scripts/install_thirdparty.sh
... etc

./scripts/build_source.sh fails due to various packages not being found as well. This readme can be updated from the docker file.

Ubuntu docker images also do not build when following the steps in docker/readme.md

JeffreyWardman avatar Feb 06 '24 00:02 JeffreyWardman

Could you specify your Linux distro version and attach the log files of the building process? The missing dependencies might indicate that the automatic package installation is not supported on your platform, we'll investigate and resolve it if possible.

The build process description in both Readme files will be updated later.

oitel avatar Feb 06 '24 15:02 oitel

I use Pop OS 22.04 which is based on Ubuntu. The issue is that the readme itself is out of date. For instance, it doesn't state to update the submodules recursively. build_source.sh is currently build_sources.sh in the readme as well.

I've also tried building both Ubuntu and the Fedora 39 docker images without success.

Have you been able to follow the steps to follow the docker images for them to build successfully locally?

JeffreyWardman avatar Feb 06 '24 21:02 JeffreyWardman

The fixes for the building process on Pop OS (and other Ubuntu-based distributions) are available in the feature/ubuntu_build branch and will be merged soon. You can try them out.

I was able to build the Docker images for both Ubuntu 22.04 and Fedora 39. What kind of error do you get?

oitel avatar Feb 08 '24 17:02 oitel

Following the feature/ubuntu_build I still cannot install MeshLib. Despite having ZLIB installed on my machine. When running ./scripts/build_thirdparty.sh I get the error: CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) (Required is at least version "1.1.2") Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.22/Modules/FindZLIB.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) libzip/CMakeLists.txt:179 (find_package)

Hdbgdz avatar Feb 13 '24 01:02 Hdbgdz