-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Note that Zorin 16 (Ubuntu Focal Fossa) does not work at all because the dl lib is outdated.
These worked for me: gcc-13 and cmake 3.38. I had to install libxkbcommon-dev. On that machine, I compiled my own engine, for which I previously installed:
sudo apt install git build-essential xorg-dev libxrandr-dev libvulkan-dev libpulse-dev
sudo apt install libibus-1.0-dev libglib2.0-dev libsamplerate0-dev libasound2-dev libudev-dev
1.) update cmake on Ubuntu Jammy Jellyfish:
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
sudo apt install -y software-properties-common apt-transport-https curl
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get update
sudo apt-get upgrade
cmake -version
2.) Update g++ on Ubuntu:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
apt list --upgradable
version=$(apt-cache pkgnames | sed -nr 's/^gcc-(([0-9]+\.?)+)$/\1/p' \\
| sort -n | tail -n1)\
echo "The latest available GCC version: $version"
sudo apt-get install gcc-$version g++-$version
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-$version 60 \\
--slave /usr/bin/g++ g++ /usr/bin/g++-$version
g++ --version
3.) Install xkbc on Ubuntu
sudo apt-get install libxkbcommon-dev
3.) Release build on Linux
cmake -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DPYRO_COMMON_SHARED_LIBRARY=ON -DPYRO_PLATFORM_SHARED_LIBRARY=ON -DPYRO_PLATFORM_DUMMY_INTERFACE=ON -DPYRO_RHI_BUILD_VULKAN=ON -DPYRO_RHI_BUILD_DX12=OFF -DPYRO_RHI_BUILD_METAL=OFF -DSHOCKGRAPH_SHARED_LIBRARY=ON -DSHOCKGRAPH_USE_PYRO_PLATFORM=ON -DSHOCKGRAPH_BUILD_VISUAL_TESTS=ON -DSHOCKGRAPH_BUILD_RENDERGRAPH_TESTS=ON -S .
cd build
make
5.) Debug build on Linux
cmake -B buildDebug -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Debug -DPYRO_COMMON_SHARED_LIBRARY=ON -DPYRO_PLATFORM_SHARED_LIBRARY=ON -DPYRO_PLATFORM_DUMMY_INTERFACE=ON -DPYRO_RHI_BUILD_VULKAN=ON -DPYRO_RHI_BUILD_DX12=OFF -DPYRO_RHI_BUILD_METAL=OFF -DSHOCKGRAPH_SHARED_LIBRARY=ON -DSHOCKGRAPH_USE_PYRO_PLATFORM=ON -DSHOCKGRAPH_BUILD_VISUAL_TESTS=ON -DSHOCKGRAPH_BUILD_RENDERGRAPH_TESTS=ON -S .
cd buildDebug
make
For Visual Code, I attached the launch file for gdb. launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations":
[
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "./buildDebug/bin/SGVisualTests",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands":
[
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation