From e1ffed12015071276de62151429282dbdf4a1541 Mon Sep 17 00:00:00 2001 From: Oleg Alexandrov Date: Sat, 30 Sep 2023 13:05:23 -0700 Subject: [PATCH] Need to install GL for Linux --- Readme.md | 29 ++++++++++++++++++++--------- recipe/meta.yaml | 5 +++++ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index a820fe2..310d324 100644 --- a/Readme.md +++ b/Readme.md @@ -295,25 +295,36 @@ on any platform and compiler. To compile locally, on macOS, create a conda environment having the needed dependencies: - conda create -n polyview_dev qt=5.9.7 clang llvm-openmp + conda create -n polyview_dev qt=5.9.7 compilers llvm-openmp This should install the dependencies in: $HOME/miniconda3/envs/polyview_dev +Activate that environment with:: + + conda activate + +Run:: + + echo $CC_FOR_BUILD + echo $CXX_FOR_BUILD + +to verify that the C and C++ compilers were set correctly. + Then run: $HOME/miniconda3/envs/polyview_dev/bin/qmake \ - QMAKE_CC=$HOME/miniconda3/envs/polyview_dev/bin/clang \ - QMAKE_CXX=$HOME/miniconda3/envs/polyview_dev/bin/clang-cpp \ - QMAKE_LINK=$HOME/miniconda3/envs/polyview_dev/bin/clang-cpp \ - polyview.pro + QMAKE_CXXFLAGS="-I$HOME/miniconda3/envs/polyview_dev/include" \ + QMAKE_CC=$CC_FOR_BUILD \ + QMAKE_CXX=$CXX_FOR_BUILD \ + QMAKE_LINK=$CXX_FOR_BUILD \ + polyview.pro make -j 10 - make install INSTALL_ROOT=install_directory - -On Linux, replace ``clang`` and ``clang-cpp`` with the gcc and g++ compilers, which -may be called, for example, ``x86_64-conda_cos6-linux-gnu-gcc`` and ``x86_64-conda_cos6-linux-gnu-g++``. + make install INSTALL_ROOT=$(pwd) +This should create the ``polyview`` program in the ``bin`` subdirectory. + ## Compiling with conda build This will produce a packaged build, that can be uploaded to the cloud and diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ab072b1..25a43a6 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -22,10 +22,15 @@ requirements: host: - qt=5.9.7 - llvm-openmp + - mesalib # [linux] + - mesa-libgl-cos6-x86_64 # [linux] + run: - qt=5.9.7 - llvm-openmp + - mesalib # [linux] + - mesa-libgl-cos6-x86_64 # [linux] test: files: