Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator - compile in msvc 2015 - sdktool build error
Qt 6.11 is out! See what's new in the release blog

QtCreator - compile in msvc 2015 - sdktool build error

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 900 Views 1 Watching
  • 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.
  • shaveraS Offline
    shaveraS Offline
    shavera
    wrote on last edited by shavera
    #1

    Regular QtCreator is crashing on me an awful lot in Win10/MSVC 2015. I haven't been able to figure out a repeatable pattern to make it crash.

    So I wanted to try to compile QtCreator locally so I can run it in debug mode to see what's causing it to fail.

    I downloaded the source from git (the source package on qt.io/download-open-source didn't have the .pro files in it?). made an out-of-source build folder. Since I already have Qt installed elsewhere ran that qmake with '-tp vc -r' for the source .pro file. Compiling, I had a couple issues where it was conflicting writing to .pbf or something database, but I could fix those with the /FS flag

    So, finally, I run into an error when trying to build the sdktool project on line 51

    sdkPath.appendPath(QLatin1String(DATA_PATH));

    MSVC red-underlines DATA_PATH,saying it 'expected a member name'. The error is "syntax error: '.'" and then several other errors follow of 'left of .sdkPath' must have class/struct, and other 'left of' errors on line 52 that I suspect are due to the base error on line 51.

    Does anyone know about this? Is it a bug? a known issue? Is it something I'm doing wrong?

    Edit: if I hard code in "../share/qtcreator" which is what DATA_PATH should evaluate to, then it compiles successfully

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      DATA_PATH is a define that should be added in sdktool.pro so it's a bit surprising that you have that error.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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