Skip to content
Snippets Groups Projects
Commit 92f55a0d authored by Tristan Walter's avatar Tristan Walter
Browse files

no message

parent 185ef47b
No related branches found
No related tags found
No related merge requests found
......@@ -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 ""
......
......@@ -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
==================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment