Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Creator for non-Qt project using cmake
Forum Updated to NodeBB v4.3 + New Features

Qt Creator for non-Qt project using cmake

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Radim
    wrote on last edited by Radim
    #1

    Hi,

    I have a non-Qt project and I use cmake. I can remote debug my app using gdb, but no variables are shown in the Expression Evaluator. I only get "<no such value>" for all variables. How to setup cmake profile to correctly shown the values of variables in debugging mode?

    My current cmake file:

    cmake_policy(SET CMP0015 NEW)
    set(CMAKE_SYSTEM_NAME Linux)
    set(CMAKE_SYSROOT /home/devel/board/sysroot)
    set(CMAKE_C_COMPILER /home/devel/gcc-4.8.2-eglibc-2.18/powerpc-603e-linux-gnu/bin/powerpc-603e-linux-gnu-gcc)
    set(CMAKE_CXX_COMPILER /home/devel/prj/ucxtools-3.3/target/gcc-4.8.2-eglibc-2.18/powerpc-603e-linux-gnu/bin/powerpc-603e-linux-gnu-g++)
    
    set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0 -Wall")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -O0 -Wall")
    
    set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
    set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
    
    include_directories(SYSTEM ${CMAKE_SYSROOT}/usr/include)
    link_directories(SYSTEM ${CMAKE_SYSROOT}/usr/lib)
    
    1 Reply Last reply
    0
    • R Offline
      R Offline
      Radim
      wrote on last edited by
      #2

      I answer myself. The problem has been resolved by updating the GDB to the latest version.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved