Hi,

I did a cursory search for my situation, and I did not find anything helpful. I downloaded Qt SDK 4.7: Complete Development Environment for my fedora 11. I was playing with the demo/sqlbrowser, and I was hoping to connect to my mysql database. I read I had to 'configure -v -qt-sql-mysql' and compile the source. After I did my configure, I did a gmake, but I ran into errors:

Qt Code:
  1. f.o painting/qpdf.cpp
  2. In file included from ../../include/QtGui/private/qcups_p.h:1,
  3. from painting/qpdf.cpp:47:
  4. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:61:23: error: cups/cups.h: No such file or directory
  5. In file included from ../../include/QtGui/private/qcups_p.h:1,
  6. from painting/qpdf.cpp:47:
  7. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:65: error: ‘cups_option_t’ was not declared in this scope
  8. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:65: error: template argument 1 is invalid
  9. In file included from ../../include/QtGui/private/qcups_p.h:1,
  10. from painting/qpdf.cpp:47:
  11. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:76: error: ISO C++ forbids declaration of ‘cups_dest_t’ with no type
  12. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:76: error: expected ‘;’ before ‘*’ token
  13. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:78: error: ISO C++ forbids declaration of ‘ppd_file_t’ with no type
  14. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:78: error: expected ‘;’ before ‘*’ token
  15. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:80: error: ISO C++ forbids declaration of ‘ppd_file_t’ with no type
  16. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:80: error: expected ‘;’ before ‘*’ token
  17. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:81: error: ISO C++ forbids declaration of ‘ppd_option_t’ with no type
  18. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:81: error: expected ‘;’ before ‘*’ token
  19. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:83: error: ISO C++ forbids declaration of ‘cups_option_t’ with no type
  20. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:83: error: expected ‘;’ before ‘*’ token
  21. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:84: error: ISO C++ forbids declaration of ‘ppd_option_t’ with no type
  22. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:84: error: expected ‘;’ before ‘*’ token
  23. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:87: error: ISO C++ forbids declaration of ‘type name’ with no type
  24. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:87: error: template argument 1 is invalid
  25. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:100: error: ‘cups_option_t’ has not been declared
  26. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:103: error: ISO C++ forbids declaration of ‘ppd_group_t’ with no type
  27. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:103: error: expected ‘,’ or ‘...’ before ‘*’ token
  28. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:104: error: ISO C++ forbids declaration of ‘ppd_group_t’ with no type
  29. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:104: error: expected ‘,’ or ‘...’ before ‘*’ token
  30. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:107: error: ISO C++ forbids declaration of ‘cups_dest_t’ with no type
  31. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:107: error: expected ‘;’ before ‘*’ token
  32. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:108: error: ISO C++ forbids declaration of ‘ppd_option_t’ with no type
  33. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:108: error: expected ‘;’ before ‘*’ token
  34. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:110: error: ISO C++ forbids declaration of ‘ppd_file_t’ with no type
  35. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:110: error: expected ‘;’ before ‘*’ token
  36. In file included from ../../include/QtGui/private/qcups_p.h:1,
  37. from painting/qpdf.cpp:47:
  38. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h: In static member function ‘static int QCUPSSupport::cupsVersion()’:
  39. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:74: error: ‘CUPS_VERSION_MAJOR’ was not declared in this scope
  40. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:74: error: ‘CUPS_VERSION_MINOR’ was not declared in this scope
  41. ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:74: error: ‘CUPS_VERSION_PATCH’ was not declared in this scope
  42. painting/qpdf.cpp: In constructor ‘QPdfBaseEngine::QPdfBaseEngine(QPdfBaseEnginePrivate&, QFlags<QPaintEngine::PaintEngineFeature>)’:
  43. painting/qpdf.cpp:946: error: expected initializer before ‘*’ token
  44. painting/qpdf.cpp:950: error: ‘printers’ was not declared in this scope
  45. painting/qpdf.cpp: In member function ‘void QPdfBaseEnginePrivate::closePrintDevice()’:
  46. painting/qpdf.cpp:1849: error: ‘cups_option_t’ was not declared in this scope
  47. painting/qpdf.cpp:1849: error: template argument 1 is invalid
  48. painting/qpdf.cpp:1849: error: invalid type in declaration before ‘;’ token
  49. painting/qpdf.cpp:1904: error: expected ‘;’ before ‘opt’
  50. painting/qpdf.cpp:1905: error: ‘opt’ was not declared in this scope
  51. painting/qpdf.cpp:1907: error: request for member ‘append’ in ‘cupsOptStruct’, which is of non-class type ‘int’
  52. painting/qpdf.cpp:1911: error: ‘optPtr’ was not declared in this scope
  53. painting/qpdf.cpp:1911: error: request for member ‘size’ in ‘cupsOptStruct’, which is of non-class type ‘int’
  54. painting/qpdf.cpp:1911: error: request for member ‘first’ in ‘cupsOptStruct’, which is of non-class type ‘int’
  55. painting/qpdf.cpp:1913: error: request for member ‘size’ in ‘cupsOptStruct’, which is of non-class type ‘int’
  56. gmake[1]: *** [.obj/release-shared/qpdf.o] Error 1
  57. gmake[1]: Leaving directory `/home/bchin/qtsdk-2010.05/qt/src/gui'
  58. gmake: *** [sub-gui-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 

I would greatly appreciated if I could get any help compiling the Qt source. Or is my entire approach incorrect?

Thanks,

Brad