Skip to content

Commit 6462ed9

Browse files
committed
Updating Ubuntu 22.04 build docs and tweak for build compatibility
1 parent a87e54a commit 6462ed9

File tree

4 files changed

+30
-28
lines changed

4 files changed

+30
-28
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "extern/otio/OpenTimelineIO"]
2+
path = extern/otio/OpenTimelineIO
3+
url = https://github.com/AcademySoftwareFoundation/OpenTimelineIO

docs/build_guides/ubuntu_22_04.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
### Note (May 2025)
55

6-
These docs are not accurate and are to be updated soon. Note that xSTUDIO now requires Qt6.5.3, where these notes incorrectly install qt5. You can install Qt6.5.3 using [these instructions](downloading_qt.md) instead.
7-
6+
Note that xSTUDIO now requires Qt6.5.3. You can install Qt6.5.3 using [these instructions](downloading_qt.md) instead.
87

98
### Distro installs
109
sudo apt install build-essential cmake git python3-pip
@@ -14,12 +13,8 @@ These docs are not accurate and are to be updated soon. Note that xSTUDIO now re
1413
sudo apt install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev libfreetype-dev
1514
sudo apt install libjpeg-dev libpulse-dev nlohmann-json3-dev
1615
sudo apt install yasm nasm libfdk-aac-dev libfdk-aac2 libmp3lame-dev libopus-dev libvpx-dev libx265-dev libx264-dev
17-
sudo apt install qttools5-dev qtbase5-dev qt5-qmake qtdeclarative5-dev qtquickcontrols2-5-dev
18-
sudo apt install qml-module-qtquick* qml-module-qt-labs-*
19-
2016
pip install sphinx_rtd_theme
2117

22-
2318
### Local installs
2419
#### OpenEXR
2520
git clone https://github.com/AcademySoftwareFoundation/openexr.git
@@ -34,32 +29,20 @@ These docs are not accurate and are to be updated soon. Note that xSTUDIO now re
3429

3530

3631
#### ActorFramework
37-
wget https://github.com/actor-framework/actor-framework/archive/refs/tags/0.18.4.tar.gz
38-
tar -xf 0.18.4.tar.gz
39-
cd actor-framework-0.18.4
32+
git clone https://github.com/actor-framework/actor-framework
33+
cd actor-framework
34+
git checkout 1.0.2
4035
./configure
4136
cd build
4237
make -j $JOBS
4338
sudo make install
4439
cd ../..
4540

4641

47-
#### OpenTimelineIO
48-
git clone https://github.com/AcademySoftwareFoundation/OpenTimelineIO.git
49-
cd OpenTimelineIO
50-
git checkout cxx17
51-
mkdir build
52-
cd build
53-
cmake -DOTIO_PYTHON_INSTALL=ON -DOTIO_DEPENDENCIES_INSTALL=OFF -DOTIO_FIND_IMATH=ON ..
54-
make -j $JOBS
55-
sudo make install
56-
cd ../..
57-
58-
5942
#### OCIO2
60-
wget https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v2.2.0.tar.gz
61-
tar -xf v2.2.0.tar.gz
62-
cd OpenColorIO-2.2.0/
43+
wget https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v2.2.1.tar.gz
44+
tar -xf v2.2.1.tar.gz
45+
cd OpenColorIO-2.2.1/
6346
mkdir build
6447
cd build
6548
cmake -DOCIO_BUILD_APPS=OFF -DOCIO_BUILD_TESTS=OFF -DOCIO_BUILD_GPU_TESTS=OFF ../
@@ -80,15 +63,31 @@ These docs are not accurate and are to be updated soon. Note that xSTUDIO now re
8063

8164

8265
### xStudio
66+
67+
You will need to set an environment variable to tell cmake where the Qt6 libraries are located. For example, if Qt6 was installed to **/home/maryjane/Qt6/** then you will need to run this command in your terminal:
68+
69+
export Qt6_DIR=/home/maryjane/Qt6/6.5.3/gcc_64/lib/cmake/Qt6
70+
71+
Now we continue the build commands:
72+
8373
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib64/pkgconfig
8474
cd xstudio
75+
git submodule init
76+
git submodule update
8577
mkdir build
8678
cd build
87-
cmake .. -DBUILD_DOCS=Off
79+
cmake .. -DBUILD_DOCS=Off -DOTIO_SUBMODULE=On -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1
80+
8881
make -j $JOBS
8982

90-
export QV4_FORCE_INTERPRETER=1
83+
To run xstudio from your dev environment:
84+
9185
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
9286
export PYTHONPATH=./bin/python/lib/python3.10/site-packages:/home/xstudio/.local/lib/python3.10/site-packages:
9387

9488
./bin/xstudio.bin
89+
90+
Or you can install to your system and then run.
91+
92+
sudo make install
93+
xstudio

src/launch/xstudio/src/xstudio.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ then
1212
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$XSTUDIO_ROOT/lib
1313
else
1414
export XSTUDIO_ROOT=@CMAKE_INSTALL_PREFIX@/share/xstudio
15-
export LD_LIBRARY_PATH=$XSTUDIO_ROOT/lib:/home/ted/Qt/5.15.2/gcc_64/lib:$LD_LIBRARY_PATH
15+
export LD_LIBRARY_PATH=$XSTUDIO_ROOT/lib:$LD_LIBRARY_PATH
1616
export PYTHONPATH=@CMAKE_INSTALL_PREFIX@/lib/python:$PYTHONPATH
1717
fi
1818
fi

src/timeline/src/item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ std::set<Uuid> Item::update(const JsonStore &event) {
10751075
auto result = std::set<Uuid>();
10761076
for (const auto &i : event)
10771077
if (process_event(i.at("redo")))
1078-
result.insert(i.at("redo").at("event_id"));
1078+
result.insert(i.at("redo").at("event_id").get<utility::Uuid>());
10791079
return result;
10801080
}
10811081

0 commit comments

Comments
 (0)