[maemo-developers] [maemo-developers] cannot compile example_libosso.c
From: Dionisis Petromanolakis dpetroma at unipi.grDate: Fri Jul 7 14:05:04 EEST 2006
- Previous message: [maemo-developers] cannot compile example_libosso.c
- Next message: [maemo-developers] cannot compile example_libosso.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi Laszlo and all, what do you mean with makefile?I just downloaded the file from the maemo.org. I didnt find a makefile. Instead im trying to compile it from the command prompt. but the compilation always fails. The command i use is "gcc -o example_libosso example_libosso.c 'pkg-config --cflags gtk+-2.0 hildon-libs' -ansi -Wall 'pkg-config --libs gtk+-2.0 hildon-libs'", is something wrong with the command? Do i need to specify the libosso library from path /usr/lib directory. I assume that the program may cannot see this library. I tried to include /usr/lib/libosso.so in the compilation but it didnt find the file. Do i need to download another file? Do i need to use another command option? regards, Dionysis ----- Original Message ----- From: Laszlo T. To: Dionisis Petromanolakis Cc: maemo-developers at maemo.org Sent: Friday, July 07, 2006 1:30 AM Subject: Re: [maemo-developers] cannot compile example_libosso.c 2006/7/6, Dionisis Petromanolakis <dpetroma at unipi.gr>: hi all, i m trying to compile file example_libosso.c from the tutorial of maemo and everything goes wrong. First of all, there wasnt i directory dbus but a directory dbus-1.0 which contains this. I removed it outside of dbus-1.0 in order the files to find it. Then, the file dbus-arch-deps.h wasnt there so i downloaded it from the internet and put it inside dbus. Then i get the following message. I assumed that the program (example_libosso.c) couldnt find the declaration of the functions so i redeclared them inside my program, still nothing happend. So, this is the output i get: "example_libosso.c: In function `exit_event_handler': example_libosso.c:65: warning: implicit declaration of function `gtk_infoprint' /var/tmp/ccvvWU3o.o: In function `dbus_req_handler':example_libosso.c:(.text+0x64): undefined reference to `osso_system_note_infoprint' /var/tmp/ccvvWU3o.o: In function `main':example_libosso.c:(.text+0xbe): undefined reference to `osso_initialize' :example_libosso.c:(.text+0x22e): undefined reference to `osso_rpc_set_cb_f' :example_libosso.c:(.text+0x270): undefined reference to `osso_application_set_exit_cb' :example_libosso.c:(.text+0x2c1): undefined reference to `osso_deinitialize' collect2: ld returned 1 exit status" does anyone has an idea in order to fix it? how can i compile the program? regards, dionysis _______________________________________________ maemo-developers mailing list maemo-developers at maemo.org https://maemo.org/mailman/listinfo/maemo-developers make? use Makefile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060707/3e0e84cf/attachment.htm
- Previous message: [maemo-developers] cannot compile example_libosso.c
- Next message: [maemo-developers] cannot compile example_libosso.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]