Re: [CMake] Platform differences for ExternalProject_add URL

2010-12-09 Thread David Cole
On Wed, Dec 8, 2010 at 5:17 PM, KC Jones kc.jo...@skype.net wrote:
 [resending since the original seems to have never made it to the list.]

 I'm using ExternalProject_add in a script that builds various libraries I 
 depend on, and I'm running into platform differences when attempting to 
 download a source archive from a sourceforge URL.  Sounds like a bug to me.  
 But I'm also guessing that sourceforge may be redirecting the URL get 
 request, which may account for the problems on Linux -- and there may be 
 better ways for me to get my task done.

 The following unexpurgated CMakeLists.txt works on Mac (10.6.4), but the 
 download fails (0byte result)  on Linux (Ubuntu 10.04):
 --
 cmake_minimum_required(VERSION 2.8)

 include(ExternalProject)

 ExternalProject_Add(
  poco-1.3.6
  PREFIX poco
  URL 
 http://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz
  CONFIGURE_COMMAND ../poco-1.3.6/configure --no-tests --no-samples  
 --omit=Util,Net,Crypto,NetSSL_OpenSSL,Data,Data/SQLite,Data/ODBC,Data/MySQL,Zip
  BUILD_COMMAND make
 )
 --

 Any words of wisdom for a cmake newbie?


 KC Jones
 kc.jo...@skype.net
 SkypeId: bernalkc

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake


What version of cmake are you using?
( 'cmake --version' and send us the output )

We added follow redirect flags to the file(DOWNLOAD command in this commit:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef491f78218e255339278656bf6dc26073fef264

...which first appeared in CMake 2.8.2.

If you're using 2.8.0 or 2.8.1, just upgrade to the latest version
(2.8.3) and it should work for you.


HTH,
David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Platform differences for ExternalProject_add URL

2010-12-09 Thread KC Jones
On Dec 9, 2010, at 3:18 AM, David Cole wrote:
 What version of cmake are you using?

I'm running 2.8.2 on Mac and 2.8.0 on Linux.  So I downloaded / built / 
installed the latest 2.8.3 source on Linux.

Now I'm getting error messages indicating libcurl does not support HTTPS:

--
[  0%] Performing download step (download, verify and extract) for 'poco-1.3.6'
cd /home/kc/projects/uikit/build/lib/src  /usr/local/bin/cmake -P 
/home/kc/projects/uikit/build/lib/src/poco-1.3.6-stamp/download-poco-1.3.6.cmake
-- downloading...
 
src='https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
 dst='/home/kc/projects/uikit/build/lib/src/poco-1.3.6p2.tar.gz'
 timeout='none'
CMake Error at poco-1.3.6-stamp/download-poco-1.3.6.cmake:19 (message):
  error: downloading
  
'https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
  failed

status_code: 1
status_string: unsupported protocol
log: libcurl was built with SSL disabled, https: not supported!

  unsupported protocol
--

So I double checked that I have the latest libcurl3 installed, and that I can 
hit that https url using curl on the command line (where I find that 
sourceforge is redirecting).  So I'm stumped.  Please advise.
 
KC Jones
kc.jo...@skype.net
SkypeId: bernalkc


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Platform differences for ExternalProject_add URL

2010-12-09 Thread David Cole
On Thu, Dec 9, 2010 at 1:43 PM, KC Jones kc.jo...@skype.net wrote:
 On Dec 9, 2010, at 3:18 AM, David Cole wrote:
 What version of cmake are you using?

 I'm running 2.8.2 on Mac and 2.8.0 on Linux.  So I downloaded / built / 
 installed the latest 2.8.3 source on Linux.

 Now I'm getting error messages indicating libcurl does not support HTTPS:

 --
 [  0%] Performing download step (download, verify and extract) for 
 'poco-1.3.6'
 cd /home/kc/projects/uikit/build/lib/src  /usr/local/bin/cmake -P 
 /home/kc/projects/uikit/build/lib/src/poco-1.3.6-stamp/download-poco-1.3.6.cmake
 -- downloading...
     
 src='https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
     dst='/home/kc/projects/uikit/build/lib/src/poco-1.3.6p2.tar.gz'
     timeout='none'
 CMake Error at poco-1.3.6-stamp/download-poco-1.3.6.cmake:19 (message):
  error: downloading
  'https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
  failed

    status_code: 1
    status_string: unsupported protocol
    log: libcurl was built with SSL disabled, https: not supported!

  unsupported protocol
 --

 So I double checked that I have the latest libcurl3 installed, and that I can 
 hit that https url using curl on the command line (where I find that 
 sourceforge is redirecting).  So I'm stumped.  Please advise.

 KC Jones
 kc.jo...@skype.net
 SkypeId: bernalkc




CMake builds its own curl, without ssl support by default, unless you
point it to the system curl.

You can rebuild CMake with the CMAKE_USE_OPENSSL ON if you have all
the right supporting system libraries installed.

Or you can figure out an http download site to use with the non-ssl builds...


HTH,
David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake