![]() |
Where to add "pkg-config --cflags gtk+-2.0" in madde?
I'm trying to compile with madde a control panel plugin in c.
In the wiki it says: Quote:
And another question - does the current madde version (for win) uses PR1.2 libraries? (Meaning: using libglib-2.0.so.1 instead of libglib-2.0.so.0) |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
If you're using qmake, add the following the the .pro file:
Code:
CONFIG += link_pkgconfig Edit: Yes, all MADDE versions above 0.6.14 support PR 1.2. Edit #2: When using QtCreator, please also take a look at this bug report: http://bugreports.qt.nokia.com/brows...s:all-tabpanel |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
In an "ordinary" Makefile, the following is common
Code:
CFLAGS += `pkg-config --cflags gtk+-2.0` |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
Quote:
|
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
Definately I miss something. These are the qmake results:
Quote:
|
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
Did you also add "PKGCONFIG += hildon-1" or whatever the commandline in the Makefile would be as you said in your first post?
Do you have a main function? (the first error) What is your "TEMPLATE" when using qmake? lib, app? Do you compile using QtCreator or the MADDE commandline? (Very important!) You can also take a look at this example project of the bug report: http://bugreports.qt.nokia.com/secur...estproject.zip |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
Quote:
I used the "lib" template and it worked! I'm not using QtCreator but copied a .c file from esbox in scratchbox because I can't compile there against PR1.2 libraries (esbox won't update for some reason...). |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
It was not working for me, either.
For me, adding the directories of the required libraries to my project file's include paths and then adding the libraries to the LIBS made it work with Qt Creator. This is how I did it: here is my example project file |
Re: Where to add "pkg-config --cflags gtk+-2.0" in madde?
Quote:
Take a look at the bug report I mentioned in my first post: http://bugreports.qt.nokia.com/brows...s:all-tabpanel It has been fixed today: Code:
Karsten Heimrich added a comment - 01/Jun/10 05:48 PM |
All times are GMT. The time now is 10:59. |
vBulletin® Version 3.8.8