Installation
Dependencies
To build Telescope from source, the following dependencies need to be met:
Bullet - also available as
libbullet-devVulkan - also available as
libvulkan-dev-
also available as
libsdl2-devadditionally,
libsdl2-image,libsdl2-mixer,libsdl2-ttf,libsdl2-netmay need to be installed separately
glm - also available as
libglm-dev
Clicking on the links above will lead you to the correct download pages for each dependency. Alternatively, they can be installed through your package manager, potentially under the names supplied above.
Building
To install Telescope, execute, in any public directory
git clone https://github.com/jhigginbotham64/Telescope
cd Telescope
mkdir build
cd build
cmake .. #-DCMAKE_INSTALL_PREFIX=<install location>
make install
Where -DCMAKE_INSTALL_PREFIX=<install location> is an optional argument that determines, what directory the Telescope shared library will be installed into.
After installation, you can interface with Telescope from Julia using Starlight.jl.
If you wish to use telescope for your C / C++ application, in your own CMakeLists.txt, add the following lines:
find_library(telescope REQUIRED
NAMES telescope
#PATHS <install location>
)
target_link_libraries(<your_target> PRIVATE telescope)
Where
<your_target>is the name of your CMake library or executable<install location>is the location specified during CMake configuration earlier
Then you can make Telescope available to your library using
#include <telescope.h>
Troubleshooting
telescope.h: No such file or directory
When compiling your own C / C++ target that uses telescope, the following compiler error may occur:
/home/.../main.cpp: fatal error: telescope.h: No such file or directory
11 | #include <telescope.h>
| ^~~~~~~~~~~~~
This happens if the telescope install directory was not added to your CMake targets include directories. To address this, in your own CMakeLists.txt, add the following lines:
find_library(telescope REQUIRED
NAMES telescope
PATHS <install location>
)
target_include_directories(<your_target> PRIVATE <install location>)
target_link_libraries(<your_target> PRIVATE telescope)
- Where
<your_target>is the name of your CMake executable or library<install location>is the directory specified asCMAKE_INSTALL_PREFIXduring [CMake configuration](#installation)
Now, your compiler should be able to locate telescope.h properly.