• 6756阅读
  • 3回复

如何让Qt的minGW-make版本和nmake版本共存(已解决) [复制链接]

上一主题 下一主题
离线傻猫
 
只看楼主 倒序阅读 楼主  发表于: 2008-04-04
— 本帖被 XChinux 执行加亮操作(2008-04-05) —
原来用minGW编译了一个在c盘qt-win-opensource-src-4.3.3(下称版本A) 后来因为在win平台下面 还是vs.net用习惯了

就按网上的办法 复制一个源代码到d,重新用nmake编译了一份(版本B);

结果版本B运行正常(用Qt Visual Studio Integration集成的)
可是用原来的版本A出现以下问题

运行cmd
输入 qmake -project
qmake -tmp.pro
make

编译无错 ,连接出现下面错误
G:/tmp/main.cpp:10: undefined reference to `qInitResources_application()'
collect2: ld returned 1 exit status
make[1]: *** [debug\tmp.exe] Error 1
make[1]: Leaving directory `G:/tmp'
make: *** [debug] Error 2

原来这个代码在版本B前就写好的,最初也是用版本A生成的,不知道现在为什么不行了
请教下 如何让版本A和版本B和谐相处?

先谢谢了
[ 此贴被傻猫在2008-04-05 01:15重新编辑 ]
-------------------------------
不常在
有事短消息或者到我blog讨论http://hi.baidu.com/ning_cat
已经没用qt作开发了。。。:-(
离线zncggaofei
只看该作者 1楼 发表于: 2008-04-05
写各自的环境变量,应该就可以共存了吧
There is someone that is coming or passing away in your life around the clock, so you may lose sight of those seen, and forget those remembered. There is gain and loss in your life, so you may catch sight of those unseen, and remember those forgotten. Nevertheless, doesn’t the unseen exist for sure? Will the remembered remain forever?
离线傻猫
只看该作者 2楼 发表于: 2008-04-05
不知道要写哪些环境变量 path么 我已经指定为版本A的路径了
QMAKESPEC也指定为win32-g++

版本B我都没设置它的环境变量,反而跑的好好的。(应该是Qt Visual Studio Integration弄好的)

继续等待解决方案
-------------------------------
不常在
有事短消息或者到我blog讨论http://hi.baidu.com/ning_cat
已经没用qt作开发了。。。:-(
离线傻猫
只看该作者 3楼 发表于: 2008-04-05
搞定了 配置没问题
是我忘记把qrc文件复制过去了 不过这个问题解决了

晕倒
-------------------------------
不常在
有事短消息或者到我blog讨论http://hi.baidu.com/ning_cat
已经没用qt作开发了。。。:-(
快速回复
限100 字节
 
上一个 下一个