Skip to content

Commit

Permalink
Need to install GL for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Sep 30, 2023
1 parent 88b6f5d commit e1ffed1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
29 changes: 20 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e1ffed1

Please sign in to comment.