/// <summary> /// DownloadAndBuild method downloads selected libLAS version and builds it for selected parameters (i.e. x64 /// and Visual Studio 13) /// </summary> public void DownloadAndBuild() { try { if (!Directory.Exists(destinationFolder)) { Directory.CreateDirectory(destinationFolder); } message("Checking Dependencies..."); DependencyChecker.CheckCommanDependency(); message("Checking Dependencies done!"); message("Downloading libLAS..."); string libLASDownloadURL = LibLASInfo.GetDownloadURL(libLASVersion); string libLASZIPFilename = LibLASInfo.GetLibLASZipFileName(libLASVersion); DownloadHelper.DownloadFileFromURL(libLASDownloadURL, destinationFolder + libLASZIPFilename); message("Start to unzip libLAS..."); // Unzip libLAS SevenZip.Decompress(destinationFolder + "/" + libLASZIPFilename, destinationFolder); if (libLASVersion == eLibLASVersion.LibLAS1_8_0) { SevenZip.Decompress(destinationFolder + "/" + "libLAS-1.8.0.tar", destinationFolder); } message("libLAS has been unzipped!"); message("Start to build libLAS..."); runCMake(destinationFolder); runMSBuild(destinationFolder, " /property:Configuration=Release"); message("libLAS successfully built!"); // remove downloaded file if (File.Exists(Path.Combine(destinationFolder, libLASZIPFilename))) { System.IO.File.Delete(Path.Combine(destinationFolder, libLASZIPFilename)); } OnFinished(); } catch (Exception ex) { message(string.Empty); OnFailure(); MessageBox.Show(ex.ToString()); } }
/// <summary> /// DownloadAndBuild method downloads selected VTK version and builds it for selected parameters (i.e. x64 /// and Visual Studio 13) /// </summary> public void DownloadAndBuild() { try { if (!Directory.Exists(destinationFolder)) { Directory.CreateDirectory(destinationFolder); } message("Checking Dependencies..."); DependencyChecker.CheckCommanDependency(); message("Checking Dependencies done!"); message("Downloading VTK..."); string vtkDownloadURL = VTKInfo.GetDownloadURL(vtkVersion); string vtkZIPFilename = VTKInfo.GetVTKZipFileName(vtkVersion); DownloadHelper.DownloadFileFromURL(vtkDownloadURL, destinationFolder + vtkZIPFilename); message("Start to unzip VTK..."); // Unzip VTK SevenZip.Decompress(destinationFolder + "/" + vtkZIPFilename, destinationFolder); message("VTK has been unzipped!"); message("Building VTK..."); runCMake(destinationFolder); runMSBuild(destinationFolder, " /property:Configuration=" + Folder.ReleaseFolderName); message("VTK successfully built!"); // remove downloaded file if (File.Exists(Path.Combine(destinationFolder, vtkZIPFilename))) { System.IO.File.Delete(Path.Combine(destinationFolder, vtkZIPFilename)); } OnFinished(); } catch (Exception ex) { message(string.Empty); OnFailure(); MessageBox.Show(ex.ToString()); } }
/// <summary> /// DownloadAndBuild method downloads selected Flann version and builds it for selected parameters (i.e. x64 /// and Visual Studio 13) /// </summary> public void DownloadAndBuild() { try { // TODO: Ankit - Customize Message box with BlueGo UX string fVersion = FlannInfo.TransformFlannVersionToString(flannVersion); //prompt for dependencies MessageBox.Show("Information:Flann " + fVersion + " requires Python 2.x & Numpy as dependencies to build successfully!"); if (!Directory.Exists(destinationFolder)) { Directory.CreateDirectory(destinationFolder); } message("Checking Dependencies..."); DependencyChecker.CheckCommanDependency(); string python2FullPath = Executable.GetPython2ExePath(); if (String.IsNullOrEmpty(python2FullPath)) { throw new Exception(PythonAndNumpyNotInstalledMessage); } message("Checking Dependencies done!"); message("Downloading Flann..."); string FlannDownloadURL = FlannInfo.GetDownloadURL(flannVersion); string FlannZIPFilename = FlannInfo.GetFlannZipFileName(flannVersion); DownloadHelper.DownloadFileFromURL(FlannDownloadURL, destinationFolder + FlannZIPFilename); message("Start to unzip Flann..."); // Unzip Flann SevenZip.Decompress(destinationFolder + "/" + FlannZIPFilename, destinationFolder); message("Flann has been unzipped!"); //patch the serialization.h for building successfully with x64 if (platform == ePlatform.x64) { patchForX64Platform(); } message("Building Flann..."); runCMake(destinationFolder, python2FullPath); runMSBuild(destinationFolder, " /property:Configuration=" + Folder.ReleaseFolderName); message("Flann successfully built!"); // remove downloaded file if (File.Exists(Path.Combine(destinationFolder, FlannZIPFilename))) { System.IO.File.Delete(Path.Combine(destinationFolder, FlannZIPFilename)); } OnFinished(); } catch (Exception ex) { message(string.Empty); OnFailure(); MessageBox.Show(ex.ToString()); } }
/// <summary> /// DownloadAndBuild method downloads selected PCL version and builds it for selected parameters (i.e. x64 /// and Visual Studio 13) /// </summary> public void DownloadAndBuild() { try { // TODO: Ankit - Customize Message box with BlueGo UX // prompt for dependencies if (MessageBox.Show(PCLWaring, "Warning", MessageBoxButtons.OKCancel) != DialogResult.OK) { OnFinished(); return; } if (!Directory.Exists(destinationFolder)) { Directory.CreateDirectory(destinationFolder); } message("Checking Dependencies..."); DependencyChecker.CheckCommanDependency(); python2ExeFullPath = Executable.GetPython2ExePath(); if (String.IsNullOrEmpty(python2ExeFullPath)) { throw new Exception(PythonAndNumpyNotInstalledMessage); } message("Checking Dependencies done!"); message("Downloading PCL..."); string pclDownloadURL = PCLInfo.GetDownloadURL(pclVersion); string pclZIPFilename = PCLInfo.GetPCLZipFileName(pclVersion); pclFolderName = PCLInfo.GetPCLInfo(pclVersion).ExtractFolderName; DownloadHelper.DownloadFileFromURL(pclDownloadURL, destinationFolder + pclZIPFilename); message("Start to unzip PCL..."); // unzip pcl SevenZip.Decompress(destinationFolder + "/" + pclZIPFilename, destinationFolder); message("PCL has been unzipped!"); if (Directory.Exists(destinationFolder + "/pcl-" + pclFolderName)) { Directory.Move(destinationFolder + "/pcl-" + pclFolderName, destinationFolder + pclFolderName); } else if (Directory.Exists(destinationFolder + pclFolderName) && (ePCLVersion.FromSourceGIT == pclVersion)) { Directory.Move(destinationFolder + pclFolderName, destinationFolder + "/" + PCLFromSourceGITFolderName); pclFolderName = PCLFromSourceGITFolderName; } message("start to build pcl..."); runCMake(destinationFolder); runMSBuild(destinationFolder, " /property:Configuration=" + Folder.ReleaseFolderName); message("PCL successfully built!"); // remove downloaded file if (File.Exists(Path.Combine(destinationFolder, pclZIPFilename))) { System.IO.File.Delete(Path.Combine(destinationFolder, pclZIPFilename)); } OnFinished(); } catch (Exception ex) { message(string.Empty); OnFailure(); MessageBox.Show(ex.ToString()); } }