Skip to content

Instantly share code, notes, and snippets.

View markfinal's full-sized avatar

Mark Final markfinal

View GitHub Profile
@markfinal
markfinal / gist:148dcdd586927425176d08b3bc54d58e
Created June 24, 2018 07:55
OpenImageIO head of RB-1.8 branch build output from EMBEDPLUGINS=0 under VisualStudio 2015
1>------ Build started: Project: CopyFiles, Configuration: RelWithDebInfo x64 ------
2>------ Build started: Project: tiff.imageio, Configuration: RelWithDebInfo x64 ------
2> Creating library D:/OIIO/build/src/tiff.imageio/RelWithDebInfo/tiff.imageio.lib and object D:/OIIO/build/src/tiff.imageio/RelWithDebInfo/tiff.imageio.exp
2>tiffinput.obj : error LNK2019: unresolved external symbol "bool __cdecl OpenImageIO_v1_8::pvt::check_texture_metadata_sanity(class OpenImageIO_v1_8::ImageSpec &)" (?check_texture_metadata_sanity@pvt@OpenImageIO_v1_8@@YA_NAEAVImageSpec@2@@Z) referenced in function "private: void __cdecl OpenImageIO_v1_8::TIFFInput::readspec(bool)" (?readspec@TIFFInput@OpenImageIO_v1_8@@AEAAX_N@Z)
2>D:\OIIO\build\src\tiff.imageio\RelWithDebInfo\tiff.imageio.dll : fatal error LNK1120: 1 unresolved externals
3>------ Build started: Project: openexr.imageio, Configuration: RelWithDebInfo x64 ------
4>------ Skipped Build: Project: Continuous, Configuration: RelWithDebInfo x64 ------
4>Project not sele
@markfinal
markfinal / gist:cef1bd593a2e11560e9e595c35907d21
Created June 24, 2018 12:32
OpenImageIO RB-1.8 head failing to compile when using STL regex with GCC 4.8.4
/home/mark/thirdparty/cmake-3.11.4-Linux-x86_64/bin/cmake -H/home/mark/thirdparty/oiio -B/home/mark/thirdparty/build --check-build-system CMakeFiles/Makefile.cmake 0
/home/mark/thirdparty/cmake-3.11.4-Linux-x86_64/bin/cmake -E cmake_progress_start /home/mark/thirdparty/build/CMakeFiles /home/mark/thirdparty/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/mark/thirdparty/build'
make -f CMakeFiles/CopyFiles.dir/build.make CMakeFiles/CopyFiles.dir/depend
make[2]: Entering directory `/home/mark/thirdparty/build'
cd /home/mark/thirdparty/build && /home/mark/thirdparty/cmake-3.11.4-Linux-x86_64/bin/cmake -E cmake_depends "Unix Makefiles" /home/mark/thirdparty/oiio /home/mark/thirdparty/oiio /home/mark/thirdparty/build /home/mark/thirdparty/build /home/mark/thirdparty/build/CMakeFiles/CopyFiles.dir/DependInfo.cmake --color=
Dependee "/home/mark/thirdparty/build/CMakeFiles/CopyFiles.dir/DependInfo.cmake" is newer than depender "/home/mark/thirdparty/build/CMakeFiles
@markfinal
markfinal / Program.cs
Last active September 7, 2018 21:34
Test case exercising the speed of Console.SetCursorPosition in .NET core 2.1
using System;
namespace test
{
class Program
{
static void TimeConsoleOutput(bool withCarriageReturn)
{
var sw = System.Diagnostics.Stopwatch.StartNew();
for (int i = 0; i < 100; i++)
@markfinal
markfinal / CMakeLists.txt
Created January 13, 2022 20:07
No option required for BUILD_SHARED_LIBS
cmake_minimum_required(VERSION 3.21)
project(Test LANGUAGES CXX)
add_library(test lib.cpp lib.h)