Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using VVISF with cinder #7

Open
oogre opened this issue Oct 28, 2021 · 0 comments
Open

using VVISF with cinder #7

oogre opened this issue Oct 28, 2021 · 0 comments

Comments

@oogre
Copy link

oogre commented Oct 28, 2021

Hello,
I use VVISF inside a cinder project. https://github.com/oogre/ORAGE/tree/ISF
I only use ISFDoc::generateShaderSource and ISFAttr.
My integration is working without problem on OSx,
I'm struggling to make it work on Windows.
Currently I receive this error message

cinder.lib(ImageSourceFileStbImage.obj) : error LNK2005: "void __cdecl stbi__tga_read_rgb16(struct stbi__context *,unsigned char *)" (?stbi__tga_read_rgb16@@YAXPEAUstbi__context@@PEAE@Z) already defined in GLBufferPool.obj

It seems there is a conflict with stb_image.h which is used by cinder and by VVGL.

From your point of view what's the best solution :

  • modify VVISF-GL to split VVISF from VVGL (cause I don't need VVGL) ?
  • use VVISF-GL in a small app for the interpretation and implement my own ISFAttr inside my app
  • compile VVISF-GL inside cinder to handle the conflict
  • make a VVISF-GL branch to turn it into cinder block
  • something else with preprocessor magic to handle this conflict

What can I do to debug this conflict

Have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant