bgstaal / ofxshivavg Goto Github PK
View Code? Open in Web Editor NEWA 2d renderer for openFrameworks based on the ShivaVG library
License: GNU Lesser General Public License v2.1
A 2d renderer for openFrameworks based on the ShivaVG library
License: GNU Lesser General Public License v2.1
vector<ofVec3f> &verts = poly.getVertices();
The above part of the code results in the following error
/Users/chgnhyk/Desktop/of_v0.11.0_osx_release/addons/ofxShivaVG/src/ofxShivaVGRenderer.cpp:88:22: Non-const lvalue reference to type 'vector' cannot bind to a value of unrelated type 'vector<glm::vec<3, float, glm::packed_highp>>'
Any chance to run this addon on on oF 10 ?
Could you give a hint as to how I install glfw? Im on OS X using Xcode.
When I build and run the example in OS X 10.11, OF 9.3, Xcode 7.3,
I made the change outlined here: #5
This is what I see with Shiva Reendered - note the circle and ellipse isn't drawn and not getting smoothness overall.
This is the default rendered:
Hi,
I get the following error when I try to compile my project using ShivaVG.
I tried to compile the project in Ubuntu 12.04 and Ubuntu 14.04. I also tried with a fresh installation of the stable realease of OF. Nothing works.
Any ideas?
||=== Build: Debug in libopenFrameworks (compiler: GNU GCC Compiler) ===|
||=== Build: Debug in UCH-V2 (compiler: GNU GCC Compiler) ===|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|59|error: duplicate ‘unsigned’|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|59|error: two or more data types in declaration specifiers|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|61|error: duplicate ‘unsigned’|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|61|error: duplicate ‘short’|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|63|error: duplicate ‘unsigned’|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|63|error: two or more data types in declaration specifiers|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|65|error: duplicate ‘unsigned’|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|65|error: ‘long long long’ is too long for GCC|
/home/jccb/Documents/open_frameworks/addons/ofxShivaVG/libs/ShivaVG/src/shDefs.h|65|error: ‘long long long’ is too long for GCC|
||=== Build failed: 9 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|
hi!
I can't run the examples always have the error:
'tr1/memory' file not found
I'm on osx 10.9 , OF 0.0.8, XCODE 5.0.2
ofxShivaVG looks amazing hope I can use it.
best,
j
clang: warning: -lpthread: 'linker' input unused
/Users/manu/Documents/openFrameworks/addons/ofxShivaVG/src/ofxShivaVGRenderer.cpp:29:21: error: constructor for 'ofxShivaVGRenderer' must explicitly initialize the base class 'ofGLRenderer' which does not have a default constructor
ofxShivaVGRenderer::ofxShivaVGRenderer ()
This error is appearing when compiling the example, or when compile an empty app generated with Project Generator too.
I am using the OF from the git repo up to date.
EDIT: in OF 0.8.4 is working correctly.
dynamicPath_Example not rendering vector graphics in newest build of OF.
ShivaVG_Example working but rendered graphics are flipped. Running newest dev build of OF, on osx 10.8 xcode 4.6.
Trying to compile on Windows I got quite a few errors:
Error C2664 'void (SHPath *,VGPathSegment,VGPathCommand,SHfloat32 *,void *)': cannot convert argument 3 from 'SHuint32' to 'VGPathCommand'
Error (active) a value of type "VGfloat" cannot be used to initialize an entity of type "VGPathDatatype"
Error C2664 'void shCopyPixels(SHuint8 *,VGImageFormat,SHint32,const SHuint8 *,VGImageFormat,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32,SHint32)': cannot convert argument 4 from 'const void *' to 'const SHuint8 *' \ofxShivaVG\libs\ShivaVG\src\shImage.c 837
Error C2440 '=': cannot convert from 'SHuint32' to 'VGPathAbsRel' \ofxShivaVG\libs\ShivaVG\src\shPath.c 684
Error C2664 'void (SHPath *,VGPathSegment,VGPathCommand,SHfloat32 *,void *)': cannot convert argument 3 from 'SHuint32' to 'VGPathCommand'
\ofxShivaVG\libs\ShivaVG\src\shPath.c 700
...
I fixed all of them mostly by casting like:
shCopyPixels(i->data, i->fd.vgformat, i->texwidth * i->fd.bytes,
(SHuint8 *)data, dataFormat,dataStride,
i->width, i->height, width, height,
x, y, 0, 0, width, height);
Except one:
Error C2440 'initializing': cannot convert from 'VGfloat' to 'VGPathDatatype'
\ofxShivaVG\libs\ShivaVG\src\shVgu.c 32
VGPathDatatype type = vgGetParameterf(path, VG_PATH_DATATYPE);
vgGetParameterf
seems to return a VGfloat
and I wasn't able to cast that to VGPathDatatype
.
To make it compile I just used:
VGPathDatatype type = VG_PATH_DATATYPE_S_8;
which just jumps into the first case of the switch statement.
Pull request with patch: #9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.