From: Cem D. <cde...@gm...> - 2006-11-22 19:51:54
|
Hi, Most of the compilation error is solved by adding each include file location manually to the vgui project as given in the following lines, vgui project by Cmake does not put these locations into the compilation parameters anyway. /Od /I "G:\Work\Cpp\Libs\vxl-1.6.0\bin\vcl" /I "G:\Work\Cpp\Libs\vxl-1.6.0\vcl" /I "G:\Work\Cpp\Libs\vxl-1.6.0\bin\core" /I "G:\Work\Cpp\Libs\vxl-1.6.0\core" /I "G:\Work\Cpp\Libs\glut-3.7.6\include" /I "G:\Work\Cpp\Libs\vxl-1.6.0\v3p" /I "D:\Programs\Qt\4.1.4\include" /I "D:\Programs\Qt\4.1.4\include\Qt" /I "D:\Programs\Qt\4.1.4\include\Qt3Support" /I "D:\Programs\Qt\4.1.4\include\QtAssistant" /I "D:\Programs\Qt\4.1.4\include\QtCore" /I "D:\Programs\Qt\4.1.4\include\QtDesigner" /I "D:\Programs\Qt\4.1.4\include\QtGui" /I "D:\Programs\Qt\4.1.4\include\QtNetwork" /I "D:\Programs\Qt\4.1.4\include\QtOpenGL" /I "D:\Programs\Qt\4.1.4\include\QtSql" /I "D:\Programs\Qt\4.1.4\include\QtSvg" /I "D:\Programs\Qt\4.1.4\include\QtTest" /I "D:\Programs\Qt\4.1.4\include\QtUiTools" /I "D:\Programs\Qt\4.1.4\include\QtXml" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "VXL_WARN_DEPRECATED" /D "VXL_WARN_DEPRECATED_ONCE" /D "_AFXDLL" /D "QT_DLL" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"vgui.dir\Debug\\" /Fd"G:/Work/Cpp/Libs/vxl-1.6.0/bin/lib/Debug/vgui.pdb" /W3 /nologo /c /Zi /TP /errorReport:prompt But the building project still produces error since my Qt 4 distribution does not contain qpopupmenu.h and qhgroupbox.h files included in the vgui_qt_menu.h and vgui_gt_dialog_impl.h files. Due to the lack of these files compilation process of vgui produces the following output. ------ Build started: Project: vgui, Configuration: Debug Win32 ------ Building QT Wrapped File G:/Work/Cpp/Libs/vxl-1.6.0/bin/core/vgui/moc_vgui_qt_menu.cxx Building QT Wrapped File G:/Work/Cpp/Libs/vxl-1.6.0/bin/core/vgui/moc_vgui_qt_dialog_impl.cxx Compiling... moc_vgui_qt_menu.cxx g:\work\cpp\libs\vxl-1.6.0\bin\core\vgui\../../../core/vgui/impl/qt/vgui_qt_ menu.h(20) : fatal error C1083: Cannot open include file: 'qpopupmenu.h': No such file or directory moc_vgui_qt_dialog_impl.cxx g:\work\cpp\libs\vxl-1.6.0\bin\core\vgui\../../../core/vgui/impl/qt/vgui_qt_ dialog_impl.h(51) : fatal error C1083: Cannot open include file: 'qhgroupbox.h': No such file or directory vgui_qt_menu.cxx g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_menu.h(20) : fatal error C1083: Cannot open include file: 'qpopupmenu.h': No such file or directory vgui_qt_dialog_impl.cxx g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_dialog_impl.h(51) : fatal error C1083: Cannot open include file: 'qhgroupbox.h': No such file or directory vgui_qt_statusbar.cxx ..\..\..\core\vgui\impl\qt\vgui_qt_statusbar.cxx(28) : error C2039: 'message' : is not a member of 'QStatusBar' d:\programs\qt\4.1.4\include\qt\../../src/gui/widgets/qstatusbar.h(35) : see declaration of 'QStatusBar' ..\..\..\core\vgui\impl\qt\vgui_qt_statusbar.cxx(40) : error C2039: 'message' : is not a member of 'QStatusBar' d:\programs\qt\4.1.4\include\qt\../../src/gui/widgets/qstatusbar.h(35) : see declaration of 'QStatusBar' ..\..\..\core\vgui\impl\qt\vgui_qt_statusbar.cxx(51) : error C2039: 'message' : is not a member of 'QStatusBar' d:\programs\qt\4.1.4\include\qt\../../src/gui/widgets/qstatusbar.h(35) : see declaration of 'QStatusBar' vgui_qt_adaptor.cxx g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_menu.h(20) : fatal error C1083: Cannot open include file: 'qpopupmenu.h': No such file or directory vgui_qt_window.cxx g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_menu.h(20) : fatal error C1083: Cannot open include file: 'qpopupmenu.h': No such file or directory vgui_qt.cxx g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_dialog_impl.h(51) : fatal error C1083: Cannot open include file: 'qhgroupbox.h': No such file or directory Generating Code... Build log was saved at "file://g:\Work\Cpp\Libs\vxl-1.6.0\bin\core\vgui\vgui.dir\Debug\BuildLog.htm " vgui - 10 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Sincerely Cem DEMiRKIR -----Original Message----- From: Amitha Perera [mailto:pe...@cs...] Sent: Wednesday, November 22, 2006 9:05 PM To: Cem DEMiRKIR Cc: VXL Users Mailing List Subject: Re: [Vxl-users] Problem with builiding vgui.lib using MS VS2005 and Qt4.1.4 On Wed 22 Nov 2006, Cem DEMiRKIR wrote: > Hello everyone, > I tried to build VXL 1.6.0 using CMake 2.2, Qt 4.1.4 and MSVS2005 > VC++ 8.0 in WinXP SP2. Although CMake correctly finds the Qt library > and its related subdirectories, Building of the VS2005 VC++ 8.0 > solution made by CMake produces "Cannot open include file" type > compilation errors about Qt library header files. Could you check the command line used for compiling? I don't use visual studio often, so I don't know the exact clicks, but I think it you right-click on the library (vgui), go to properties, and perhaps "command line" or something like that, there should be a list of all the include directories. Could you check that the Qt include directories are indeed present there? Maybe post that to this list? Amitha. |