compilation OSX

This commit is contained in:
brunoherbelin
2020-04-06 13:26:38 +02:00
parent 4b9ba47038
commit dbc51f2ed4
10 changed files with 18 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ string GstToolkit::date_time_string()
return oss.str(); return oss.str();
} }
string GstToolkit::time_to_string(ulong t) string GstToolkit::time_to_string(guint64 t)
{ {
if (t == GST_CLOCK_TIME_NONE) if (t == GST_CLOCK_TIME_NONE)
return "00:00:00.00"; return "00:00:00.00";

View File

@@ -1,6 +1,8 @@
#ifndef __GSTGUI_TOOLKIT_H_ #ifndef __GSTGUI_TOOLKIT_H_
#define __GSTGUI_TOOLKIT_H_ #define __GSTGUI_TOOLKIT_H_
#include <glibconfig.h>
#include <string> #include <string>
#include <list> #include <list>
@@ -8,7 +10,7 @@ namespace GstToolkit
{ {
std::string date_time_string(); std::string date_time_string();
std::string time_to_string(ulong t); std::string time_to_string(guint64 t);
std::string gst_version(); std::string gst_version();
std::list<std::string> all_plugins(); std::list<std::string> all_plugins();

View File

@@ -8,7 +8,7 @@
// Draw a Rectangle (triangle strip) with a texture // Draw a Rectangle (triangle strip) with a texture
class ImageSurface : public Primitive { class ImageSurface : public Primitive {
void deleteGLBuffers_() {} void deleteGLBuffers_() override {}
public: public:
ImageSurface(const std::string& path = "" ); ImageSurface(const std::string& path = "" );
@@ -83,7 +83,7 @@ public:
class LineCircle : public LineStrip { class LineCircle : public LineStrip {
void deleteGLBuffers_() {} void deleteGLBuffers_() override {}
public: public:
LineCircle(glm::vec3 color, uint linewidth = 1); LineCircle(glm::vec3 color, uint linewidth = 1);

View File

@@ -3,6 +3,9 @@
#include <string> #include <string>
#include <map> #include <map>
#ifdef __APPLE__
#include <sys/types.h>
#endif
namespace Resource namespace Resource
{ {

View File

@@ -3,6 +3,9 @@
#define INVALID_ID -1 #define INVALID_ID -1
#ifdef __APPLE__
#include <sys/types.h>
#endif
#include <set> #include <set>
#include <vector> #include <vector>
#include <glm/glm.hpp> #include <glm/glm.hpp>

View File

@@ -50,7 +50,6 @@ void SessionVisitor::visit(Group &n)
// revert to group as current // revert to group as current
xmlCurrent_ = group; xmlCurrent_ = group;
} }
n.visible_;
} }
void SessionVisitor::visit(Switch &n) void SessionVisitor::visit(Switch &n)
@@ -150,7 +149,7 @@ void SessionVisitor::visit(LineStrip &n)
} }
} }
void SessionVisitor::visit(LineSquare &n) void SessionVisitor::visit(LineSquare &)
{ {
// Node of a different type // Node of a different type
xmlCurrent_->SetAttribute("type", "LineSquare"); xmlCurrent_->SetAttribute("type", "LineSquare");

View File

@@ -24,7 +24,7 @@ public:
void visit(ImageSurface& n) override; void visit(ImageSurface& n) override;
void visit(MediaSurface& n) override; void visit(MediaSurface& n) override;
void visit(LineStrip& n) override; void visit(LineStrip& n) override;
void visit(LineSquare& n) override; void visit(LineSquare&) override;
void visit(LineCircle& n) override; void visit(LineCircle& n) override;
// Elements with attributes // Elements with attributes

View File

@@ -54,8 +54,8 @@
/// ///
Scene scene; Scene scene;
FrameBuffer *output; FrameBuffer *output;
MediaSurface testnode1("file:///home/bhbn/Videos/iss.mov"); MediaSurface testnode1("file:///Users/Herbelin/Movies/iss.mov");
MediaSurface testnode2("file:///home/bhbn/Videos/fish.mp4"); MediaSurface testnode2("file:///Users/Herbelin/Movies/mp2test.mpg");
ImageSurface testnode3("images/v-mix_256x256.png"); ImageSurface testnode3("images/v-mix_256x256.png");

View File

@@ -83,7 +83,7 @@ void tinyxml2::XMLElementToGLM(XMLElement *elem, glm::mat4 &matrix)
} }
} }
void tinyxml2::XMLCheckResult(uint r) void tinyxml2::XMLCheckResult(int r)
{ {
XMLError result = (XMLError) r; XMLError result = (XMLError) r;
if ( result != XML_SUCCESS) if ( result != XML_SUCCESS)

View File

@@ -16,7 +16,7 @@ void XMLElementToGLM(XMLElement *elem, glm::vec3 &vector);
void XMLElementToGLM(XMLElement *elem, glm::vec4 &vector); void XMLElementToGLM(XMLElement *elem, glm::vec4 &vector);
void XMLElementToGLM(XMLElement *elem, glm::mat4 &matrix); void XMLElementToGLM(XMLElement *elem, glm::mat4 &matrix);
void XMLCheckResult(uint r); void XMLCheckResult(int r);
} }