This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLP NIR Scan Nano EVM

I bought a DLP NIRscan Nano a month ago. I have used the module and I have already scanned some items successfully
(windows application provided by TI). A problem is appeared when I am trying to run Nirscan Nano GUI Project file
by using Qt program (I have followed the installation instructions). I have tried to run it in two different PC.

In the first one "windows XP (32bit)" and "Desktop Qt 5.5.1 MSVC2010 32bit KIT" are installed, while in the second one
"windows 8 (64bit)" and "Desktop Qt 5.3 MSVC2013 64 bit KIT" are installed.

In the first case when I am trying to compile the project, the following messages are appeared in the "Issues" section.

"C1083: Cannot open include file: 'stdbool.h': No such file or directory"
"C:\ti\DLPSpectrumLibrary_1.1.5\src\dlpspec_helper.h"
(11 times)

While, in the second case when I am trying to compile the project the following messages are appeared in the same section.

"C4003: not enough actual parameters for macro 'min' " --> qdatetime.h --> 122 (warning)
"C4003: not enough actual parameters for macro 'min' " --> qdatetime.h --> 122 (warning)
"C2589: '(': illegal token on right side of '::' " --> qdatetime.h --> 122
"C2059: syntax error: '::' " --> qdatetime.h --> 122
"C1083: Cannot open include file: 'verticallabel.h': No such file or directory" --> ui_mainwindow.h --> 42
"C1083: Cannot open include file: 'verticallabel.h': No such file or directory" --> ui_mainwindow.h --> 42
"C4003: not enough actual parameters for macro 'min' " --> qdatetime.h --> 122 (warning)
"C4003: not enough actual parameters for macro 'min' " --> qdatetime.h --> 122 (warning)
"C2589: '(': illegal token on right side of '::' " --> qdatetime.h --> 122
"C2589: '(': illegal token on right side of '::' " --> qdatetime.h --> 122
"C2059: syntax error: '::' " --> qdatetime.h --> 122
"C2059: syntax error: '::' " --> qdatetime.h --> 122
"C2589: '(': illegal token on right side of '::' " --> qdatetime.h --> 122
"C2059: syntax error: '::' " --> qdatetime.h --> 122
"C1083: Cannot open include file: 'verticallabel.h': No such file or directory" --> ui_mainwindow.h --> 42
"C1083: Cannot open include file: 'verticallabel.h': No such file or directory" --> ui_mainwindow.h --> 42
"C1083: Cannot open include file: 'verticallabel.h': No such file or directory" --> ui_mainwindow.h --> 42

I would be grateful if you provide me any information so that the problem to be overcome.

Thank you very much,

Christos

  • Hi Christos,

    For the first machine: Windows XP, 32 bit:
    Can you provide what version of the minGW compiler you installed in step D.1 of the User's Guide? The failure to find stdbool.h implies that the compiler being used is not C99 compliant, which suggests that this machine is using the Microsoft compiler instead of minGW 4.9.1 or newer.

    For the second machine: Windows 8, 64 bit:
    As stated in section D.1 of the User's Guide, the NIRscan Nano GUI source requires QT Framework version 5.4.1 or later. Please upgrade from your current version 5.3 to a newer version and let us know if you have any issues.
  • Hi Eric,

    Thank you very much for your prompt response. I managed to run it in both machines. The only thing that I noticed was that in the first run of the program some warnings were appeared in the issues section. The following header files could not be found.

    > dlpspec_calib.h
    > dlpspec_scan.h
    > dlpspec_scan_col.h
    > dlpspec_util.h
    > dlpspec_scan_had.h
    > nnosnrdefs.h
    > refCalMatrix.h
    > dlpspec_calib.h
    > dlpspec_scan.h
    > dlpspec_scan_col.h
    > dlpspec_util.h
    > dlpspec_scan_had.h
    > nnosnrdefs.h
    > refCalMatrix.h

    When I ran it again without to do any changes, no warning or error was appeared in the Issues section.
  • Hi Christos,

    We see this behavior also. I believe it has to do with qmake properly parsing the .pro file with the INCLUDEPATH and HEADERS set. However, until qmake runs, QT Creator does not resolve these header files and throws warnings, presumably because it is not looking for them in all of the INCLUDEPATH directories. Once qmake has run once (by compiling once), the warnings are not issued.

    You can suppress these warnings by changing the entries in the HEADERS += ... line in NirscanNanoGUI.pro for the affected headers so they are complete or relative paths and not dependent on the INCLUDEPATH variable. We chose to not do this in our project file for easier maintenance.