Giter Club home page Giter Club logo

glv's People

Contributors

eranws avatar kybr avatar lanceputnam 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

Watchers

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

glv's Issues

Crash when running Examples

when I run the examples spinSynth, notifications:
glv_font cause null dereferencing, result of GraphicsData is not populated.

Compiling with Microsoft Visual Studio 2013

Alright, I got it building with VS 2013, generated the lib, all fine.
But, when I'm trying to link it from my project its getting me errors as the follow:

Error 3 error C2027: use of undefined type 'T' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 4 error C2226: syntax error : unexpected type 'T' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 5 error C2988: unrecognizable template declaration/definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 6 error C2059: syntax error : '' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 7 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 8 error C2988: unrecognizable template declaration/definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 9 error C2059: syntax error : '' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 10 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 11 error C2143: syntax error : missing ';' before '{' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 12 error C2447: '{' : missing function header (old-style formal list?) c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 41 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 245 1 JangadaResWin
Error 42 error C2334: unexpected token(s) preceding ':'; skipping apparent function body c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 245 1 JangadaResWin
Error 43 error C2143: syntax error : missing ')' before ';' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 44 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 45 error C2238: unexpected token(s) preceding ';' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 46 error C1201: unable to continue after syntax error in class template definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin

Is there anyway to solve this?

variable length array of non-pod element type in glv_draw.h

OSX 10.10, xcode 6.3.2

template<int N, int A>
void spokes(float l, float t, float r, float b){
    int N2 = N<<1;
    Point2 pts[N2];  // this will cause compile error
    float cx = (l+r)/2;
    float cy = (t+b)/2;
    genEllipse(pts+1,N,2, A/360.,1, l,t,r,b);
    for(int i=0; i<N2; i+=2) pts[i](cx,cy);
    paint(Lines, pts, GLV_ARRAY_SIZE(pts));
}
const int N2 = N << 1; 

I change to this then I can compile it

"Stack around the variable 'v' was corrupted. " in fromToken<bool>()

Latest github version, vs2013, win7 x64

Copy fromToken for simple test:

const char* s = "{0, 0, 1, 0}";
const char * match = "01";
const char * format = "%hhi";   // "%c"
int stride = 1;

bool* dst = new bool[4];

int i = -1;
bool v;
while (++i < 4 && s){
    if (!(s = strpbrk(s, match))) break;
    bool v; sscanf(s, format, &v);
    dst[i*stride] = v;
    s = strpbrk(s, " ,");
}

"%c" works, maybe in my compiler bool is shorter then "%hhi"(unsigned char)?

Error when compiling on Arch Linux

Upon running make I get the following error on master, v0.9.7 and the commit referenced by wolftype/versor.

/usr/include/GL/glext.h:12066:25: Fehler: in Konflikt stehende Deklaration »typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, const GLfloat*)«
12066 | typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In Datei, eingebunden von GLV/glv_conf.h:90,
                 von GLV/glv_draw.h:9,
                 von GLV/glv_core.h:14,
                 von GLV/glv_buttons.h:7,
                 von src/glv_buttons.cpp:4:
/usr/include/GL/glew.h:18734:28: Anmerkung: bisherige Deklaration als »typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, GLfloat*)«
18734 | typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comple with MSYS2 problem

D:/msys64/usr/include/sys/types.h:129:18: error: conflicting declaration 'typedef __int_least64_t time_t'
typedef TIME_T time_t;
^~~~~~
In file included from D:/msys64/mingw32/i686-w64-mingw32/include/stddef.h:7:0,
from D:/msys64/mingw32/lib/gcc/i686-w64-mingw32/7.3.0/include/stddef.h:1,
from D:/msys64/mingw32/include/c++/7.3.0/bits/cxxabi_init_exception.h:38,
from D:/msys64/mingw32/include/c++/7.3.0/bits/exception_ptr.h:38,
from D:/msys64/mingw32/include/c++/7.3.0/exception:142,
from D:/msys64/mingw32/include/c++/7.3.0/new:40,
from D:/msys64/mingw32/include/c++/7.3.0/ext/new_allocator.h:3 ,
from D:/msys64/mingw32/include/c++/7.3.0/i686-w64-mingw32/bits/c++allocator.h:33,
from D:/msys64/mingw32/include/c++/7.3.0/bits/allocator.h:46,
from D:/msys64/mingw32/include/c++/7.3.0/bits/stl_tree.h:64,
from D:/msys64/mingw32/include/c++/7.3.0/map:60,
from GLV/glv_core.h:7,
from GLV/glv_buttons.h:7,
from src/glv_buttons.cpp:4:
D:/msys64/mingw32/i686-w64-mingw32/include/crtdefs.h:136:20: note: previous declaration as 'typedef __time32_t time_t'
typedef __time32_t time_t;
^~~~~~
In file included from D:/msys64/mingw32/include/c++/7.3.0/i686-w64-mingw32/bits/gthr.h:148:0,
from D:/msys64/mingw32/include/c++/7.3.0/ext/atomicity.h:35,
from D:/msys64/mingw32/include/c++/7.3.0/bits/basic_string.h:3 ,
from D:/msys64/mingw32/include/c++/7.3.0/string:52,
from D:/msys64/mingw32/include/c++/7.3.0/stdexcept:39,
from D:/msys64/mingw32/include/c++/7.3.0/array:39,
from D:/msys64/mingw32/include/c++/7.3.0/tuple:39,
from D:/msys64/mingw32/include/c++/7.3.0/bits/stl_map.h:63,
from D:/msys64/mingw32/include/c++/7.3.0/map:61,
from GLV/glv_core.h:7,
from GLV/glv_buttons.h:7,
from src/glv_buttons.cpp:4:
D:/msys64/mingw32/include/c++/7.3.0/i686-w64-mingw32/bits/gthr-default.h: In function 'int __gthread_yield()':
D:/msys64/mingw32/include/c++/7.3.0/i686-w64-mingw32/bits/gthr-default.h:692:10 error: 'sched_yield' was not declared in this scope
return _gthrw(sched_yield) ();
^

And there are some similar errors.

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.