![]() |
2010-06-01
, 19:28
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#2
|
CONFIG += link_pkgconfig PKGCONFIG += gtk+-2.0
The Following User Says Thank You to gri For This Useful Post: | ||
![]() |
2010-06-01
, 19:44
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#3
|
CFLAGS += `pkg-config --cflags gtk+-2.0` LDFLAGS += `pkg-config --libs gtk+-2.0`
The Following User Says Thank You to Joorin For This Useful Post: | ||
![]() |
2010-06-01
, 19:52
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#4
|
![]() |
2010-06-01
, 20:26
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#5
|
C:/MADDE/0.6.72/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/lib/crt1.o:
In function `_start':
init.c.text+0x30): undefined reference to `main'
build/libcallnotify.o: In function `execute':
libcallnotify.c.text+0x28): undefined reference to `gtk_window_get_type'
libcallnotify.c.text+0x3c): undefined reference to `g_type_check_instance_cast
'
libcallnotify.c.text+0x70): undefined reference to `gtk_dialog_new_with_button
s'
libcallnotify.c.text+0x7c): undefined reference to `hildon_check_button_new'
libcallnotify.c.text+0x84): undefined reference to `gtk_button_get_type'
libcallnotify.c.text+0x94): undefined reference to `g_type_check_instance_cast
'
libcallnotify.c.text+0x9c): undefined reference to `gtk_button_set_label'
libcallnotify.c.text+0xa4): undefined reference to `hildon_check_button_new'
libcallnotify.c.text+0xb0): undefined reference to `g_type_check_instance_cast
'
libcallnotify.c.text+0xb8): undefined reference to `gtk_button_set_label'
libcallnotify.c.text+0xc0): undefined reference to `hildon_check_button_new'
libcallnotify.c.text+0xcc): undefined reference to `g_type_check_instance_cast
'
libcallnotify.c.text+0xd4): undefined reference to `gtk_button_set_label'
libcallnotify.c.text+0xdc): undefined reference to `gtk_label_new'
libcallnotify.c.text+0xf8): undefined reference to `gtk_hscale_new_with_range'
libcallnotify.c.text+0x1b0): undefined reference to `g_strtod'
libcallnotify.c.text+0x1bc): undefined reference to `gtk_range_get_type'
libcallnotify.c.text+0x1c8): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x1cc): undefined reference to `gtk_range_get_adjustment'
libcallnotify.c.text+0x1dc): undefined reference to `gtk_adjustment_set_value'
libcallnotify.c.text+0x1e8): undefined reference to `gtk_dialog_get_type'
libcallnotify.c.text+0x1f8): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x200): undefined reference to `gtk_container_get_type'
libcallnotify.c.text+0x210): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x218): undefined reference to `gtk_container_add'
libcallnotify.c.text+0x224): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x230): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x238): undefined reference to `gtk_container_add'
libcallnotify.c.text+0x244): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x250): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x258): undefined reference to `gtk_container_add'
libcallnotify.c.text+0x264): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x270): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x278): undefined reference to `gtk_container_add'
libcallnotify.c.text+0x284): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x290): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x298): undefined reference to `gtk_container_add'
libcallnotify.c.text+0x2a0): undefined reference to `gtk_widget_show_all'
libcallnotify.c.text+0x2ac): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x2b0): undefined reference to `gtk_dialog_run'
libcallnotify.c.text+0x2bc): undefined reference to `gtk_widget_get_type'
libcallnotify.c.text+0x2c8): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x2cc): undefined reference to `gtk_widget_destroy'
libcallnotify.c.text+0x2f4): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x2f8): undefined reference to `hildon_check_button_get_a
ctive'
libcallnotify.c.text+0x310): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x314): undefined reference to `hildon_check_button_get_a
ctive'
libcallnotify.c.text+0x32c): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x330): undefined reference to `hildon_check_button_get_a
ctive'
libcallnotify.c.text+0x344): undefined reference to `gtk_adjustment_get_value'
libcallnotify.c.text+0x378): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x380): undefined reference to `hildon_check_button_set_a
ctive'
libcallnotify.c.text+0x390): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x398): undefined reference to `hildon_check_button_set_a
ctive'
libcallnotify.c.text+0x3a8): undefined reference to `g_type_check_instance_cas
t'
libcallnotify.c.text+0x3b0): undefined reference to `hildon_check_button_set_a
ctive'
collect2: ld returned 1 exit status
make: *** [build/helloworld] Error 1
![]() |
2010-06-01
, 20:32
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#6
|
The Following User Says Thank You to gri For This Useful Post: | ||
![]() |
2010-06-01
, 21:11
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#7
|
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
![]() |
2010-06-01
, 22:55
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#8
|
![]() |
2010-06-01
, 23:00
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#9
|
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
Karsten Heimrich added a comment - 01/Jun/10 05:48 PM Hi, I've fixed the problem in Creator trunk, still it does not work properly on windows because of a bug in MADDE. To make it work, just edit in your MADDE install dir (Path/To/Madde/madbin\pkg-config.cmd), replace the line with @env.exe PERL5LIB=/madlib/perl5 pkg-config %*
In the wiki it says:
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)
Last edited by omeriko9; 2010-06-01 at 19:25.