Dear Amitha,
I did what you meant, and C++ Comman Line options are the followings
for vgui project
/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" /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
The include file location for Qt library is
"D:\Programs\Qt\4.1.4\include" and this directory conatins the following
subdirectories
ActiveQt
Qt
Qt3Support
QtAssistant
QtCore
QtDesigner
QtGui
QtNetwork
QtOpenGL
QtSql
QtSvg
QtTest
QtUiTools
QtXml
And the determination of these location in Cmake is correct too, but
building the project produces the following errors
------ Build started: Project: vgui, Configuration: Debug Win32 ------
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(18) : fatal error C1083: Cannot open include file:
'qdialog.h': No such file or directory
moc_vgui_qt_adaptor.cxx
g:\work\cpp\libs\vxl-1.6.0\bin\core\vgui\../../../core/vgui/impl/qt/vgui_qt_
adaptor.h(23) : fatal error C1083: Cannot open include file: 'qgl.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(18) :
fatal error C1083: Cannot open include file: 'qdialog.h': No such file or
directory
vgui_qt_statusbar.cxx
g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_statusbar.h(21) : fatal
error C1083: Cannot open include file: 'qstatusbar.h': No such file or
directory
vgui_qt_adaptor.cxx
g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_adaptor.h(23) : fatal
error C1083: Cannot open include file: 'qgl.h': No such file or directory
vgui_qt_window.cxx
g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_statusbar.h(21) : fatal
error C1083: Cannot open include file: 'qstatusbar.h': No such file or
directory
vgui_qt.cxx
g:\work\cpp\libs\vxl-1.6.0\core\vgui\impl\qt\vgui_qt_statusbar.h(21) : fatal
error C1083: Cannot open include file: 'qstatusbar.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 - 9 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:perera@...]
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.
|