glActiveTexture identifier not found

by Raghav, Friday, November 20, 2015, 09:35 (734 days ago)

On Windows 7 using QTCreator with QT5.5 while building LiveCV source, I am getting glActiveTexture identifer not found error. Inspite of adding <QOpenGLFunctions> its not getting resolved.

Please suggest how to make the build up.

glActiveTexture identifier not found

by Dinu SV ⌂, Friday, November 20, 2015, 11:16 (734 days ago) @ Raghav

Hello,

I've pushed a fix to the problem. The build should work now.

https://github.com/dinusv/livecv/commit/e21204db30ef5db5961d4819a393ebcb379006f6

Apparently in Qt5.5. they've removed the default includes to the gl library, and added wrappers within a QOpenGLFunctions object.

Tags:
glActiveTexture

glActiveTexture identifier not found

by Raghav, Friday, November 20, 2015, 13:04 (734 days ago) @ Dinu SV

Thank you for the immediate response.

The same linking error is occurring in QDrawHistogram.hpp/.cpp and QMatRead.hpp/.cpp for glclear and glclearcolor. However including the declaration along with the corresponding class has solved that problem too. Further typecasting with double in lines 90 and 91 of QMatRead.cpp for ceil function has built the liveCV project successfully and I was able to run the examples placed in the project folder.

Thank you for the support.

However a small query again. Suppose if we create a new QT Quick project in QT5.5 and wanted to import the built lcvcore or other corresponding plugins, what I had done is the following which was not successful

1. Copied the plugins folder from application/release to /qml folder of QT 5.5 installation
2. Created a new Qt Quick project using Qtcreator
3. Added import plugins.lcvcore to main.qml

With this, the project got successfully built, but while running it has thrown the error /qml/plugins/lcvcore/lcvcore.dll: The specified module could not be found.

Appreciate your advice or suggestions in this regard

Regards
Raghav

glActiveTexture identifier not found

by Dinu SV ⌂, Friday, November 20, 2015, 13:47 (734 days ago) @ Raghav

Thanks, I will have to add a fix to glClear and glClearColor as well then.

The modules can fail to load if opencv library dlls together with lcvlib.dll cannot be found automatically. I'd suggest to try copying the following dll's into your applications build directory:

lcvlib.dll
opencv_core249.dll
opencv_highgui249.dll
opencv_imgproc249.dll
opencv_ffmpeg249_64.dll #if you want to read videos
opencv_video249.dll #for the lcvvideo module.

If this would still not solve the problem, you might have to use dependency walker to see if anything else is missing when loading the libraries.

Tags:
qml plugins

glActiveTexture identifier not found

by Raghav, Friday, November 20, 2015, 14:38 (734 days ago) @ Dinu SV

Thank you for the quick response. After copying the respective dlls into the application built folder it worked out successfully.

Appreciate your support in this regard.

You did integrate quite a good plugins into the Livecv.

Video writer (after multiple camera capture) would also be a good plugin to add with various options related to configurable resolution, format like avi, yuv420, raw and also with various encoder settings.

Please let me know your thought process about the same.

Regards
Raghav

glActiveTexture identifier not found

by Dinu SV ⌂, Saturday, November 21, 2015, 10:53 (733 days ago) @ Raghav

Thanks, glad to see it worked out!

Yes, I was actually thinking of adding some form of output to live cv, both the imwrite and videowriter functionality would be useful. I think this would allow the application to run scripts without the UI in a portable way:

livecv filter.qml -i input.avi -o output.avi

There's also the xml/json libraries that need to be included, which would help configure scripts more easily. I'm not sure when I will have time though, I'm a bit caught up in other projects at the moment :(.