Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dlr/build ubuntu22.04 #19

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.22)

#set(CMAKE_CXX_COMPILER "clang++")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl")
Expand Down Expand Up @@ -310,4 +310,4 @@ else()
target_compile_definitions(VulkanRenderer PRIVATE MULTISENSE_VIEWER_DEBUG)
target_compile_definitions(ScriptLibrary PRIVATE MULTISENSE_VIEWER_DEBUG)
target_compile_definitions(MultiSense-Viewer PRIVATE MULTISENSE_VIEWER_DEBUG)
endif()
endif()
20 changes: 15 additions & 5 deletions docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,37 @@ Install Dependencies:

Open your terminal and type in
```sh
$ apt update
$ apt install build-essential cmake git libzstd-dev libsdl2-dev libgl1-mesa-glx libgl1-mesa-dev libvulkan1 libvulkan-dev libassimp-dev opencl-c-headers libfmt-dev libgtk-3-dev
$ sudo apt update
$ sudo apt install build-essential cmake git libzstd-dev libsdl2-dev libgl1-mesa-glx libgl1-mesa-dev libvulkan1 libvulkan-dev libassimp-dev opencl-c-headers libfmt-dev libgtk-3-dev

$ apt install pkg-config libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libtbb-dev libssl-dev
$ sudo apt install pkg-config libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libtbb-dev libssl-dev libwebp-dev libsystemd-dev
```
Make sure you have a recent version of the Vulkan SDK installed. Note that some linux distributions provide this natively. For example, on Ubuntu 22.04, you can simply run
```sh
$ sudo apt install libvulkan-dev
```
To get the latest vulkan SDK for Ubuntu 20.04. use the following (Copied from https://vulkan.lunarg.com/sdk/home#linux):
You can also get the vulkan SDK from the Vulkan homepage (https://vulkan.lunarg.com/sdk/home#linux). For example, here are instructions for installing version 1.3.215 of the Vulkan SDK under Ubuntu 20.04, copied directly from that page:
```sh
$ sudo apt install wget
$ wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
$ sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.216-focal.list https://packages.lunarg.com/vulkan/1.3.216/lunarg-vulkan-1.3.216-focal.list
$ sudo apt update
$ sudo apt install vulkan-sdk
```
Clone the git repo and build the MultiSense Viewer
Clone the git repo and build the MultiSense Viewer.
```sh
$ git clone --recurse-submodule https://github.com/carnegierobotics/multisense_viewer
$ cd MultiSense-Viewer
$ mkdir build && cd build
$ cmake ..
$ make -j12 # j-parallell jobs (Same number as cores on your cpu for faster compile)
```
Note that for some Ubuntu versions, you may need to allow some warnings in order to achieve a successful build.
```sh
$ git clone --recurse-submodule https://github.com/carnegierobotics/multisense_viewer
$ cmake -DWARNINGS_AS_ERRORS=FALSE ..
$ make -j12
M-Gjerde marked this conversation as resolved.
Show resolved Hide resolved
```

In your build folder there is a executable called Multisense-viewer. Launch this to start the application.
To be able to use the auto connect feature, launch with root/admin privileges.
Expand Down
2 changes: 1 addition & 1 deletion include/Viewer/ImGui/SideBarLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ class SideBarLayer : public VkRender::Layer {
for (size_t n = 0; n < entryConnectDeviceList.size(); n++) {
if (entryConnectDeviceList[n].cameraName.empty()) continue;
if (ImGui::Selectable((entryConnectDeviceList[n].cameraName + "##" + std::to_string(n)).c_str(),
resultsComboIndex == n,
resultsComboIndex == static_cast<int>(n),
ImGuiSelectableFlags_DontClosePopups,
ImVec2(handles->info->popupWidth - (20.0f * 2), 15.0f))) {
handles->usageMonitor->userClickAction(entryConnectDeviceList[n].cameraName, "Selectable",
Expand Down
Loading