Hello, I'm trying to get QML JS debugging to work with a generic project
type (ie I don't have a .pro file and I don't use qmake). Instead I use the
CMake tool and CMakeLists.txt to attempt to link in the necessary qml js
library, but it is not working. I came up with the following CMake
directives by reading through a Makefile generating by a standard QtQuick
application project wizard.  Essentially I add -DQMLJSDEBUGGER define to my
cflags and then link against libQmlJSDebugger.a.

 # Qml Debugging
 INCLUDE_DIRECTORIES("/opt/qt/4.7.4/qtc-qmldbg/include")
 SET(QMLDBG_LIBRARIES /opt/qt/4.7.4/qtc-qmldbg/libQmlJSDebugger.a)
 SET(CMAKE_CXX_FLAGS "-DQMLJSDEBUGGER")
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QMLDBG_LIBRARIES})
 # End Qml Debugging

The application links successfully (I have built the libQmlJSDebugger.a file
independently) but when I attempt to run it gives an error message.

 $ bin/app -qmljsdebugger=1234
 QDeclarativeDebugServer: Ignoring "-qmljsdebugger=1234". Debugging has not
been enabled.


Is there anything extra I need to do to manually pull in the QMLJS debugging
libraries?  I cannot use a standard Qt qmake project because my project
requires CMake for other reasons.

My apologies if this is not the correct list topic, but qt-qml seemed to be
the closest to my issue.

Thanks,
--Matt
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to