maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Technology Preview: MADDE (https://talk.maemo.org/showthread.php?t=38075)

calvin_42 2010-02-18 19:45

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by pta0007 (Post 535064)
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

pta0007 2010-02-18 23:57

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by calvin_42 (Post 535116)
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 2010-02-19 00:04

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by pta0007 (Post 535635)
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.

pta0007 2010-02-19 00:09

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by calvin_42 (Post 535647)
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 2010-02-19 00:10

Re: Technology Preview: MADDE
 
Are you on Windows ?

pta0007 2010-02-19 00:13

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by calvin_42 (Post 535656)
Are you on Windows ?

yes! that is the reason I use MADDE.

calvin_42 2010-02-19 00:21

Re: Technology Preview: MADDE
 
Just wanted to be sure.

Anyway unzip the files here to c:\windows\system32 and then try again to compile.

pta0007 2010-02-19 00:33

Re: Technology Preview: MADDE
 
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 2010-02-19 00:42

Re: Technology Preview: MADDE
 
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.

pta0007 2010-02-19 00:51

Re: Technology Preview: MADDE
 
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
}



All times are GMT. The time now is 18:15.

vBulletin® Version 3.8.8