×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Integrating of module into one

    hello sir

    Actually i have three modules..which are stored in seperate folder..now i want to to integrate this three module into one final module..thats is when i run this final module than i will be able to used all the properties that are present in all three module...in simple words i mean to say that..in my final module form there are three buttons...if i click on first button than i will be able to work with the components of first module....similarly if i press second button i will be able to work with the propertiesof second button..so how can it be possible...

    with regards
    Anshuman

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Integrating of module into one

    i suggest you use .pri files for all sub folders and then add those .pri to to main .pro file include statement

  3. #3
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: Integrating of module into one

    yeh that i have done and its work..but now my three module is done by somebody else..they just want me to integrate this three model into one..i tried it in the same way that i have done in integrating my modules by using .pri file and include it into the .pro file of main project but it doesnt work..actually the .pro file they hv given is little different shall i send the .pro file for these three module...

    with regards
    Anshuman

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Integrating of module into one

    yeh that i have done and its work..but now my three module is done by somebody else..they just want me to integrate this three model into one..i tried it in the same way that i have done in integrating my modules by using .pri file and include it into the .pro file of main project but it doesnt work..actually the .pro file they hv given is little different shall i send the .pro file for these three module...
    can you tell what does not work .. i mean any error

    can you attach all 3 .pro files

  5. #5
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: Integrating of module into one

    One important thing is that when want to run this modules first i have to run module3,tahn module2 and finally module1 to view the output...when i integarte this three module into my main project by creating .pri file for each module and include into the .pro file of main project the error occurs is
    :: error: cannot find -lqfacebook
    This is the first .pro for module1

    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-11-17T12:16:44
    #
    #-------------------------------------------------

    QT += core network gui webkit

    !isEmpty(QJSON_INSTALL_DIR) {
    INCLUDEPATH += $$quote($$QJSON_INSTALL_DIR/include)
    LIBS += -L$$quote($$QJSON_INSTALL_DIR/lib)
    }

    INCLUDEPATH += ../qfacebook/src
    win32:
    {
    LIBS += -L../qfacebook-build-simulator/lib
    LIBS += -L../qjson-build-simulator/lib
    }


    LIBS += -lqfacebook
    LIBS += -lqjson


    TARGET = postfeed
    TEMPLATE = app


    SOURCES += main.cpp\
    postfeed.cpp \
    putobject.cpp \
    fbframe.cpp

    HEADERS += postfeed.h \
    putobject.h \
    fbframe.h

    FORMS += postfeed.ui \
    fbframe.ui

    CONFIG += mobility
    MOBILITY =

    symbian {
    TARGET.CAPABILITY += NetworkServices
    }

    There r two .pro file for second module2
    First one is:

    QT -= gui
    QT += network

    TARGET = qfacebook
    DESTDIR = ../lib

    DEFINES += QFACEBOOK_LIBRARY

    !isEmpty(QJSON_INSTALL_DIR) {
    INCLUDEPATH += $$quote($$QJSON_INSTALL_DIR/include)
    LIBS += -L$$quote($$QJSON_INSTALL_DIR/lib)
    }

    INCLUDEPATH += ../../qjson/include

    win32:
    {
    CONFIG += create_prl
    LIBS += -L../../qjson-build-simulator/lib
    }


    LIBS += -lqjson



    SOURCES += \
    qfacebook.cpp \
    graphapi.cpp \
    qfacebookreply.cpp

    HEADERS += \
    qfacebook.h \
    qfacebook_global.h \
    graphapi.h \
    qfacebookreply.h


    headers.files = qfacebook.h qfacebookreply.h

    !isEmpty(INSTALL_PREFIX) {
    target.path = $$INSTALL_PREFIX/lib
    headers.path = $$INSTALL_PREFIX/include/qfacebook

    INSTALLS += target headers
    }

    symbian: {
    CONFIG += staticlib

    #export public header to \epocroot\epoc32\include to be able to use them
    headers.path = $$PWD/qfacebook
    for(header, headers.files) {
    {BLD_INF_RULES.prj_exports += "$$header"}
    }

    TARGET.EPOCALLOWDLLDATA = 1
    # uid for the dll
    #TARGET.UID3=
    TARGET.CAPABILITY = ReadDeviceData WriteDeviceData

    symbian:MMP_RULES += "EXPORTUNFROZEN"

    # add dll to the sis
    QFacebookDeployment.sources = $${TARGET}.dll
    QFacebookDeployment.path = /sys/bin

    DEPLOYMENT += QFacebookDeployment
    }
    second one is:

    TEMPLATE = subdirs
    SUBDIRS = sub_src

    sub_src.subdir = src
    For third module3 there are two .pro file

    first one:
    QJSON_BASE = ..
    QJSON_SRCBASE = .

    TEMPLATE = lib
    QT -= gui
    TARGET = qjson
    DESTDIR = $$QJSON_BASE/lib


    windows: {
    CONFIG += create_prl
    DEFINES += QJSON_MAKEDLL
    }

    macx: CONFIG += lib_bundle

    QJSON_CPP = $$QJSON_SRCBASE
    INCLUDEPATH += $$QJSON_CPP

    PRIVATE_HEADERS += \
    json_parser.hh \
    json_scanner.h \
    location.hh \
    parser_p.h \
    position.hh \
    qjson_debug.h \
    stack.hh

    PUBLIC_HEADERS += \
    parser.h \
    parserrunnable.h \
    qobjecthelper.h \
    serializer.h \
    serializerrunnable.h \
    qjson_export.h

    HEADERS += $$PRIVATE_HEADERS $$PUBLIC_HEADERS

    SOURCES += \
    json_parser.cc \
    json_scanner.cpp \
    parser.cpp \
    parserrunnable.cpp \
    qobjecthelper.cpp \
    serializer.cpp \
    serializerrunnable.cpp

    symbian: {

    CONFIG += staticlib

    DEFINES += QJSON_MAKEDLL
    #export public header to \epocroot\epoc32\include to be able to use them
    headers.files = $$PUBLIC_HEADERS
    headers.path = $$PWD
    for(header, headers.files) {
    {BLD_INF_RULES.prj_exports += "$$header"}
    }

    TARGET.EPOCALLOWDLLDATA = 1
    # uid for the dll
    #TARGET.UID3=
    TARGET.CAPABILITY = ReadDeviceData WriteDeviceData

    # do not freeze api-> no libs produced. Comment when freezing!
    # run "abld freeze winscw" to create def files
    #symbian:MMP_RULES += "EXPORTUNFROZEN"

    # add dll to the sis
    QjsonDeployment.sources = $${TARGET}.dll
    QjsonDeployment.path = /sys/bin

    DEPLOYMENT += QjsonDeployment
    }

    OTHER_FILES +=
    second one:
    TEMPLATE = subdirs
    SUBDIRS = sub_src

    sub_src.subdir = src
    Last edited by AnshumanBorah; 2011-04-28 at 10:37.

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Integrating of module into one

    all look fine .. only thing missing is you need to freeze the dlls that you have to do manually once atleast.

  7. #7
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: Integrating of module into one

    How to freeze the dlls..n why i am getting that errors..how can i link all these three module in my main project....can u please help me out..

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Integrating of module into one

    refer to http://discussion.forum.nokia.com/fo...A%29-for-4.7.2 basically you need to call make freeze debug-gcce

  9. #9
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: Integrating of module into one

    Thanks skumar..its working..

Similar Threads

  1. Integrating Glassfish into Netbeans IDE
    By amadcow in forum Mobile Java General
    Replies: 0
    Last Post: 2009-07-08, 00:19
  2. Integrating PHP into WML
    By leehongbeng in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2008-07-08, 09:42
  3. TIP: Integrating LeaveScan into CW 3.0
    By timm-ah in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2005-04-20, 20:30
  4. Integrating the S80 SDK into JBuilderX
    By bchini in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-04-08, 23:39
  5. Integrating Nokia Series 60 MIDP SDK into the J2MEwTK
    By limeycoder in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-04, 19:50

Posting Permissions

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