×

Discussion Board

Results 1 to 9 of 9

Thread: RTcom

  1. #1
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    RTcom

    I'm triying to run the code that can be seen here: http://maemo.gitorious.org/maemo-rtc...nt/el-client.c

    When I compile I get the following errors:
    Code:
    myapp-main.o: In function `main':
    /home/maemo/workspace/myapp/src/main.cpp:134: undefined reference to `rtcom_el_new'
    /home/maemo/workspace/myapp/src/main.cpp:136: undefined reference to `rtcom_el_get_type'
    /home/maemo/workspace/myapp/src/main.cpp:146: undefined reference to `rtcom_el_event_new'
    /home/maemo/workspace/myapp/src/main.cpp:169: undefined reference to `rtcom_el_add_event'
    /home/maemo/workspace/myapp/src/main.cpp:175: undefined reference to `rtcom_el_add_header'
    /home/maemo/workspace/myapp/src/main.cpp:187: undefined reference to `rtcom_el_delete_event'
    /home/maemo/workspace/myapp/src/main.cpp:189: undefined reference to `rtcom_el_delete_by_service'
    /home/maemo/workspace/myapp/src/main.cpp:191: undefined reference to `rtcom_el_delete_all'
    /home/maemo/workspace/myapp/src/main.cpp:200: undefined reference to `rtcom_el_set_event_flag'
    /home/maemo/workspace/myapp/src/main.cpp:206: undefined reference to `rtcom_el_unset_event_flag'
    /home/maemo/worksmake[2]: Leaving directory `/home/maemo/workspace/myapp/src'
    Making all in po
    pace/myapp/src/main.cpp:211: undefined reference to `rtcom_el_count_by_service'
    collect2: ld returned 1 exit status
    make[2]: *** [myapp] Error 1
    make[2]: Target `all' not remade because of errors.
    And ESBox says "Unresolved inclusion" for the following line:
    Code:
    #include "rtcom-eventlogger/eventlogger.h"
    It seems there is some problem with rtcom-eventlogger, how can I fix this?

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: RTcom

    There might be two reasons. Either you don't have librtcom-eventlogger-dev installed or you failed to tell your project that it has to use rtcom-eventlogger.

  3. #3
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: RTcom

    Quote Originally Posted by divanov View Post
    There might be two reasons. Either you don't have librtcom-eventlogger-dev installed or you failed to tell your project that it has to use rtcom-eventlogger.
    I have it installed inside the scratchbox but not outside. Also how do I tell my project tp use rtcom-eventlogger?

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: RTcom

    Quote Originally Posted by LAS_VEGAS View Post
    I have it installed inside the scratchbox but not outside. Also how do I tell my project tp use rtcom-eventlogger?
    Naturally there is no librtcom-eventlogger-dev outside of scratchbox. You need to use pkgconfig in your project file and that pkgconfig has to fetch rtcom-eventlogger library development information:
    Code:
    CONFIG += link_pkgconfig
    PKGCONFIG += rtcom-eventlogger

  5. #5
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: RTcom

    I am using Esbox, I dont have a .pro file, how do I it?

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: RTcom

    Quote Originally Posted by LAS_VEGAS View Post
    I am using Esbox, I dont have a .pro file, how do I it?
    Esbox is simply an IDE. What is the content of your directory?
    Code:
    ls -lR /home/maemo/workspace/myapp/

  7. #7
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: RTcom

    total 848
    -rw-r--r-- 1 maemo maemo 35147 Jan 6 17:07 COPYING
    -rw-r--r-- 1 maemo maemo 7639 Jan 6 17:07 COPYING.LESSER
    -rw-rw-r-- 1 maemo maemo 25208 Jan 18 14:03 Makefile
    -rw-r--r-- 1 maemo maemo 1031 Jan 6 17:07 Makefile.am
    -rw-rw-r-- 1 maemo maemo 21210 Jan 6 17:12 Makefile.in
    -rw-rw-r-- 1 maemo maemo 65103 Jan 6 17:11 aclocal.m4
    -rwxr--r-- 1 maemo maemo 229 Jan 6 17:07 autogen.sh
    drwxr-xr-x 2 maemo maemo 4096 Jan 6 17:11 autom4te.cache
    -rwxr-xr-x 1 maemo maemo 44892 Dec 15 16:24 config.guess
    -rw-rw-r-- 1 maemo maemo 2283 Jan 6 17:12 config.h
    -rw-rw-r-- 1 maemo maemo 2056 Jan 6 17:12 config.h.in
    -rw-rw-r-- 1 maemo maemo 27419 Jan 18 14:03 config.log
    -rwxrwxr-x 1 maemo maemo 38089 Jan 18 14:03 config.status
    -rwxr-xr-x 1 maemo maemo 33387 Dec 15 16:24 config.sub
    -rwxrwxr-x 1 maemo maemo 252425 Jan 6 17:11 configure
    -rw-r--r-- 1 maemo maemo 772 Jan 6 17:07 configure.ac
    drwxr-xr-x 2 maemo maemo 4096 Jan 7 11:19 debian
    -rwxr-xr-x 1 maemo maemo 15112 Jan 6 17:12 depcomp
    -rwxr-xr-x 1 maemo maemo 9505 Jan 6 17:12 install-sh
    -rw-rw-r-- 1 maemo maemo 0 Jan 6 17:11 intltool-extract.in
    -rw-rw-r-- 1 maemo maemo 0 Jan 6 17:11 intltool-merge.in
    -rw-rw-r-- 1 maemo maemo 0 Jan 6 17:11 intltool-update.in
    -rw-r--r-- 1 maemo maemo 199705 Dec 15 16:24 ltmain.sh
    -rwxr-xr-x 1 maemo maemo 10678 Jan 6 17:12 missing
    -rwxr-xr-x 1 maemo maemo 3421 Jan 6 17:11 mkinstalldirs
    drwxr-xr-x 2 maemo maemo 4096 Jan 18 14:03 po
    drwxr-xr-x 3 maemo maemo 4096 Jan 18 16:33 src
    -rw-rw-r-- 1 maemo maemo 23 Jan 18 14:03 stamp-h1

    ./autom4te.cache:
    total 580
    -rw-rw-r-- 1 maemo maemo 253063 Jan 6 17:11 output.0
    -rw-rw-r-- 1 maemo maemo 253063 Jan 6 17:11 output.1
    -rw-rw-r-- 1 maemo maemo 7052 Jan 6 17:12 requests
    -rw-rw-r-- 1 maemo maemo 21195 Jan 6 17:11 traces.0
    -rw-rw-r-- 1 maemo maemo 41243 Jan 6 17:11 traces.1

    ./debian:
    total 100
    -rw-r--r-- 1 maemo maemo 187 Jan 7 11:19 README.Debian
    -rw-r--r-- 1 maemo maemo 185 Jan 6 17:07 changelog
    -rw-r--r-- 1 maemo maemo 2 Jan 6 17:07 compat
    -rw-r--r-- 1 maemo maemo 319 Jan 6 17:07 control
    -rw-r--r-- 1 maemo maemo 150 Jan 6 17:07 copyright
    -rw-r--r-- 1 maemo maemo 89 Jan 7 11:19 cron.d.ex
    -rw-r--r-- 1 maemo maemo 17 Jan 7 11:19 dirs
    -rw-r--r-- 1 maemo maemo 0 Jan 7 11:19 docs
    -rw-r--r-- 1 maemo maemo 1236 Jan 7 11:19 emacsen-install.ex
    -rw-r--r-- 1 maemo maemo 474 Jan 7 11:19 emacsen-remove.ex
    -rw-r--r-- 1 maemo maemo 1171 Jan 7 11:19 emacsen-startup.ex
    -rw-r--r-- 1 maemo maemo 244 Jan 7 11:19 helloworld-default.ex
    -rw-r--r-- 1 maemo maemo 552 Jan 7 11:19 helloworld.doc-base.EX
    -rw-r--r-- 1 maemo maemo 2142 Jan 7 11:19 init.d.ex
    -rw-r--r-- 1 maemo maemo 1770 Jan 7 11:19 manpage.1.ex
    -rw-r--r-- 1 maemo maemo 4655 Jan 7 11:19 manpage.sgml.ex
    -rw-r--r-- 1 maemo maemo 4612 Jan 7 11:19 manpage.xml.ex
    -rw-r--r-- 1 maemo maemo 127 Jan 7 11:19 menu.ex
    -rw-r--r-- 1 maemo maemo 962 Jan 7 11:19 postinst.ex
    -rw-r--r-- 1 maemo maemo 935 Jan 7 11:19 postrm.ex
    -rw-r--r-- 1 maemo maemo 695 Jan 7 11:19 preinst.ex
    -rw-r--r-- 1 maemo maemo 882 Jan 7 11:19 prerm.ex
    -rwxr--r-- 1 maemo maemo 2043 Jan 6 17:07 rules
    -rw-r--r-- 1 maemo maemo 689 Jan 7 11:19 watch.ex

    ./po:
    total 52
    -rw-r--r-- 1 maemo maemo 12 Jan 6 17:07 LINGUAS
    -rw-rw-r-- 1 maemo maemo 6977 Jan 18 14:03 Makefile
    -rw-rw-r-- 1 maemo maemo 6970 Jan 18 14:03 Makefile.in
    -rw-r--r-- 1 maemo maemo 6901 Jan 6 17:11 Makefile.in.in
    -rw-rw-r-- 1 maemo maemo 40 Jan 18 14:03 POTFILES
    -rw-r--r-- 1 maemo maemo 30 Jan 6 17:07 POTFILES.in
    -rw-rw-r-- 1 maemo maemo 353 Jan 6 17:13 en_GB.gmo
    -rw-r--r-- 1 maemo maemo 685 Jan 6 17:07 en_GB.po
    -rw-rw-r-- 1 maemo maemo 397 Jan 6 17:13 pt_BR.gmo
    -rw-r--r-- 1 maemo maemo 694 Jan 6 17:07 pt_BR.po
    -rw-rw-r-- 1 maemo maemo 0 Jan 18 14:03 stamp-it

    ./src:
    total 292
    -rw-rw-r-- 1 maemo maemo 23242 Jan 18 14:03 Makefile
    -rw-r--r-- 1 maemo maemo 1019 Jan 6 17:07 Makefile.am
    -rw-rw-r-- 1 maemo maemo 20564 Jan 6 17:12 Makefile.in
    -rw-rw-r-- 1 maemo maemo 74820 Jan 18 16:25 helloworld-main.o
    -rw-rw-r-- 1 maemo maemo 139564 Jan 6 17:13 helloworld-mywindow.o
    -rw-r--r-- 1 maemo maemo 8002 Jan 18 16:25 main.cpp
    -rw-r--r-- 1 maemo maemo 1882 Jan 6 17:07 mywindow.cpp
    -rw-r--r-- 1 maemo maemo 1424 Jan 6 17:07 mywindow.h

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: RTcom

    Ok, it's using autotools. Is it Qt application at all?
    Then rtcom-eventlogger should go into PKG_CHECK_MODULES in configure.ac.
    I guess there is a way to add dependencies in Esbox using GUI.

  9. #9
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: RTcom

    Couldnt find a way to do that through GUI, I added PKG_CHECK_MODULES to configure.ac and included additional compiler flags in Makefile.am. now it works, thanks Daniil!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×