mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-15 12:20:01 +01:00
Compilation fix (OSX)
This commit is contained in:
@@ -334,6 +334,7 @@ include_directories(
|
|||||||
${IMGUITEXTEDIT_INCLUDE_DIR}
|
${IMGUITEXTEDIT_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
add_library(IMGUITEXTEDIT "${CMAKE_CURRENT_SOURCE_DIR}/ext/ImGuiColorTextEdit/TextEditor.cpp")
|
add_library(IMGUITEXTEDIT "${CMAKE_CURRENT_SOURCE_DIR}/ext/ImGuiColorTextEdit/TextEditor.cpp")
|
||||||
|
set_property(TARGET IMGUITEXTEDIT PROPERTY CXX_STANDARD 17)
|
||||||
message(STATUS "Compiling 'ImGuiColorTextEdit' from https://github.com/BalazsJako/ImGuiColorTextEdit -- ${IMGUITEXTEDIT_INCLUDE_DIR}")
|
message(STATUS "Compiling 'ImGuiColorTextEdit' from https://github.com/BalazsJako/ImGuiColorTextEdit -- ${IMGUITEXTEDIT_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ std::string MultiFileRecorder::assemble (MultiFileRecorder *rec)
|
|||||||
stbi_info( rec->files_.front().c_str(), &rec->width_, &rec->height_, &rec->bpp_);
|
stbi_info( rec->files_.front().c_str(), &rec->width_, &rec->height_, &rec->bpp_);
|
||||||
|
|
||||||
if ( rec->width_ < 10 || rec->height_ < 10 || rec->bpp_ < 3 ) {
|
if ( rec->width_ < 10 || rec->height_ < 10 || rec->bpp_ < 3 ) {
|
||||||
Log::Warning("MultiFileRecorder: Invalid image %s.", rec->files_.front());
|
Log::Warning("MultiFileRecorder: Invalid image %s.", rec->files_.front().c_str());
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
#ifdef APPLE
|
#ifdef APPLE
|
||||||
#include "osx/CocoaToolkit.h"
|
|
||||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
#define GLFW_EXPOSE_NATIVE_COCOA
|
||||||
#define GLFW_EXPOSE_NATIVE_NSGL
|
#define GLFW_EXPOSE_NATIVE_NSGL
|
||||||
#else
|
#else
|
||||||
@@ -48,6 +47,7 @@
|
|||||||
#include <gst/gl/gstglcontext.h>
|
#include <gst/gl/gstglcontext.h>
|
||||||
|
|
||||||
#ifdef GLFW_EXPOSE_NATIVE_COCOA
|
#ifdef GLFW_EXPOSE_NATIVE_COCOA
|
||||||
|
//#include "osx/CocoaToolkit.h"
|
||||||
//#include <gst/gl/cocoa/gstgldisplay_cocoa.h>
|
//#include <gst/gl/cocoa/gstgldisplay_cocoa.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef GLFW_EXPOSE_NATIVE_GLX
|
#ifdef GLFW_EXPOSE_NATIVE_GLX
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gi18n.h>
|
|
||||||
|
|
||||||
#include <tinyxml2.h>
|
#include <tinyxml2.h>
|
||||||
#include "tinyxml2Toolkit.h"
|
#include "tinyxml2Toolkit.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user