Skip to content

Commit

Permalink
Merge pull request #22 from darbyjohnston/rocky8_fixes
Browse files Browse the repository at this point in the history
Rocky 8 fixes
  • Loading branch information
darbyjohnston authored Nov 17, 2024
2 parents a613ddd + a4ea0c2 commit b476d36
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 227 deletions.
2 changes: 1 addition & 1 deletion cmake/SuperBuild/Builddtk-deps.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(ExternalProject)

set(dtk_GIT_REPOSITORY "https://github.com/darbyjohnston/dtk.git")
set(dtk_GIT_TAG "ff2b7dcbbaf6eb8dc3568922f7c84b7c34c2c8dd")
set(dtk_GIT_TAG "0dd29ed19c12702d9304c6273576117fa8648a23")

set(dtk-deps_ARGS
${toucan_EXTERNAL_PROJECT_ARGS}
Expand Down
2 changes: 1 addition & 1 deletion cmake/SuperBuild/Builddtk.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(ExternalProject)

set(dtk_GIT_REPOSITORY "https://github.com/darbyjohnston/dtk.git")
set(dtk_GIT_TAG "ff2b7dcbbaf6eb8dc3568922f7c84b7c34c2c8dd")
set(dtk_GIT_TAG "0dd29ed19c12702d9304c6273576117fa8648a23")

set(dtk_DEPS dtk-deps)
set(dtk_ARGS
Expand Down
8 changes: 4 additions & 4 deletions lib/toucan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ else()
endif()

add_library(toucan ${HEADERS} ${HEADERS_PRIVATE} ${SOURCE})
set(LIBS PUBLIC OTIO::opentimelineio OTIO::opentime OpenImageIO::OpenImageIO)
if(TARGET MINIZIP::minizip)
list(APPEND LIBS MINIZIP::minizip)
set(LIBS_PUBLIC OTIO::opentimelineio OTIO::opentime OpenImageIO::OpenImageIO MINIZIP::minizip)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
list(APPEND LIBS_PUBLIC stdc++fs)
endif()
target_link_libraries(toucan ${LIBS})
target_link_libraries(toucan PUBLIC ${LIBS_PUBLIC})
set_target_properties(toucan PROPERTIES FOLDER lib)
set_target_properties(toucan PROPERTIES PUBLIC_HEADER "${HEADERS}")

Expand Down
166 changes: 0 additions & 166 deletions lib/toucan/Timeline.cpp

This file was deleted.

34 changes: 0 additions & 34 deletions lib/toucan/Timeline.h

This file was deleted.

22 changes: 11 additions & 11 deletions lib/toucan/TimelineWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ namespace toucan

TimelineWrapper::~TimelineWrapper()
{
if (!_tmpPath.empty())
{
std::filesystem::remove_all(_tmpPath);
}
//if (!_tmpPath.empty())
//{
// std::filesystem::remove_all(_tmpPath);
//}
}

const OTIO_NS::SerializableObject::Retainer<OTIO_NS::Timeline>& TimelineWrapper::getTimeline() const
Expand All @@ -276,14 +276,14 @@ namespace toucan
std::filesystem::path path = splitURLProtocol(url).second;
if (!path.is_absolute())
{
if (!_tmpPath.empty())
{
path = _tmpPath / path;
}
else
{
//if (!_tmpPath.empty())
//{
// path = _tmpPath / path;
//}
//else
//{
path = _path.parent_path() / path;
}
//}
}
out = path.string();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/toucan/TimelineWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace toucan

private:
std::filesystem::path _path;
std::filesystem::path _tmpPath;
//std::filesystem::path _tmpPath;
std::unique_ptr<MemoryMap> _memoryMap;
MemoryReferences _memoryReferences;
OTIO_NS::SerializableObject::Retainer<OTIO_NS::Timeline> _timeline;
Expand Down
8 changes: 4 additions & 4 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ foreach(PLUGIN ColorSpace Draw Filter Generator Transform Transition)
toucan${PLUGIN} MODULE
${PLUGIN}Plugin.h Plugin.h Util.h
${PLUGIN}Plugin.cpp Plugin.cpp Util.cpp)
set(LIBS OpenImageIO::OpenImageIO)
if(TARGET MINIZIP::minizip)
list(APPEND LIBS MINIZIP::minizip)
set(LIBS_PUBLIC OpenImageIO::OpenImageIO MINIZIP::minizip)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
list(APPEND LIBS_PUBLIC stdc++fs)
endif()
target_link_libraries(toucan${PLUGIN} PUBLIC ${LIBS})
target_link_libraries(toucan${PLUGIN} PUBLIC ${LIBS_PUBLIC})
set_target_properties(
toucan${PLUGIN} PROPERTIES
FOLDER plugin
Expand Down
4 changes: 2 additions & 2 deletions plugins/ColorSpacePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ OfxStatus ColorConvertPlugin::_render(
_paramSuite->paramGetValue(_contextValueParam[handle], &contextValue);
_paramSuite->paramGetValue(_colorConfigParam[handle], &colorConfigValue);

const std::filesystem::path colorConfigPath(colorConfigValue);
const std::string colorConfigPath(colorConfigValue);
std::shared_ptr<OIIO::ColorConfig> colorConfig;
auto i = _colorConfigs.find(colorConfigPath);
if (i != _colorConfigs.end())
Expand All @@ -226,7 +226,7 @@ OfxStatus ColorConvertPlugin::_render(
}
else
{
colorConfig = std::make_shared<OIIO::ColorConfig>(colorConfigPath.string());
colorConfig = std::make_shared<OIIO::ColorConfig>(colorConfigPath);
_colorConfigs[colorConfigPath] = colorConfig;
//for (int i = 0; i < colorConfig->getNumColorSpaces(); ++i)
//{
Expand Down
4 changes: 1 addition & 3 deletions plugins/ColorSpacePlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include <OpenImageIO/color.h>
#include <OpenImageIO/imagebuf.h>

#include <filesystem>

class ColorSpacePlugin : public Plugin
{
public:
Expand Down Expand Up @@ -70,7 +68,7 @@ class ColorConvertPlugin : public ColorSpacePlugin
std::map<OfxImageEffectHandle, OfxParamHandle> _contextKeyParam;
std::map<OfxImageEffectHandle, OfxParamHandle> _contextValueParam;
std::map<OfxImageEffectHandle, OfxParamHandle> _colorConfigParam;
std::map<std::filesystem::path, std::shared_ptr<OIIO::ColorConfig> > _colorConfigs;
std::map<std::string, std::shared_ptr<OIIO::ColorConfig> > _colorConfigs;
};

class PremultPlugin : public ColorSpacePlugin
Expand Down

0 comments on commit b476d36

Please sign in to comment.