From 92f55a0da6ad71b4f797caeb71d76c499071d9bb Mon Sep 17 00:00:00 2001
From: Tristan Walter <twalter@orn.mpg.de>
Date: Thu, 8 Oct 2020 02:19:45 +0200
Subject: [PATCH] no message

---
 Application/cmake_conda_osx.sh | 19 +++++++++++++++++--
 docs/install.rst               | 16 +++++++++++-----
 2 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/Application/cmake_conda_osx.sh b/Application/cmake_conda_osx.sh
index c66183b..b7f1cbc 100755
--- a/Application/cmake_conda_osx.sh
+++ b/Application/cmake_conda_osx.sh
@@ -40,10 +40,25 @@ if [ "$(uname)" == "Linux" ]; then
     fi
 
     if [ ${IN_CONDA} ]; then
-        CC=${CC} CXX=${CXX} PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig cmake .. -DPYTHON_INCLUDE_DIR:FILEPATH=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  -DPYTHON_LIBRARY:FILEPATH=$(python3 ../find_library.py) -DPYTHON_EXECUTABLE:FILEPATH=$(which python3)  -DCMAKE_BUILD_TYPE=Release -DWITH_FFMPEG=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DWITH_PYLON=ON
+        CC=${CC} CXX=${CXX} PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig cmake .. \
+            -DPYTHON_INCLUDE_DIR:FILEPATH=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
+            -DPYTHON_LIBRARY:FILEPATH=$(python3 ../find_library.py) \
+            -DPYTHON_EXECUTABLE:FILEPATH=$(which python3) \
+            -DCMAKE_BUILD_TYPE=Release \
+            -DWITH_FFMPEG=ON \
+            -DCMAKE_PREFIX_PATH="$CONDA_PREFIX;$CONDA_PREFIX/lib/pkgconfig;$CONDA_PREFIX/lib" \
+            -DWITH_PYLON=ON
     else
-        CC=${CC} CXX=${CXX} PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig cmake .. -DPYTHON_INCLUDE_DIR:FILEPATH=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  -DPYTHON_LIBRARY:FILEPATH=$(python3 ../find_library.py)  -DPYTHON_EXECUTABLE:FILEPATH=$(which python3)  -DCMAKE_BUILD_TYPE=Release -DWITH_FFMPEG=ON -DWITH_HTTPD=ON -DWITH_PYLON=ON
+        CC=${CC} CXX=${CXX} PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig cmake .. \
+            -DPYTHON_INCLUDE_DIR:FILEPATH=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
+            -DPYTHON_LIBRARY:FILEPATH=$(python3 ../find_library.py) \
+            -DPYTHON_EXECUTABLE:FILEPATH=$(which python3) \
+            -DCMAKE_BUILD_TYPE=Release \
+            -DWITH_FFMPEG=ON \
+            -DCMAKE_PREFIX_PATH="$PKG_CONFIG_PATH" \
+            -DWITH_PYLON=ON
     fi
+    
 else
     echo "Setting up for macOS."
     echo ""
diff --git a/docs/install.rst b/docs/install.rst
index b322f4e..3c53847 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -14,9 +14,9 @@ The easy way
 
 |trex| supports all major platforms. There is an easy way to install |trex| using Anaconda, by creating a new virtual environment (here named ``tracking``, which you can replace)::
 
-	conda create -n tracking -c conda-forge -c trexing trex
+	conda create -n tracking -c main -c conda-forge -c trexing trex
 
-The conda version does not offer support for Basler cameras. If you need to use |grabs| with machine vision cameras, please consider compiling the software yourself -- it has other advantages, too (such as enabling some Metal features on macOS and getting a squeaky new version)!
+The conda version does not offer support for Basler cameras. If you need to use |grabs| with machine vision cameras, please consider compiling the software yourself -- it has other advantages, too (such as enabling some Metal features on macOS and getting a squeaky clean, new version)!
 
 Compile it yourself
 *******************
@@ -31,7 +31,7 @@ Both are obviously connected (the local conda channel is essentially a script fo
 Local conda channel
 ===================
 
-In order to get your own conda channel, all you need to do is make sure you have Anaconda installed, as well as the ``conda-build`` package. This is a package that allows you to make your own packages from within the base environment. It creates a virtual environment, within which it compiles/tests the software you are trying to build. You can install it using::
+In order to get your own conda channel, all you need to do is make sure you have Anaconda installed, as well as the ``conda-build`` package. This is a package that allows you to make your own packages from within the base environment (use ``conda deactivate``, until it says ``base`` on the left). It creates a virtual environment, within which it compiles/tests the software you are trying to build. You can install it using::
 
 	conda install conda-build
 
@@ -42,9 +42,15 @@ After that, clone the |trex| repository using::
 
 Now, from within that folder, run::
 
-	conda build . -c conda-forge
+	./build_conda_package.sh
 
-This builds the program with all the settings inside ``meta.yaml`` (for dependencies) as well as ``build.sh`` (or ``bld.bat`` on Windows) for the CMake settings. If you want to enable/disable certain features (e.g. use the OpenCV from within the conda environment, etc.) the build script is the place where you can do that.
+This runs ``conda build``, which builds the program according to all the settings inside ``meta.yaml`` (for dependencies), using ``build.sh`` (or ``bld.bat`` on Windows) to configure CMake. If you want to enable/disable certain features (e.g. use the OpenCV from within the conda environment, etc.) the build script is the place where you can do that.
+
+After compilation was successful, |trex| can be installed using::
+
+	conda create -n tracking -c main -c conda-forge -c local trex
+
+Notice there is a ``-c local``, instead of the ``-c trexing`` from the first section.
 
 Compiling manually
 ==================
-- 
GitLab