Active Topics

 


Reply
Thread Tools
Posts: 12 | Thanked: 2 times | Joined on Jun 2010
#1
I am building off of the simpleGL example here: http://wiki.maemo.org/SimpleGL_example

My problem is that I wanted to use qimage to load in a texture but I need to add some line into the gcc line to show it where Qt is.

I've used the line "g++ -lX11 -lEGL -lGLESv2 filename.cpp"


I don't really know much about scratchbox or compiling in general I mostly just heavily modify examples until I make something neat. I know I installed the qt libs in scratchbox but I don't know where they are or what line I need to add to my compile command.
 

The Following User Says Thank You to GugloPWN For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Try: "g++ -lX11 -lEGL -lGLESv2 $(pkg-config --cflags --libs QtGui) filename.cpp"

Though I believe qmake is preferred over Makefiles with pkg-config etc. lines.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#3
Also if you're using Qt you should really use the native Qt GLES bindings & widget as it might be more easier, or have builtin support for loading textures.
 

The Following User Says Thank You to javispedro For This Useful Post:
Posts: 12 | Thanked: 2 times | Joined on Jun 2010
#4
Thanks qwerty12, the compiler definitely found stuff. Its spitting out errors about QDatastream and 'status'.

javisPedro, I tried to get the native Qt GLWidget working but the only example doesn't compile without some changes that I was unable to figure out http://wiki.maemo.org/OpenGL-ES#Qt_Example

I used the first example that I could get to work.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:27.