--===============1755464859== Content-Type: multipart/alternative; boundary=0016e64ea3b0b58da604a674dd03 --0016e64ea3b0b58da604a674dd03 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you, but this doesn't work for me. )) On Fri, Jun 24, 2011 at 4:45 PM, Luis Gustavo Spern Barreto < gustavosbarreto@gmail.com> wrote: > Hello. > Add these variables to the include_directories() and > target_link_libraries(): > > include_directories(${QT_....} ${QT_QTSCRIPTTOOLS_INCLUDE_DIR}) > target_link_libraries(${QT_....} ${QT_QTSCRIPTTOOLS_LIBRARY}) > > If you need Qt script: > ${QT_QTSCRIPT_INCLUDE_DIR} > ${QT_QTSCRIPT_LIBRARY} > > Luis Gustavo Spern Barreto, > http://www.gustavobarreto.net > +55 53 9144.4318 > > > > 2011/6/24 dmitry chernov : > > For me it builds only after adding this: > > include_directories(file /usr/include/QtScriptTools) and changing this: > > TARGET_LINK_LIBRARIES( context2d ${QT_LIBRARIES} > > /usr/lib/libQtScriptTools.so ) > > > > So0mething is broken or smth. I've got rather old system Fedora11... > > > > On Fri, Jun 24, 2011 at 7:58 AM, dmitry chernov < > diman4ik.chernov@gmail.com> > > wrote: > >> > >> Thank you, Filip. > >> But it still says that : error: QScriptEngineDebugger: No such file or > >> directory. > >> > >> On Tue, Jun 21, 2011 at 2:49 PM, Filip Brcic wrote: > >>> > >>> On =D1=83=D1=82=D0=BE=D1=80=D0=B0=D0=BA, 21. =D1=98=D1=83=D0=BD 2011.= 8.35.41 dmitry chernov wrote: > >>> > Do anybody have proper CMakeLists.txt to build qt's example > Context2D? > >>> > I > >>> > had to add -DQT_NO_SCRIPTTOOLS. When I build this example with .pro > >>> > file > >>> > it builds ok. So I want to know how to add qt script tools support = in > >>> > cmake > >>> > >>> Here's the CMakeLists.txt that works: > >>> > >>> project(context2d) > >>> > >>> find_package(Qt4 COMPONENTS QtCore QtGui QtScript QtScriptTools > REQUIRED) > >>> include(${QT_USE_FILE}) > >>> > >>> SET(context2d_SRCS > >>> main.cpp > >>> context2d.cpp > >>> domimage.cpp > >>> environment.cpp > >>> qcontext2dcanvas.cpp > >>> window.cpp > >>> ) > >>> > >>> SET(context2d_HEADERS > >>> context2d.h > >>> domimage.h > >>> environment.h > >>> qcontext2dcanvas.h > >>> window.h > >>> ) > >>> > >>> QT4_WRAP_CPP( context2d_HEADERS_MOC ${context2d_HEADERS} ) > >>> > >>> SET(context2d_RESOURCES context2d.qrc) > >>> > >>> QT4_ADD_RESOURCES(context2d_RESOURCES_RCC ${context2d_RESOURCES}) > >>> > >>> ADD_DEFINITIONS(${QT_DEFINITIONS}) > >>> > >>> ADD_EXECUTABLE(context2d ${context2d_SRCS} > >>> ${context2d_RESOURCES_RCC} > >>> ${context2d_HEADERS_MOC} ) > >>> > >>> TARGET_LINK_LIBRARIES(context2d ${QT_LIBRARIES}) > >>> > >>> It seams this example needs both QtScript and QtScriptTools (as is > >>> written in > >>> the .pro file). > >>> > >>> Best regards, > >>> Filip > >>> > >>> -- > >>> Filip Brcic > >>> WWWeb: http://brcha.com > >>> Jabber : brcha@kdetalk.net > >>> GPG 0x2537C379 > >>> Fingerprint: 287D 5F24 50AA A36C 977F AC9A F1FD C7EB 2537 C379 > >>> > >>> > >>> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > >>> >> unsubscribe << > >>> > >> > > > > > > > >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe > >>> << > > > > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > --0016e64ea3b0b58da604a674dd03 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you, but this doesn't work for me. ))

On Fri, Jun 24, 2011 at 4:45 PM, Luis Gustavo Spern Barreto <gustavosbarreto@= gmail.com> wrote:
Hello.
Add these variables to the include_directories() and target_link_libraries(= ):

include_directories(${QT_....} ${QT_QTSCRIPTTOOLS_INCLUDE_DIR})
target_link_libraries(${QT_....} ${QT_QTSCRIPTTOOLS_LIBRARY})

If you need Qt script:
${QT_QTSCRIPT_INCLUDE_DIR}
${QT_QTSCRIPT_LIBRARY}

Luis Gustavo Spern Barreto,
http://www.gust= avobarreto.net
+55 53 9144.4318



2011/6/24 dmitry chernov <= diman4ik.chernov@gmail.com>:
> For me it builds only after adding t= his:
> include_directories(file /usr/include/QtScriptTools) and changing this= :
> TARGET_LINK_LIBRARIES( context2d ${QT_LIBRARIES}
> /usr/lib/libQtScriptTools.so )
>
> So0mething is broken or smth. I've got rather old system Fedora11.= ..
>
> On Fri, Jun 24, 2011 at 7:58 AM, dmitry chernov <diman4ik.chernov@gmail.com>
> wrote:
>>
>> Thank you, Filip.
>> But it still says that : error: QScriptEngineDebugger: No such fil= e or
>> directory.
>>
>> On Tue, Jun 21, 2011 at 2:49 PM, Filip Brcic <brcha@gna.org> wrote:
>>>
>>> On =D1=83=D1=82=D0=BE=D1=80=D0=B0=D0=BA, 21. =D1=98=D1=83=D0= =BD 2011. 8.35.41 dmitry chernov wrote:
>>> > Do anybody have proper CMakeLists.txt to build qt's e= xample Context2D?
>>> > I
>>> > had to add -DQT_NO_SCRIPTTOOLS. When I build this example= with .pro
>>> > file
>>> > it builds ok. So I want to know how to add qt script tool= s support in
>>> > cmake
>>>
>>> Here's the CMakeLists.txt that works:
>>>
>>> project(context2d)
>>>
>>> find_package(Qt4 COMPONENTS QtCore QtGui QtScript QtScriptTool= s REQUIRED)
>>> include(${QT_USE_FILE})
>>>
>>> SET(context2d_SRCS
>>> =C2=A0 =C2=A0main.cpp
>>> =C2=A0 =C2=A0context2d.cpp
>>> =C2=A0 =C2=A0domimage.cpp
>>> =C2=A0 =C2=A0 environment.cpp
>>> =C2=A0 =C2=A0qcontext2dcanvas.cpp
>>> =C2=A0 =C2=A0window.cpp
>>> )
>>>
>>> SET(context2d_HEADERS
>>> =C2=A0 =C2=A0context2d.h
>>> =C2=A0 =C2=A0domimage.h
>>> =C2=A0 =C2=A0environment.h
>>> =C2=A0 =C2=A0qcontext2dcanvas.h
>>> =C2=A0 =C2=A0window.h
>>> )
>>>
>>> QT4_WRAP_CPP( context2d_HEADERS_MOC ${context2d_HEADERS} )
>>>
>>> SET(context2d_RESOURCES context2d.qrc)
>>>
>>> QT4_ADD_RESOURCES(context2d_RESOURCES_RCC ${context2d_RESOURCE= S})
>>>
>>> ADD_DEFINITIONS(${QT_DEFINITIONS})
>>>
>>> ADD_EXECUTABLE(context2d ${context2d_SRCS}
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0${context2d_RESOURCES_RCC}
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 ${context2d_HEADERS_MOC} )
>>>
>>> TARGET_LINK_LIBRARIES(context2d ${QT_LIBRARIES})
>>>
>>> It seams this example needs both QtScript and QtScriptTools (a= s is
>>> written in
>>> the .pro file).
>>>
>>> Best regards,
>>> Filip
>>>
>>> --
>>> Filip Brcic <brcha@gna.org= >
>>> WWWeb: http://b= rcha.com
>>> Jabber =C2=A0: brcha@kdet= alk.net
>>> GPG 0x2537C379
>>> Fingerprint: 287D 5F24 50AA A36C 977F AC9A F1FD C7EB 2537 C379=
>>>
>>>
>>> >> Visit http://mail.kde.org/mailman/listinfo/kd= e-devel#unsub to
>>> >> unsubscribe <<
>>>
>>
>
>
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#u= nsub to unsubscribe
>>> <<
>
>

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub= to unsubscribe <<

--0016e64ea3b0b58da604a674dd03-- --===============1755464859== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1755464859==--