Code Monkey home page Code Monkey logo

ofxshivavg's People

Contributors

bgstaal avatar ivaylopg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofxshivavg's Issues

error with ofxShivaVGRenderer::draw(ofPolyline & poly)

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>>'

스크린샷 2020-03-26 오후 5 11 37

ofxglfw

Could you give a hint as to how I install glfw? Im on OS X using Xcode.

Error linux

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)) ===|

error when building with OF 0.0.8

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

error in OSX 10.10 when compiling in actual OF github repo

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.

Issues with newest dev build of openframeworks

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.

Compiling on Windows

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.