mildsunrise / ccv15

An effort to migrate Community Core Vision 1.5 to other platforms.
4 stars 3 forks source link

Compilation problem on ubuntu 64 bit undefined reference to `pglGenFramebuffersEXT' etc. #4

Open allan-simon opened 10 years ago

allan-simon commented 10 years ago

Hello

I've tried compiling ccv15 on a ubuntu 64 bit, I've solved most of libs issue, but during linking I got the following error (see below)

I think I have all the dependency installed and correctly put, but the error is weird because when reading the symbol I got i have for example

glGenFramebuffersEXT

without a p and the code itself ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp line 15 has a reference to the function without p

it seems people there got the same issue http://nuigroup.com/forums/viewthread/8691/P15/ but there's no clear explanation on how to solve it

/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:38: undefined reference to `pglGenFramebuffersEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:39: undefined reference to `pglBindFramebufferEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:42: undefined reference to `pglFramebufferTexture2DEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:44: undefined reference to `pglBindFramebufferEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:46: undefined reference to `pglCheckFramebufferStatusEXT'
obj/Debug/addons/ofxNCore/src/Filters/GPUImageFilter.o: In function `GPUImageFilter::apply(unsigned int, unsigned int)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:134: undefined reference to `pglBindFramebufferEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/GPUImageFilter.cpp:209: undefined reference to `pglBindFramebufferEXT'
obj/Debug/addons/ofxNCore/src/Filters/GPUImageFilter.o: In function `ShaderProgram::enable()':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:34: undefined reference to `pglUseProgram'
obj/Debug/addons/ofxNCore/src/Filters/GPUImageFilter.o: In function `ShaderProgram::disable()':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:35: undefined reference to `pglUseProgram'
obj/Debug/addons/ofxNCore/src/Filters/GPUImageFilter.o: In function `ShaderProgram::setUniform1f(char const*, float)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:36: undefined reference to `pglUniform1f'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:36: undefined reference to `pglGetUniformLocation'
obj/Debug/addons/ofxNCore/src/Filters/GPUImageFilter.o: In function `ShaderProgram::setUniform1i(char const*, int)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:37: undefined reference to `pglUniform1i'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.h:37: undefined reference to `pglGetUniformLocation'
obj/Debug/addons/ofxNCore/src/Filters/ShaderProgram.o: In function `printShaderInfoLog(unsigned int)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:51: undefined reference to `pglGetShaderiv'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:55: undefined reference to `pglGetShaderInfoLog'
obj/Debug/addons/ofxNCore/src/Filters/ShaderProgram.o: In function `printProgramInfoLog(unsigned int)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:68: undefined reference to `pglGetProgramiv'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:72: undefined reference to `pglGetProgramInfoLog'
obj/Debug/addons/ofxNCore/src/Filters/ShaderProgram.o: In function `loadShader(char const*, unsigned int)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:83: undefined reference to `pglCreateShader'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:87: undefined reference to `pglShaderSource'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:88: undefined reference to `pglCompileShader'
obj/Debug/addons/ofxNCore/src/Filters/ShaderProgram.o: In function `ShaderProgram::ShaderProgram(char const*, char const*, char const*)':
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:99: undefined reference to `pglCreateProgram'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:106: undefined reference to `pglAttachShader'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:112: undefined reference to `pglAttachShader'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:116: undefined reference to `pglProgramParameteriEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:117: undefined reference to `pglProgramParameteriEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:118: undefined reference to `pglProgramParameteriEXT'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:125: undefined reference to `pglAttachShader'
/home/ccv/Dev/ccv15/addons/ofxNCore/src/Filters/ShaderProgram.cpp:128: undefined reference to `pglLinkProgram'
obj/Debug/addons/ofxNCore/src/Modules/ofxNCoreVision.o: In function `ProcessFilters::applyGPUFilters()':
/home/ccv/Dev/ccv15/apps/addonsExamples/Codeblocks_64bit/../../../addons/ofxNCore/src/Filters/ProcessFilters.h:186: undefined reference to `pglBindFramebufferEXT'
/home/ccv/Dev/ccv15/apps/addonsExamples/Codeblocks_64bit/../../../addons/ofxNCore/src/Filters/ProcessFilters.h:189: undefined reference to `pglBindFramebufferEXT'
mildsunrise commented 10 years ago

Uhmm...

allan-simon commented 10 years ago

isn't it ^^