[Solved] problem compiling gdigicam app on qt creator



  • I am trying to compile an app that uses gdigicam on qt creator for the fremantle pr13 target
    For this I got the package libgdigicam-dev and installed it on qemu runtime
    Now i copied the new files from the runtimes /usr/include and /usr/lib directory to the respective places in the sysroot
    But still I am not able to compile the app (I get linker errors.. undefined reference)
    Please help

    This is the pro file
    @

    TEMPLATE = app
    TARGET = mycam
    DEPENDPATH += .
    INCLUDEPATH += .
    CONFIG += link_pkgconfig
    PKGCONFIG = gtk+-2.0
    gstreamer-0.10
    gstreamer-plugins-bad-0.10
    gdigicam-0.3
    gdigicam-gst-camerabin-0.3

    Input

    SOURCES += camwindow.cpp
    main.cpp

    HEADERS += camwindow.h

    OTHER_FILES +=
    qtc_packaging/debian_fremantle/rules
    qtc_packaging/debian_fremantle/README
    qtc_packaging/debian_fremantle/copyright
    qtc_packaging/debian_fremantle/control
    qtc_packaging/debian_fremantle/compat
    qtc_packaging/debian_fremantle/changelog

    maemo5 {
    target.path = /opt/camera/bin
    INSTALLS += target
    }

    @

    please help.... thanks in advance.

    [EDIT: code formatting, please wrap in @-tags, Volker]



  • Ok I was able to get it work..
    Since I do not have gdigicam for the other targets except maemo
    Here is the change in the pro file
    @
    maemo5 {
    CONFIG += link_pkgconfig
    PKGCONFIG = gtk+-2.0
    gstreamer-0.10
    gstreamer-plugins-bad-0.10
    gdigicam-0.3
    gdigicam-gst-camerabin-0.3
    }@

    :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.