maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Help compiling Qt in Scratchbox (https://talk.maemo.org/showthread.php?t=58979)

GugloPWN 2010-07-22 21:50

Help compiling Qt in Scratchbox
 
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.

qwerty12 2010-07-23 00:04

Re: Help compiling Qt in Scratchbox
 
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.

javispedro 2010-07-23 00:29

Re: Help compiling Qt in Scratchbox
 
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.

GugloPWN 2010-07-23 04:25

Re: Help compiling Qt in Scratchbox
 
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.


All times are GMT. The time now is 03:36.

vBulletin® Version 3.8.8