Skip to content

Instantly share code, notes, and snippets.

View eeevans's full-sized avatar

Edward Evans eeevans

View GitHub Profile
@eeevans
eeevans / MainWindow.xaml
Created March 25, 2023 04:53
XAML for window that creates buttons that have a binding for FontSize
<Window x:Class="Wpf.Binding.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Wpf.Binding"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<Style TargetType="Button">
@eeevans
eeevans / MainWindow.xaml.cs
Created March 25, 2023 04:51
Code behind for adding buttons with FontSize binding
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
namespace Wpf.Binding;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
eeevans@Bobiverse:~/source/linuxviewer/build/src/tests/textures$ ./texture_test
WARNING : Neither ./.libcwdrc nor /home/eeevans/.libcwdrc exist.
WARNING : Using default rcfile "/opt/gitache_root/libcwd_r/fc0a34072985ab506e8bd7fdb6a72dd0317478d5c42bafe2127a5520513d707a/share/libcwd/libcwdrc".
RCFILE : /opt/gitache_root/libcwd_r/fc0a34072985ab506e8bd7fdb6a72dd0317478d5c42bafe2127a5520513d707a/share/libcwd/libcwdrc:18: channels_default = off
RCFILE : /opt/gitache_root/libcwd_r/fc0a34072985ab506e8bd7fdb6a72dd0317478d5c42bafe2127a5520513d707a/share/libcwd/libcwdrc:24: channels_toggle = M*,BFD, n*tice
RCFILE : Turned on MALLOC
RCFILE : Turned on BFD
RCFILE : Turned on NOTICE
RCFILE : /opt/gitache_root/libcwd_r/fc0a34072985ab506e8bd7fdb6a72dd0317478d5c42bafe2127a5520513d707a/share/libcwd/libcwdrc:27: channels_on = warning
RCFILE : Turned on WARNING
eeevans@Bobiverse:~/source/linuxviewer$ cmake -S . -B ${BUILD_DIR} -DCMAKE_BUILD_TYPE=${CMAKE_CONFIG} -DEnableDebugGlobal:BOOL=OFF
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
sudo apt install build-essential cmake autoconf ninja-build gfortran pkg-config libtool libblas-dev liblapack-dev libsystemd-dev
sudo apt install gawk doxygen graphviz
sudo apt install libboost-all-dev libsparsehash-dev
sudo apt install libxkbcommon-x11-dev libglibmm-2.4-dev xsltproc libeigen3-dev
sudo apt install libvulkan-dev
sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-utils #<--- may not be needed as libvulkan-dev may work instead
#-- libxml3--
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer$ cd build
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer/build$ ninja
[174/287] Building CXX object src/vulkan/CMakeFiles/vulkan_ObjLib.dir/ImGui.cxx.o
FAILED: src/vulkan/CMakeFiles/vulkan_ObjLib.dir/ImGui.cxx.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -DCWDEBUG -DHAVE_UTILS_CONFIG_H -DIMGUI_USER_CONFIG=\"lvimconfig.h\" -DLIBCWD_THREAD_SAFE -DVERSION=\"1.1.3\" -DVK_USE_PLATFORM_XCB_KHR -DVMA_DEBUG_ALWAYS_DEDICATED_MEMORY=0 -DVMA_DEBUG_DONT_EXCEED_MAX_MEMORY_ALLOCATION_COUNT=0 -DVMA_DEBUG_GLOBAL_MUTEX=0 -DVMA_DEBUG_INITIALIZE_ALLOCATIONS=0 -DVMA_DYNAMIC_VULKAN_FUNCTIONS=1 -DVMA_RECORDING_ENABLED=0 -DVMA_STATIC_VULKAN_FUNCTIONS=0 -DVULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 -DVULKAN_HPP_NO_STRUCT_CONSTRUCTORS -DVULKAN_HPP_NO_UNION_CONSTRUCTORS -I/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer/external/peelo-xdg/include -I/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer/src/vulkan -I/mnt/c/Users/eeeva/source/repos
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer$ export VULKAN_SDK=/opt/vulkan/1.3.236.0/x86_64
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer$ cmake -S . -B build -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_VERBOSE_MAKEFILE=OFF -DEnableDebugGlobal:BOOL=OFF -DCMAKE_MESSAGE_LOG_LEVEL=DEBUG -DEnableTracy:BOOL=OFF
-- DEBUG: Entering /mnt/c/Users/eeeva/source/repos-cpp/linuxviewer/build/_deps/gitache-src/CMakeLists.txt
-- ----------------------------------------------------
** Populating gitache:
-- GITACHE_ROOT = "/opt/gitache_root"
-- CMAKE_MESSAGE_LOG_LEVEL = "DEBUG"
-- DEBUG: Entering `/opt/gitache_root/gitache-core/updater.cmake`
-- Using git executable: /usr/bin/git
-- DEBUG: git_executable = "/usr/bin/git".
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer$ cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebug -DEnableDebugGlobal:BOOL=OFF
-- ----------------------------------------------------
** Populating gitache:
-- GITACHE_ROOT = "/opt/gitache_root"
-- CMAKE_MESSAGE_LOG_LEVEL = ""
-- Locking directory "/opt/gitache_root/gitache-core"...
-- Gitache-core is already at e1c6097a90d9e2ec01d184f9012bd063b29a0540.
-- Reading package configurations from "/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer/cmake/gitache-configs/"...
-- gitache_package_magic_enum is already installed.
-- gitache_package_blaze is already installed.
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/linuxviewer$ cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebug -DEnableDebugGlobal:BOOL=OFF
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
HEAD is now at 655022cfc Merge pull request #3095 from ethanlooney/sixth_branch
eeevans@Bobiverse:/mnt/c/Users/eeeva/source/repos-cpp/wolfssl$ autoreconf -fi
configure.ac:89: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:89: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ax_tls.m4:65: AX_TLS is expanded from...