How to compile OpenGL code using QT Creator on Ununtu 64 bit?
-
Hi.
I need to compile OpenGL code written in C++ on QT Creator but I do not know that I have added libraries required correctly: X11 and GL..
Ah, I am on Ubuntu Linux 64bit 12.04LTS.
When I compile, it shows a following Error
@:-1: error: [Makefile] Error 3@My opengl c++ source code compiled and worked fine on Code Blocks IDE once after I simply added X11 and GL library.. but it seem it do not work same on QT Creator IDE...
How to fix it??
Here is .pro file:
@
TEMPLATE = app
CONFIG += consoleCONFIG -= app_bundle
CONFIG -= qtSOURCES += main.cpp
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += X11unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += GL
@Here is downloadable address of Cpp source code:
http://cfile225.uf.daum.net/attach/2222E53452156ACD2115EA -
Hi and welcome to devnet,
Could you post the rest of the error ?
There's no need for several CONFIG += link_pkgconfig lines one is enough.
Also, are you sure that X11 and GL are the right name to give to link_pkgconfig ?