• QT5.1编译后的安装目录问题(硬路径问题)


    这个是我的编译参数:
    configure -ltcg -confirm-license -opensource -platform win32-msvc2010 -debug-and-release -prefix "D:QT5.1.0_vc2010_x64" -qt-sql-sqlite -qt-sql-odbc -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-angle -nomake tests -nomake examples -nomake demos -mp -openssl-linked OPENSSL_LIBS="-lssleay32 -llibeay32"

    nmake编译过程是一路顺利,没有发生过错误提示,然后是nmake install也顺利完成,用VSAddin导入VS2010中也能顺利编译QT程序

    唯一奇怪的就是 -prefix "D:QT5.1.0_vc2010_x64" 定义的安装目录,完全不能改,无论是修改5.1.0_vc2010_x64的目录名或者将5.1.0_vc2010_x64移到其他目录,这个编译的版本就不能工作了,连bin下的QT几个自编译的软件也打不开,而一旦恢复D:QT5.1.0_vc2010_x64的目录结构就一切都恢复了正常
    有哪位遇到过类似的情况吗?难道QT还有目录依赖症?这样我在其他机器上怎么配置啊??

    需要在qmake.exe同一文件夹下,创建一个qt.conf文件(ANSI格式)
    内容为
    [paths]
    Prefix = ..

    http://www.qtcn.org/bbs/read-htm-tid-54625-fpage-6.html

  • 相关阅读:
    面向对象之prototype,__proto__
    Screen对象
    location对象
    history对象
    JS计时器
    window对象
    Dom操作html详细
    终端 git log 修改样式
    null 和 NULL 判断
    textfield设置左边距
  • 原文地址:https://www.cnblogs.com/findumars/p/6375997.html
Copyright © 2020-2023  润新知