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.

NIRscan Nano QT软件编译问题



按照使用手册,在TI官网下载了 QT5.4.2版本,并下载了源文件。第一次编译可以通过,然后只要程序任何地方加回车撤销,相当于没有做任何改变,再次编译的时候就会出现如下bug。

  • 如图仅仅是32行加了个回车

  • 图1和图2显示的分别是 “ 问题” 选项卡和“编译输出”选项卡。
    从字面上看应该是缺少这些参数的声明,可能是缺少光谱库的头文件,我自己也手动添加了头文件,但是总提示:



    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Could not find qmake configuration file default.
    Error while parsing file E:\Sources\NirscanNanoGUI.pro. Giving up.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.


    而光谱库文件也最终没有添加到工程中来
  • Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Could not find qmake configuration file default.
    Error while parsing file E:\Sources\NirscanNanoGUI.pro. Giving up.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.
    Project WARNING: Spectrum Library not compiled, using precompiled version if available.

  • 添加光谱库的头文件时 总提示以上错误
  • 有很多解决办法:

    修改NirscanNanoGUI.pro

    使用QT的版本:

    DLP NIRscan Nano GUI: This software bundle includes the executable and source files for the PC-based Graphical User Interface (GUI) for easy communication with the DLP NIRscan Nano. The source files were developed using the QT Library v5.4.2 and QT Creator v3.4.1

    还有一个办法是:

    把DLPNIRscanNanoGUI_2.1.0\Sources\Common\include\*.*

    和DLPNIRscanNanoGUI_2.1.0\Sources\DLP_Spectrum_Library\src\*.*

    全部copy到:

    DLPNIRscanNanoGUI_2.1.0\Sources\下即可.

    大功告成.

  • 将您说的两个文件夹全部copy出来后,还是一样的问题,第一次编译可以成功,只有有任何的修改,然后就会出错。

  • 我测试了,没有问题的.

    要将DLPNIRscanNanoGUI_2.1.0\Sources\DLP_Spectrum_Library\src\libdlpspec.a

    library一起copy过来.

  • 用了libdlpspec.a,单步跟踪不进去。可否用gcc直接linker那几个库的源码obj到最终执行代码中,不用封装库。谢谢!
  • libdlpspec是开放源代码的, 可以直接连接编译的.知识组织方便.专门处理DMD scanning的API.
  • 是的,已经用build-lib.bat编译并生成了库,再被gui编译的代码linker在一起。QT下调试也是OK的。只是单步调试不能进入到lib内部,因此想有人不做成库,直接linker进去,相信就可以单步跟踪进库函数了。

  • 不用build-lib.bat,直接所有在一起放在一个folder中编译即可.
  • 谢谢提示!不过我不懂QT,gcc等,还是没弄对。。。。。。。