• 4387阅读
  • 3回复

在Windows上架构debug环境的时候无法找到ABS_RIGHTNORMAL等定义 [复制链接]

上一主题 下一主题
离线eddielu
 
只看楼主 倒序阅读 楼主  发表于: 2006-09-09
  1. his function)
  2. styles\qwindowsxpstyle.cpp:2548: error: `ABS_RIGHTNORMAL' undeclared (first use
  3. this function)
  4. styles\qwindowsxpstyle.cpp:2548: error: `ABS_DOWNNORMAL' undeclared (first use t
  5. his function)
  6. styles\qwindowsxpstyle.cpp:2557: error: `ABS_UPDISABLED' undeclared (first use t
  7. his function)
  8. styles\qwindowsxpstyle.cpp:2559: error: `ABS_UPPRESSED' undeclared (first use th
  9. is function)
  10. styles\qwindowsxpstyle.cpp:2561: error: `ABS_UPHOT' undeclared (first use this f
  11. unction)
  12. styles\qwindowsxpstyle.cpp:2563: error: `ABS_UPNORMAL' undeclared (first use thi
  13. s function)
  14. styles\qwindowsxpstyle.cpp:2572: error: `SBP_LOWERTRACKHORZ' undeclared (first u
  15. se this function)
  16. styles\qwindowsxpstyle.cpp:2572: error: `SBP_LOWERTRACKVERT' undeclared (first u
  17. se this function)
  18. styles\qwindowsxpstyle.cpp:2573: error: `SCRBS_DISABLED' undeclared (first use t
  19. his function)
  20. styles\qwindowsxpstyle.cpp:2580: error: `SBP_UPPERTRACKHORZ' undeclared (first u
  21. se this function)
  22. styles\qwindowsxpstyle.cpp:2580: error: `SBP_UPPERTRACKVERT' undeclared (first u
  23. se this function)
  24. styles\qwindowsxpstyle.cpp:2584: error: `SCRBS_PRESSED' undeclared (first use th
  25. is function)
  26. styles\qwindowsxpstyle.cpp:2586: error: `SCRBS_HOT' undeclared (first use this f
  27. unction)
  28. styles\qwindowsxpstyle.cpp:2588: error: `SCRBS_NORMAL' undeclared (first use thi
  29. s function)
  30. styles\qwindowsxpstyle.cpp:2621: error: `SBP_THUMBBTNHORZ' undeclared (first use
  31. this function)
  32. styles\qwindowsxpstyle.cpp:2621: error: `SBP_THUMBBTNVERT' undeclared (first use
  33. this function)
  34. styles\qwindowsxpstyle.cpp:2629: error: `MARGINS' undeclared (first use this fun
  35. ction)
  36. styles\qwindowsxpstyle.cpp:2629: error: expected `;' before "contentsMargin"
  37. styles\qwindowsxpstyle.cpp:2631: error: `contentsMargin' undeclared (first use t
  38. his function)
  39. styles\qwindowsxpstyle.cpp:2634: error: `SBP_GRIPPERHORZ' undeclared (first use
  40. this function)
  41. styles\qwindowsxpstyle.cpp:2634: error: `SBP_GRIPPERVERT' undeclared (first use
  42. this function)
  43. styles\qwindowsxpstyle.cpp:2635: error: `TS_TRUE' undeclared (first use this fun
  44. ction)
  45. styles\qwindowsxpstyle.cpp:2635: error: `pGetThemePartSize' cannot be used as a
  46. function
  47. styles\qwindowsxpstyle.cpp:2678: error: `TKP_TRACK' undeclared (first use this f
  48. unction)
  49. styles\qwindowsxpstyle.cpp:2679: error: `TRS_NORMAL' undeclared (first use this
  50. function)
  51. styles\qwindowsxpstyle.cpp:2682: error: `TKP_TRACKVERT' undeclared (first use th
  52. is function)
  53. styles\qwindowsxpstyle.cpp:2683: error: `TRVS_NORMAL' undeclared (first use this
  54. function)
  55. styles\qwindowsxpstyle.cpp:2742: error: `TKP_THUMBTOP' undeclared (first use thi
  56. s function)
  57. styles\qwindowsxpstyle.cpp:2744: error: `TKP_THUMBBOTTOM' undeclared (first use
  58. this function)
  59. styles\qwindowsxpstyle.cpp:2746: error: `TKP_THUMB' undeclared (first use this f
  60. unction)
  61. styles\qwindowsxpstyle.cpp:2749: error: `TUS_DISABLED' undeclared (first use thi
  62. s function)
  63. styles\qwindowsxpstyle.cpp:2751: error: `TUS_PRESSED' undeclared (first use this
  64. function)
  65. styles\qwindowsxpstyle.cpp:2753: error: `TUS_HOT' undeclared (first use this fun
  66. ction)
  67. styles\qwindowsxpstyle.cpp:2755: error: `TUS_FOCUSED' undeclared (first use this
  68. function)
  69. styles\qwindowsxpstyle.cpp:2757: error: `TUS_NORMAL' undeclared (first use this
  70. function)
  71. styles\qwindowsxpstyle.cpp:2760: error: `TKP_THUMBLEFT' undeclared (first use th
  72. is function)
  73. styles\qwindowsxpstyle.cpp:2762: error: `TKP_THUMBRIGHT' undeclared (first use t
  74. his function)
  75. styles\qwindowsxpstyle.cpp:2764: error: `TKP_THUMBVERT' undeclared (first use th
  76. is function)
  77. styles\qwindowsxpstyle.cpp:2767: error: `TUVS_DISABLED' undeclared (first use th
  78. is function)
  79. styles\qwindowsxpstyle.cpp:2769: error: `TUVS_PRESSED' undeclared (first use thi
  80. s function)
  81. styles\qwindowsxpstyle.cpp:2771: error: `TUVS_HOT' undeclared (first use this fu
  82. nction)
  83. styles\qwindowsxpstyle.cpp:2773: error: `TUVS_FOCUSED' undeclared (first use thi
  84. s function)
  85. styles\qwindowsxpstyle.cpp:2775: error: `TUVS_NORMAL' undeclared (first use this
  86. function)
  87. styles\qwindowsxpstyle.cpp:2830: error: `SPNP_UPHORZ' undeclared (first use this
  88. function)
  89. styles\qwindowsxpstyle.cpp:2831: error: `UPHZS_DISABLED' undeclared (first use t
  90. his function)
  91. styles\qwindowsxpstyle.cpp:2831: error: `UPHZS_PRESSED' undeclared (first use th
  92. is function)
  93. styles\qwindowsxpstyle.cpp:2831: error: `UPHZS_HOT' undeclared (first use this f
  94. unction)
  95. styles\qwindowsxpstyle.cpp:2831: error: `UPHZS_NORMAL' undeclared (first use thi
  96. s function)
  97. styles\qwindowsxpstyle.cpp:2834: error: `SPNP_DOWNHORZ' undeclared (first use th
  98. is function)
  99. styles\qwindowsxpstyle.cpp:2835: error: `DNHZS_DISABLED' undeclared (first use t
  100. his function)
  101. styles\qwindowsxpstyle.cpp:2835: error: `DNHZS_PRESSED' undeclared (first use th
  102. is function)
  103. styles\qwindowsxpstyle.cpp:2835: error: `DNHZS_HOT' undeclared (first use this f
  104. unction)
  105. styles\qwindowsxpstyle.cpp:2835: error: `DNHZS_NORMAL' undeclared (first use thi
  106. s function)
  107. styles\qwindowsxpstyle.cpp:2853: error: `TP_SPLITBUTTON' undeclared (first use t
  108. his function)
  109. styles\qwindowsxpstyle.cpp:2855: error: `TS_DISABLED' undeclared (first use this
  110. function)
  111. styles\qwindowsxpstyle.cpp:2857: error: `TS_PRESSED' undeclared (first use this
  112. function)
  113. styles\qwindowsxpstyle.cpp:2859: error: `TS_HOTCHECKED' undeclared (first use th
  114. is function)
  115. styles\qwindowsxpstyle.cpp:2859: error: `TS_HOT' undeclared (first use this func
  116. tion)
  117. styles\qwindowsxpstyle.cpp:2861: error: `TS_CHECKED' undeclared (first use this
  118. function)
  119. styles\qwindowsxpstyle.cpp:2863: error: `TS_NORMAL' undeclared (first use this f
  120. unction)
  121. styles\qwindowsxpstyle.cpp:2910: error: `WP_CAPTION' undeclared (first use this
  122. function)
  123. styles\qwindowsxpstyle.cpp:2912: error: `WP_MINCAPTION' undeclared (first use th
  124. is function)
  125. styles\qwindowsxpstyle.cpp:2914: error: `CS_DISABLED' undeclared (first use this
  126. function)
  127. styles\qwindowsxpstyle.cpp:2916: error: `CS_ACTIVE' undeclared (first use this f
  128. unction)
  129. styles\qwindowsxpstyle.cpp:2918: error: `CS_INACTIVE' undeclared (first use this
  130. function)
  131. styles\qwindowsxpstyle.cpp:2941: error: `WP_SYSBUTTON' undeclared (first use thi
  132. s function)
  133. styles\qwindowsxpstyle.cpp:2943: error: `SBS_DISABLED' undeclared (first use thi
  134. s function)
  135. styles\qwindowsxpstyle.cpp:2945: error: `SBS_PUSHED' undeclared (first use this
  136. function)
  137. styles\qwindowsxpstyle.cpp:2947: error: `SBS_HOT' undeclared (first use this fun
  138. ction)
  139. styles\qwindowsxpstyle.cpp:2949: error: `SBS_NORMAL' undeclared (first use this
  140. function)
  141. styles\qwindowsxpstyle.cpp:2956: error: `pGetThemePartSize' cannot be used as a
  142. function
  143. styles\qwindowsxpstyle.cpp:2970: error: `WP_MINBUTTON' undeclared (first use thi
  144. s function)
  145. styles\qwindowsxpstyle.cpp:2972: error: `MINBS_DISABLED' undeclared (first use t
  146. his function)
  147. styles\qwindowsxpstyle.cpp:2974: error: `MINBS_PUSHED' undeclared (first use thi
  148. s function)
  149. styles\qwindowsxpstyle.cpp:2976: error: `MINBS_HOT' undeclared (first use this f
  150. unction)
  151. styles\qwindowsxpstyle.cpp:2980: error: `MINBS_NORMAL' undeclared (first use thi
  152. s function)
  153. styles\qwindowsxpstyle.cpp:2987: error: `WP_MAXBUTTON' undeclared (first use thi
  154. s function)
  155. styles\qwindowsxpstyle.cpp:2989: error: `MAXBS_DISABLED' undeclared (first use t
  156. his function)
  157. styles\qwindowsxpstyle.cpp:2991: error: `MAXBS_PUSHED' undeclared (first use thi
  158. s function)
  159. styles\qwindowsxpstyle.cpp:2993: error: `MAXBS_HOT' undeclared (first use this f
  160. unction)
  161. styles\qwindowsxpstyle.cpp:2997: error: `MAXBS_NORMAL' undeclared (first use thi
  162. s function)
  163. styles\qwindowsxpstyle.cpp:3004: error: `WP_RESTOREBUTTON' undeclared (first use
  164. this function)
  165. styles\qwindowsxpstyle.cpp:3006: error: `RBS_DISABLED' undeclared (first use thi
  166. s function)
  167. styles\qwindowsxpstyle.cpp:3008: error: `RBS_PUSHED' undeclared (first use this
  168. function)
  169. styles\qwindowsxpstyle.cpp:3010: error: `RBS_HOT' undeclared (first use this fun
  170. ction)
  171. styles\qwindowsxpstyle.cpp:3014: error: `RBS_NORMAL' undeclared (first use this
  172. function)
  173. styles\qwindowsxpstyle.cpp:3056: error: `WP_CLOSEBUTTON' undeclared (first use t
  174. his function)
  175. styles\qwindowsxpstyle.cpp:3058: error: `CBS_DISABLED' undeclared (first use thi
  176. s function)
  177. styles\qwindowsxpstyle.cpp:3060: error: `CBS_PUSHED' undeclared (first use this
  178. function)
  179. styles\qwindowsxpstyle.cpp:3062: error: `CBS_HOT' undeclared (first use this fun
  180. ction)
  181. styles\qwindowsxpstyle.cpp:3066: error: `CBS_NORMAL' undeclared (first use this
  182. function)
  183. styles\qwindowsxpstyle.cpp: In member function `virtual int QWindowsXPStyle::pix
  184. elMetric(QStyle::PixelMetric, const QStyleOption*, const QWidget*) const':
  185. styles\qwindowsxpstyle.cpp:3135: error: `BP_CHECKBOX' undeclared (first use this
  186. function)
  187. styles\qwindowsxpstyle.cpp:3135: error: `CBS_UNCHECKEDNORMAL' undeclared (first
  188. use this function)
  189. styles\qwindowsxpstyle.cpp:3138: error: `TS_TRUE' undeclared (first use this fun
  190. ction)
  191. styles\qwindowsxpstyle.cpp:3138: error: `pGetThemePartSize' cannot be used as a
  192. function
  193. styles\qwindowsxpstyle.cpp:3147: error: `BP_RADIOBUTTON' undeclared (first use t
  194. his function)
  195. styles\qwindowsxpstyle.cpp:3147: error: `RBS_UNCHECKEDNORMAL' undeclared (first
  196. use this function)
  197. styles\qwindowsxpstyle.cpp:3150: error: `pGetThemePartSize' cannot be used as a
  198. function
  199. styles\qwindowsxpstyle.cpp:3161: error: `PP_CHUNK' undeclared (first use this fu
  200. nction)
  201. styles\qwindowsxpstyle.cpp:3161: error: `PP_CHUNKVERT' undeclared (first use thi
  202. s function)
  203. styles\qwindowsxpstyle.cpp:3164: error: `pGetThemePartSize' cannot be used as a
  204. function
  205. styles\qwindowsxpstyle.cpp:3172: error: `SBP_LOWERTRACKHORZ' undeclared (first u
  206. se this function)
  207. styles\qwindowsxpstyle.cpp:3175: error: `pGetThemePartSize' cannot be used as a
  208. function
  209. styles\qwindowsxpstyle.cpp:3183: error: `TKP_THUMB' undeclared (first use this f
  210. unction)
  211. styles\qwindowsxpstyle.cpp:3186: error: `pGetThemePartSize' cannot be used as a
  212. function
  213. styles\qwindowsxpstyle.cpp:3194: error: `TP_SPLITBUTTONDROPDOWN' undeclared (fir
  214. st use this function)
  215. styles\qwindowsxpstyle.cpp:3197: error: `pGetThemePartSize' cannot be used as a
  216. function
  217. styles\qwindowsxpstyle.cpp:3205: error: `WP_CAPTION' undeclared (first use this
  218. function)
  219. styles\qwindowsxpstyle.cpp:3205: error: `CS_ACTIVE' undeclared (first use this f
  220. unction)
  221. styles\qwindowsxpstyle.cpp:3208: error: `pGetThemePartSize' cannot be used as a
  222. function
  223. styles\qwindowsxpstyle.cpp:3216: error: `WP_FRAMELEFT' undeclared (first use thi
  224. s function)
  225. styles\qwindowsxpstyle.cpp:3216: error: `FS_ACTIVE' undeclared (first use this f
  226. unction)
  227. styles\qwindowsxpstyle.cpp:3219: error: `pGetThemePartSize' cannot be used as a
  228. function
  229. styles\qwindowsxpstyle.cpp:3237: error: `WP_SMALLFRAMERIGHT' undeclared (first u
  230. se this function)
  231. styles\qwindowsxpstyle.cpp:3240: error: `pGetThemePartSize' cannot be used as a
  232. function
  233. styles\qwindowsxpstyle.cpp: In member function `virtual int QWindowsXPStyle::sty
  234. leHint(QStyle::StyleHint, const QStyleOption*, const QWidget*, QStyleHintReturn*
  235. ) const':
  236. styles\qwindowsxpstyle.cpp:3532: error: `WP_MINCAPTION' undeclared (first use th
  237. is function)
  238. styles\qwindowsxpstyle.cpp:3532: error: `CS_ACTIVE' undeclared (first use this f
  239. unction)
  240. styles\qwindowsxpstyle.cpp:3534: error: `WP_CAPTION' undeclared (first use this
  241. function)
  242. styles\qwindowsxpstyle.cpp:3541: warning: unused variable 'rbOpt'
  243. styles\qwindowsxpstyle.cpp: In member function `virtual QPixmap QWindowsXPStyle:
  244. :standardPixmap(QStyle::StandardPixmap, const QStyleOption*, const QWidget*) con
  245. st':
  246. styles\qwindowsxpstyle.cpp:3576: error: `WP_SMALLCLOSEBUTTON' undeclared (first
  247. use this function)
  248. styles\qwindowsxpstyle.cpp:3576: error: `CBS_NORMAL' undeclared (first use this
  249. function)
  250. styles\qwindowsxpstyle.cpp:3579: error: `TS_TRUE' undeclared (first use this fun
  251. ction)
  252. styles\qwindowsxpstyle.cpp:3579: error: `pGetThemePartSize' cannot be used as a
  253. function
  254. styles\qwindowsxpstyle.cpp:3572: warning: unused variable 'dwOpt'
  255. styles\qwindowsxpstyle.cpp: In member function `QIcon QWindowsXPStyle::standardI
  256. conImplementation(QStyle::StandardPixmap, const QStyleOption*, const QWidget*) c
  257. onst':
  258. styles\qwindowsxpstyle.cpp:3607: error: `WP_SMALLCLOSEBUTTON' undeclared (first
  259. use this function)
  260. styles\qwindowsxpstyle.cpp:3607: error: `CBS_NORMAL' undeclared (first use this
  261. function)
  262. styles\qwindowsxpstyle.cpp:3608: error: `WP_MAXBUTTON' undeclared (first use thi
  263. s function)
  264. styles\qwindowsxpstyle.cpp:3608: error: `MAXBS_NORMAL' undeclared (first use thi
  265. s function)
  266. styles\qwindowsxpstyle.cpp:3611: error: `TS_TRUE' undeclared (first use this fun
  267. ction)
  268. styles\qwindowsxpstyle.cpp:3611: error: `pGetThemePartSize' cannot be used as a
  269. function
  270. styles\qwindowsxpstyle.cpp:3620: error: `MAXBS_PUSHED' undeclared (first use thi
  271. s function)
  272. styles\qwindowsxpstyle.cpp:3624: error: `MAXBS_HOT' undeclared (first use this f
  273. unction)
  274. styles\qwindowsxpstyle.cpp:3604: warning: unused variable 'dwOpt'
  275. styles\qwindowsxpstyle.cpp:3647: error: `pGetThemePartSize' cannot be used as a
  276. function
  277. styles\qwindowsxpstyle.cpp:3652: error: `WP_CLOSEBUTTON' undeclared (first use t
  278. his function)
  279. styles\qwindowsxpstyle.cpp:3657: error: `CBS_PUSHED' undeclared (first use this
  280. function)
  281. styles\qwindowsxpstyle.cpp:3661: error: `CBS_HOT' undeclared (first use this fun
  282. ction)
  283. styles\qwindowsxpstyle.cpp:3641: warning: unused variable 'dwOpt'
  284. styles\qwindowsxpstyle.cpp:3681: error: `WP_RESTOREBUTTON' undeclared (first use
  285. this function)
  286. styles\qwindowsxpstyle.cpp:3681: error: `RBS_NORMAL' undeclared (first use this
  287. function)
  288. styles\qwindowsxpstyle.cpp:3684: error: `pGetThemePartSize' cannot be used as a
  289. function
  290. styles\qwindowsxpstyle.cpp:3693: error: `RBS_PUSHED' undeclared (first use this
  291. function)
  292. styles\qwindowsxpstyle.cpp:3697: error: `RBS_HOT' undeclared (first use this fun
  293. ction)
  294. styles\qwindowsxpstyle.cpp:3677: warning: unused variable 'dwOpt'
  295. mingw32-make[2]: *** [tmp\obj\debug_shared\qwindowsxpstyle.o] Error 1
  296. mingw32-make[2]: Leaving directory `C:/Qt/4.1.4/src/gui'
  297. mingw32-make[1]: *** [debug] Error 2
  298. mingw32-make[1]: Leaving directory `C:/Qt/4.1.4/src/gui'
  299. mingw32-make: *** [debug-gui] Error 2
  300. C:\Qt\4.1.4\src>

用google查找了一下,结果在MSDN上面查到一些资料。然后我装了Windows Platform SDK,把他的include和lib文件夹加到环境变量了,但是还是出错,依然提示上面这些。
不知道怎么做了。我用的Windows xp,Qt 4.1.4.
离线eddielu
只看该作者 1楼 发表于: 2006-09-11
难道只有我遇到这种问题?
离线zbluecn

只看该作者 2楼 发表于: 2007-01-15
我也是 用MinGw编译的~~

正在想办法把xpstyle去掉
离线zbluecn

只看该作者 3楼 发表于: 2007-01-15
编译成功

该了1个文件
styles.pri
定义XPStyle的地方注释掉
#contains( styles, windowsxp ) {
#    HEADERS += styles/qwindowsxpstyle.h
#    SOURCES += styles/qwindowsxpstyle.cpp
#    !contains( styles, windows ) {
#        message( windowsxp requires windows )
#        styles += windows
#        DEFINES+= QT_STYLE_WINDOWS
#    }
#} else {
   DEFINES += QT_NO_STYLE_WINDOWSXP
#}

然后重新 qmake gui.pro
记得 要make clean 清除以前的编译

然后make 就可以了
快速回复
限100 字节
 
上一个 下一个