Reply
Thread Tools
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#161
Originally Posted by pta0007 View Post
Then I tried to build the project with MADDE, using mad qmake. I got 'pkg-config' is not recognized as an internal or external command, operable program or batch file.

I have asked the question at Nokia forum, but it seems I still can't get the solution. Any one help?

Cheers.
Does the following command work for you in a terminal ?

Code:
mad pkg-config --list-all
 
Posts: 25 | Thanked: 1 time | Joined on Feb 2010
#162
Originally Posted by calvin_42 View Post
Does the following command work for you in a terminal ?

Code:
mad pkg-config --list-all
yes, it works.

If I enter a project and type the commad "mad pkg-config --cflags gtk+-2.0", the terminal shows
Code:
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/freetype2 -DMAEMO_CHANGES
does this mean the command works as well? but when mad qmake and mad make, the header file I need still can not be found.
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#163
Originally Posted by pta0007 View Post
yes, it works.

If I enter a project and type the commad "mad pkg-config --cflags gtk+-2.0", the terminal shows
Code:
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/freetype2 -DMAEMO_CHANGES
does this mean the command works as well? but when mad qmake and mad make, the header file I need still can not be found.
Are you really sure you're actually compiling with MADDE and not just using the Compile function of Qt Creator ? I ask because I made the mistake once and got exactly the same message than you.
 
Posts: 25 | Thanked: 1 time | Joined on Feb 2010
#164
Originally Posted by calvin_42 View Post
Are you really sure you're actually compiling with MADDE and not just using the Compile function of Qt Creator ? I ask because I made the mistake once and got exactly the same message than you.
yes, I only create and edit the project with Qt Creator. I compile it in MADDE, using mad qmake and mad make. I think the problem is qmake can not run the function such as pkg-config, which does not belong to its own functions, in MADDE. (maybe this is the bug?not sure)

Could you tell me how you handled the problem then?
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#165
Are you on Windows ?
 
Posts: 25 | Thanked: 1 time | Joined on Feb 2010
#166
Originally Posted by calvin_42 View Post
Are you on Windows ?
yes! that is the reason I use MADDE.
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#167
Just wanted to be sure.

Anyway unzip the files here to c:\windows\system32 and then try again to compile.
 
Posts: 25 | Thanked: 1 time | Joined on Feb 2010
#168
I unzip the file into system32, and now the pkg-config works, but I get another message:
Code:
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
what should I do then? Can I add the directory to the MADDE, which includes gtk+?
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#169
That's what I thought. You're using the windows pkg-config and not the one provided by MADDE.

But I can't figure why. Try to create a new QT project, maybe the .pro files are wrong configured. You can post them here if you want.
 
Posts: 25 | Thanked: 1 time | Joined on Feb 2010
#170
Here is my .pro file
Code:
TARGET = MadCamera
TEMPLATE = app
SOURCES += main.cpp \
    mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += gtk+-2.0 hildon-1 gstreamer-0.10
}
 
Reply

Tags
madde

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:33.