Building with cmake on Windows.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Building with cmake on Windows.

AndrewC

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building with cmake on Windows.

Maxime Gimeno
Hi,

I think your problem is due to QTDIR. You shouldn't have to specify that. Qt5_DIR is enough, and it is possible that both paths are somehow interfering.

Le ven. 14 août 2020 à 21:21, Andrew Cunningham <[hidden email]> a écrit :

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building with cmake on Windows.

AndrewC
Sadly, removing the definition of QTDIR made no difference. CMake fails in the identical manner.

On Tue, Aug 18, 2020 at 12:59 AM Maxime Gimeno <[hidden email]> wrote:
Hi,

I think your problem is due to QTDIR. You shouldn't have to specify that. Qt5_DIR is enough, and it is possible that both paths are somehow interfering.

Le ven. 14 août 2020 à 21:21, Andrew Cunningham <[hidden email]> a écrit :

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building with cmake on Windows.

Maxime Gimeno
Did you clean your CMakeCache before trying ? 

Le mar. 18 août 2020 à 19:47, Andrew Cunningham <[hidden email]> a écrit :
Sadly, removing the definition of QTDIR made no difference. CMake fails in the identical manner.

On Tue, Aug 18, 2020 at 12:59 AM Maxime Gimeno <[hidden email]> wrote:
Hi,

I think your problem is due to QTDIR. You shouldn't have to specify that. Qt5_DIR is enough, and it is possible that both paths are somehow interfering.

Le ven. 14 août 2020 à 21:21, Andrew Cunningham <[hidden email]> a écrit :

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building with cmake on Windows.

AndrewC
Yes, absolutely. Completely cleaned the "build" directory.

On Tue, Aug 18, 2020 at 11:19 PM Maxime Gimeno <[hidden email]> wrote:
Did you clean your CMakeCache before trying ? 

Le mar. 18 août 2020 à 19:47, Andrew Cunningham <[hidden email]> a écrit :
Sadly, removing the definition of QTDIR made no difference. CMake fails in the identical manner.

On Tue, Aug 18, 2020 at 12:59 AM Maxime Gimeno <[hidden email]> wrote:
Hi,

I think your problem is due to QTDIR. You shouldn't have to specify that. Qt5_DIR is enough, and it is possible that both paths are somehow interfering.

Le ven. 14 août 2020 à 21:21, Andrew Cunningham <[hidden email]> a écrit :

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building with cmake on Windows.

AndrewC

Reverting to QT 5.12.4 fixed the problem.

On Wed, Aug 19, 2020 at 8:27 AM Andrew Cunningham <[hidden email]> wrote:
Yes, absolutely. Completely cleaned the "build" directory.

On Tue, Aug 18, 2020 at 11:19 PM Maxime Gimeno <[hidden email]> wrote:
Did you clean your CMakeCache before trying ? 

Le mar. 18 août 2020 à 19:47, Andrew Cunningham <[hidden email]> a écrit :
Sadly, removing the definition of QTDIR made no difference. CMake fails in the identical manner.

On Tue, Aug 18, 2020 at 12:59 AM Maxime Gimeno <[hidden email]> wrote:
Hi,

I think your problem is due to QTDIR. You shouldn't have to specify that. Qt5_DIR is enough, and it is possible that both paths are somehow interfering.

Le ven. 14 août 2020 à 21:21, Andrew Cunningham <[hidden email]> a écrit :

Hi All,  

I was trying to build demos using the latest 5.0.3 version on Windows using cmake . I have set up QT5_dir and QTDIR

 Qt5_DIR=D:\Qt\5.12.7\msvc2017_64\lib\cmake\Qt5
QTDIR=D:\Qt\5.12.7\msvc2017_64



D:\CGAL-5.0.3\build\debug>cmake  D:\CGAL-5.0.3  -DCMAKE_BUILD_TYPE=Debug

 

I get some very obscure cmake QT related messages – I am including the “Trace” from cmake

 

 

-- Configuring demo in demo/Triangulation_3

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file

Call Stack (most recent call first):

  D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:281 (_QT5_PARSE_QRC_FILE)

  demo/Triangulation_3/CMakeLists.txt:57 (qt5_add_resources)

 

Here is the trace from cmake.

 

/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(202):  if(NOT IS_ABSOLUTE cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(203):  set(RC_FILE D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(205):  set(RC_DEPENDS D:/CGAL-5.0.3/demo/resources/about_CGAL.html;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png;D:/CGAL-5.0.3/demo/resources/cgal_logo_ipe_2013.png D:/CGAL-5.0.3/demo/resources/cgal_logo.xpm )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(210):  qt5_make_output_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc  qrc.depends out_depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(43):  string(LENGTH D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5 _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(44):  string(LENGTH D:/CGAL-5.0.3/demo/resources/CGAL.qrc _infileLength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(45):  set(_checkinfile D:/CGAL-5.0.3/src/CGAL_Qt5 )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(46):  if(_infileLength GREATER _binlength )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(53):  else()

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(54):  file(RELATIVE_PATH rel D:/CGAL-5.0.3/src/CGAL_Qt5 D:/CGAL-5.0.3/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(56):  if(WIN32 AND rel MATCHES ^([a-zA-Z]):(.*)$ )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(59):  set(_outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(60):  string(REPLACE .. __ _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/../../demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(61):  get_filename_component(outpath D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc PATH )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(62):  string(REGEX REPLACE \.[^.]*$  _outfile D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(63):  file(MAKE_DIRECTORY D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(64):  set(out_depends D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends )

D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake(211):  configure_file(D:/CGAL-5.0.3/demo/resources/CGAL.qrc D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/D:/CGAL-5.0.3/build/debug/src/CGAL_Qt5/__/__/demo/resources/CGAL.qrc.depends COPYONLY )

CMake Error at D:/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:211 (configure_file):

  configure_file Problem configuring file


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss