cmake / VS 2010 Express build problem

cmake version 2.8.11.1, Visual Studio version Express SP1.

When I go to set up the cmake build (run configure in cmake) I get two
warnings like:

  CMake Warning at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/InstallRequiredSystemLibraries.cmake:343 (message):
    system runtime library file does not exist:
    'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcp100.dll'
  Call Stack (most recent call first):
    CMakeLists.txt:144 (include)

And then a spew of messages like:
    CMake Error at InstallRules/CMakeLists.txt:18 (get_filename_component):
      get_filename_component called with incorrect number of arguments

The warnings are apparently a VS 2010 Express "feature." No idea what to
make of the "incorrect number of arguments" errors.

How do I get this to work?

Randolph

Got it.

This is a bug, due to missing quotes in InstallRules\CMakeLists.txt.

Lines 18-23 of that file should read:
get_filename_component(qgif_plugin "${QT_QGIF_${qt_plugin_term}_RELEASE}" NAME)
get_filename_component(qico_plugin "${QT_QICO_${qt_plugin_term}_RELEASE}" NAME)
get_filename_component(qjpeg_plugin "${QT_QJPEG_${qt_plugin_term}_RELEASE}"
NAME)
get_filename_component(qmng_plugin "${QT_QMNG_${qt_plugin_term}_RELEASE}" NAME)
get_filename_component(qsvg_plugin "${QT_QSVG_${qt_plugin_term}_RELEASE}" NAME)
get_filename_component(qtiff_plugin "${QT_QTIFF_${qt_plugin_term}_RELEASE}"
NAME)

Not sure if I have an old version of InstallRules\CMakeLists.txt or if my
configuration is different.

Hi Randolph,

Thanks for checking this out. Since everything builds fine on other platforms -- and on Win with VS 2008 -- I'm not in a hurry to change the CMakeLists.txt file globally to include the quotes. I'll test the change on other platforms and compilers when I get a chance; if it doesn't break the others, I'll just change it. Otherwise we'll need yet another conditional to deal with Windows.

- Rob

···

-----Original Message-----
From: Randolph M. Fritz [mailto:[email protected]]
Sent: Wednesday, June 26, 2013 7:46 PM
To: [email protected]
Subject: Re: [Radiance-dev] cmake / VS 2010 Express build problem

Got it.

This is a bug, due to missing quotes in InstallRules\CMakeLists.txt.

Lines 18-23 of that file should read:
get_filename_component(qgif_plugin "${QT_QGIF_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qico_plugin "${QT_QICO_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qjpeg_plugin "${QT_QJPEG_${qt_plugin_term}_RELEASE}"
NAME)
get_filename_component(qmng_plugin "${QT_QMNG_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qsvg_plugin "${QT_QSVG_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qtiff_plugin "${QT_QTIFF_${qt_plugin_term}_RELEASE}"
NAME)

Not sure if I have an old version of InstallRules\CMakeLists.txt or if my configuration is different.

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Hi Randolph,

I changed InstallRules\CMakeLists.txt to wrap the Qt lib calls in double quotes and sent to Greg, so that change will filter up to HEAD at some point. Also know that a more direct fix for this is to explicitly point to the qmake executable in cmake, with the QT_QMAKE_EXECUTABLE variable. I use this myself, because my Qt install is a little funky and is not exposed at the system level. Lemmeknow if you want more info on this.

- Rob

···

-----Original Message-----
From: Randolph M. Fritz [mailto:[email protected]]
Sent: Wednesday, June 26, 2013 7:46 PM
To: [email protected]
Subject: Re: [Radiance-dev] cmake / VS 2010 Express build problem

Got it.

This is a bug, due to missing quotes in InstallRules\CMakeLists.txt.

Lines 18-23 of that file should read:
get_filename_component(qgif_plugin "${QT_QGIF_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qico_plugin "${QT_QICO_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qjpeg_plugin "${QT_QJPEG_${qt_plugin_term}_RELEASE}"
NAME)
get_filename_component(qmng_plugin "${QT_QMNG_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qsvg_plugin "${QT_QSVG_${qt_plugin_term}_RELEASE}" NAME) get_filename_component(qtiff_plugin "${QT_QTIFF_${qt_plugin_term}_RELEASE}"
NAME)

Not sure if I have an old version of InstallRules\CMakeLists.txt or if my configuration is different.

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev