Boost logo

Boost-Build :

Subject: [Boost-build] How to make Jamfile for QT Plugin
From: Sanjay Kumar (sanjay.kr.maurya_at_[hidden])
Date: 2010-04-20 06:43:49


Hi,

I'm facing difficulty in making QT Plugin jamfile.

*Here is my current QT project file:*
TEMPLATE = lib
CONFIG += designer plugin

HEADERS = GridSelector.h \
    GridSelectorPlugin.h
SOURCES = GridSelector.cpp \
    GridSelectorPlugin.cpp

# DESTDIR = $$[QT_INSTALL_PLUGINS]
TARGET = GridSelectorPlugin
DESTDIR = ../plugins

*For it I'm writing following jamroot.jam file:*

using qt4 : D:/Qt/2010.02.1/QT ;
#using qt ;

project /omd/framework/Admin/GridSelectorPlugin
        : build-dir ../bin
        ;
#config += plugin

lib GridSelectorPlugin :
    GridSelectorPlugin.cpp
GridSelectorPlugin.h
    GridSelector.cpp
    GridSelector.h
    /qt//QtGui
    /qt//QtCore
/qt//QtDesigner
  ;
# : <runtime-link>static
# <link>static ;

*Let me know how to specify QT Designer plugin in jam file.*
*I'm getting following errors:*

C:\hudson\jobs\Tpstream3\workspace\TPstreams_version_3.0\framework\Admin\Activit
yDetectionPlugin>bjam
...patience...
...found 1054 targets...
...updating 3 targets...
compile-c-c++ ..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.obj
moc_GridSelector.cpp
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.cpp(43) : warning
C4273:
'staticMetaObject' : inconsistent dll linkage

 c:\hudson\jobs\tpstream3\workspace\tpstreams_version_3.0\framework\admin
\bin\msvc-8.0\debug\threading-multi\../../../../ActivityDetectionPlugin/GridSele
ctor.h(24) : see previous definition of 'public: static QMetaObject const
GridSe
lector::staticMetaObject'
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.cpp(43) : error
C2491: 'G
ridSelector::staticMetaObject' : definition of dllimport static data member
not
allowed
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.cpp(53) : warning
C4273:
'GridSelector::metaObject' : inconsistent dll linkage

 c:\hudson\jobs\tpstream3\workspace\tpstreams_version_3.0\framework\admin
\bin\msvc-8.0\debug\threading-multi\../../../../ActivityDetectionPlugin/GridSele
ctor.h(24) : see previous definition of 'metaObject'
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.cpp(58) : warning
C4273:
'GridSelector::qt_metacast' : inconsistent dll linkage

 c:\hudson\jobs\tpstream3\workspace\tpstreams_version_3.0\framework\admin
\bin\msvc-8.0\debug\threading-multi\../../../../ActivityDetectionPlugin/GridSele
ctor.h(24) : see previous definition of 'qt_metacast'
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.cpp(66) : warning
C4273:
'GridSelector::qt_metacall' : inconsistent dll linkage

 c:\hudson\jobs\tpstream3\workspace\tpstreams_version_3.0\framework\admin
\bin\msvc-8.0\debug\threading-multi\../../../../ActivityDetectionPlugin/GridSele
ctor.h(24) : see previous definition of 'qt_metacall'

    call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
>nul
cl /Zm800 -nologo
@"..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.obj.r
sp"

...failed compile-c-c++
..\bin\msvc-8.0\debug\threading-multi\moc_GridSelector.o
bj...
...skipped <p..\bin\msvc-8.0\debug\threading-multi>GridSelectorPlugin.dll
for la
ck of <p..\bin\msvc-8.0\debug\threading-multi>moc_GridSelector.obj...
...skipped <p..\bin\msvc-8.0\debug\threading-multi>GridSelectorPlugin.lib
for la
ck of <p..\bin\msvc-8.0\debug\threading-multi>moc_GridSelector.obj...
...failed updating 1 target...
...skipped 2 targets...

Regards,
Sanjay



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk