CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.96k stars 1.38k forks source link

Warnings while installing CGAL using vpckg #4544

Closed cgarmstr closed 4 years ago

cgarmstr commented 4 years ago

Please use the following template to help us solving your issue.

Issue Details

I have been attempting to install CGAL with vcpkg, https://doc.cgal.org/latest/Manual/windows.htmlhttps://doc.cgal.org/latest/Manual/windows.html

Describe your issue. Please be specific (compilation error, runtime error, unexpected behavior, wrong results, etc.). After running cmake-gui.exe the output is: Targetting Visual Studio 16 2019 Target build enviroment supports auto-linking Using VC toolset 141. Generator uses intermediate configuration directory: $(Configuration) Boost version: 1.72.0 Boost include dirs: C:/Users/cecil/vcpkg/installed/x86-windows/include Boost libraries:
NOTICE: The example draw_triangulation_2 requires Qt and will not be compiled. Configuring done WARNING: Target "constrained_plus" requests linking to directory "C:\Users\cecil\vcpkg\installed\x86-windows\share\mpfr". Targets may link only to libraries. CMake is dropping the item.

plus many other similar errors.

Note also that Boost_DIR is not found. What am I looking for?

image image

Source Code

/CGAL-5.0.1/examples/Triangulation_2

Environment

maxGimeno commented 4 years ago
cgarmstr commented 4 years ago

Tried .\vcpkg install cgal[qt] 5.0.2. Build failed with a different error, see attached. error-msg.txt

maxGimeno commented 4 years ago

Looks like a cache problem. You can try to clear your build directory and try again

cgarmstr commented 4 years ago

I cleared the vcpkg\downloads directory and tried again. There is no file https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip

Sorry to be a pain!

PS C:\Users\cecil\vcpkg> .\vcpkg install cgal[qt] Computing installation plan... The following packages will be built and installed: cgal[core,qt]:x86-windows

maxGimeno commented 4 years ago

This time it looks like a bug in other packages than CGAL. You could try the x64 versions instead of the x86, just in case. You can try vcpkg.exe install cgal[qt]:x64-windows

lrineau commented 4 years ago

There is no file PowerShell/PowerShell@v6.2.1 PowerShell-6.2.1-win-x86.zip (download)

That links works for me. Try to install Powershell on your machine before you run vcpkg.

Frank-Dz commented 4 years ago

I learned that if I want to install CGAL with qt5, I can use the command .\vcpkg.exe install cgal[qt]:x64-windows But if I want to install Ceres for smoothing method. what should I do? Should I firstly install the Ceres then install the CGAL? Further, if I want to install ALL the necessary packages for the lastest CGAL via vcpkg, is there some guidance I can follow? I have read the tutorial: https://doc.cgal.org/latest/Manual/windows.html But I still didn't find the corresponding commands for vcpkg. (I know that some pkgs are not distributed on VCPKG)

Best, Frank

Frank-Dz commented 4 years ago

I cleared the vcpkg\downloads directory and tried again. There is no file https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip

Sorry to be a pain!

PS C:\Users\cecil\vcpkg> .\vcpkg install cgal[qt] Computing installation plan... The following packages will be built and installed: cgal[core,qt]:x86-windows

  • eigen3[core]:x86-windows
  • freeglut[core]:x86-windows
  • jasper[core]:x86-windows
  • libpq[core,openssl,zlib]:x86-windows
  • libwebp[core,nearlossless,simd,unicode]:x86-windows
  • opengl[core]:x86-windows
  • openssl[core]:x86-windows
  • openssl-windows[core]:x86-windows
  • pcre2[core]:x86-windows
  • qt5-3d[core]:x86-windows
  • qt5-activeqt[core]:x86-windows
  • qt5-base[core]:x86-windows
  • qt5-declarative[core]:x86-windows
  • qt5-gamepad[core]:x86-windows
  • qt5-imageformats[core]:x86-windows
  • qt5-script[core]:x86-windows
  • qt5-svg[core]:x86-windows
  • qt5-tools[core]:x86-windows
  • qt5-xmlpatterns[core]:x86-windows
  • sqlite3[core]:x86-windows Additional packages (*) will be modified to complete this operation. Starting package 1/21: openssl-windows:x86-windows Building package openssl-windows[core]:x86-windows... A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1... Downloading powershell-core... https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> C:\Users\cecil\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip WinHttpQueryDataAvailable() failed: 12175

Since you deleted all the packages in download fold. Some necessary pkgs for vcpkg are also removed. https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip is usually associated with running VCPKG through Powershell, and you should not delete it.

maxGimeno commented 4 years ago

@Frank-Dz must be right, I misread your last response. When I said to clear your build directory I meant the directory in which you were tryng to build the examples, not the download directory. You might have to re-install vcpkg now :/

For Ceres, you should be able to get from here. Once installed, you will probably have to fill in the Ceres related variables in the configuration step of your CGAL program. I think the variable you are looking for is Ceres_DIR, that must be the directory containing the CMake-config.txt or something like that.

Frank-Dz commented 4 years ago

@Frank-Dz must be right, I misread your last response. When I said to clear your build directory I meant the directory in which you were tryng to build the examples, not the download directory. You might have to re-install vcpkg now :/

For Ceres, you should be able to get from here. Once installed, you will probably have to fill in the Ceres related variables in the configuration step of your CGAL program. I think the variable you are looking for is Ceres_DIR, that must be the directory containing the CMake-config.txt or something like that.

OK. That means if I directly install the cgal[qt] via VCPKG, I still can not use Ceres, right? But actually, I have successfully installed Ceres and tried to specify the Ceres_DIR: See my post in cgal-discussion There are always some errors. I will try it again, and report something if there are still some problems.

Thanks! Best, Frank

maxGimeno commented 4 years ago

I just checked, Ceres is available on vcpkg. Just vcpkg.exe install ceres:x64-windows and that's all. As long as you don't forget to use the toolchain in cmake you shouldn't have to worry about anything.

Frank-Dz commented 4 years ago

OK! Thanks again! I have successfully installed Ceres (via VCPKG). Currently I am dealing with another problem with VCPKG. The download speed is very very slow while installing cgal. I think I'd better back to cmake rather than using VCPKG. (I have set the proxy according my VPN setting)

.\vcpkg.exe install cgal[qt]:x64-windows Computing installation plan... The following packages will be built and installed:

Anyway, Thanks again!

Best, Frank On 2/27/2020 16:42,Maxime GIMENOnotifications@github.com wrote:

I just checked, Ceres is available on vcpkg. Just vcpkg.exe install ceres:x64-windows and that's all. As long as you don't forget to use the toolchain in cmake you shouldn't have to worry about anything.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

cgarmstr commented 4 years ago

I gave up on using vcpkg and used the CGAL installer instead with success. As https://github.com/Frank-Dz commented above, it looks like vcpkg is timing out. PS What is a good source of more simple examples? It's a very long time since I did any C++ programming - how do you walk through a triangulation outputting the indices (or similar) of the faces, vertices etc?

Frank-Dz commented 4 years ago

I gave up on using vcpkg and used the CGAL installer instead with success. As https://github.com/Frank-Dz commented above, it looks like vcpkg is timing out. PS What is a good source of more simple examples? It's a very long time since I did any C++ programming - how do you walk through a triangulation outputting the indices (or similar) of the faces, vertices etc?

Hi@cgarmstr, currently, I successfully installed CGAL with QT5. There are many many many problems while installing. I wrote down the process in Chinese. I am not sure if it is helpful. https://blog.csdn.net/OOFFrankDura/article/details/104530955 Timeout problem is easy to solve. Set your proxy or download them manually. If you wanna install QT there will be a big problem since msys2 seems not very easy to install.

Best, Frank

cgarmstr commented 4 years ago

Hi Frank

I followed a YouTube video (can’t find which one) on installing Qt and the CGAL routines like draw_triangulation worked fine afterwards. I was installing on Windows 10 and using Visual Studio 19 at the generator, so I didn’t need msys2.

What I really want to do now is use the Python interface to CGAL …

Cecil

From: Zhiyang-Dou notifications@github.com Sent: 06 March 2020 09:22 To: CGAL/cgal cgal@noreply.github.com Cc: Cecil Armstrong cecilgarmstrong@hotmail.com; State change state_change@noreply.github.com Subject: Re: [CGAL/cgal] Warnings while installing CGAL using vpckg (#4544)

I gave up on using vcpkg and used the CGAL installer instead with success. As https://github.com/Frank-Dzhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFrank-Dz&data=02%7C01%7C%7Cde4370f122f744b704b108d7c1afc29d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190832929748300&sdata=Pp%2BegN61XCDFqspezdEbdEtWVWTx0InE%2F6KLhXDvGAw%3D&reserved=0 commented above, it looks like vcpkg is timing out. PS What is a good source of more simple examples? It's a very long time since I did any C++ programming - how do you walk through a triangulation outputting the indices (or similar) of the faces, vertices etc?

Hi@cgarmstr, currently, I successfully installed CGAL with QT5. There are many many many problems while installing. I wrote down the process in Chinese. I am not sure if it is helpful. https://blog.csdn.net/OOFFrankDura/article/details/104530955https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.csdn.net%2FOOFFrankDura%2Farticle%2Fdetails%2F104530955&data=02%7C01%7C%7Cde4370f122f744b704b108d7c1afc29d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190832929758302&sdata=QiyUSOlHyYD4Qrvtiw2VQvZN%2BhmQGUJMsYLR5nvh36k%3D&reserved=0 Timeout problem is easy to solve. Set your proxy or download them manually. If you wanna install QT there will be a big problem since msys2 seems not very easy to install.

Best, Frank

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCGAL%2Fcgal%2Fissues%2F4544%3Femail_source%3Dnotifications%26email_token%3DABYRB6LSZT76ZY3B5XA36PDRGC6BZA5CNFSM4K3MLG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOAVGYY%23issuecomment-595678051&data=02%7C01%7C%7Cde4370f122f744b704b108d7c1afc29d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190832929758302&sdata=Yc%2B%2FH6NFSddnePJg22%2F3t70ce1RpyDPfGJqxJBvOLJg%3D&reserved=0, or unsubscribehttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABYRB6O3DSWUBSPK25ZCDW3RGC6BZANCNFSM4K3MLG4Q&data=02%7C01%7C%7Cde4370f122f744b704b108d7c1afc29d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190832929768315&sdata=cCt6y%2Fh2CVwbmWBhLZW4k5A0QLEWpezPw5NxIcj0gfc%3D&reserved=0.

maxGimeno commented 4 years ago

@cgarmstr for python you should wait a little if possible, I'm currently working on a pip package. If you can't wait, you should check this out.

cgarmstr commented 4 years ago

From: Maxime GIMENO notifications@github.com Sent: 06 March 2020 12:44 To: CGAL/cgal cgal@noreply.github.com Cc: Cecil Armstrong cecilgarmstrong@hotmail.com; Mention mention@noreply.github.com Subject: Re: [CGAL/cgal] Warnings while installing CGAL using vpckg (#4544)

@cgarmstrhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcgarmstr&data=02%7C01%7C%7Cce0fd65ee9ca479e5b3108d7c1cc08c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190954364625920&sdata=C18amXDAaa4MrotoIyH8P6Ta8Nb4rNTdRl9mlvofFEY%3D&reserved=0 for python you should wait a little if possible, I'm currently working on a pip package.

Excellent, great news! I look forward to hearing about it.

If you can't wait, you should check thishttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCGAL%2Fcgal-swig-bindings%2Fwiki%2FInstallation&data=02%7C01%7C%7Cce0fd65ee9ca479e5b3108d7c1cc08c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190954364625920&sdata=il0lQYzPUNhJvtbr%2F%2BeFqz4GLfQkmfym%2BDlK8saiD1I%3D&reserved=0 out.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCGAL%2Fcgal%2Fissues%2F4544%3Femail_source%3Dnotifications%26email_token%3DABYRB6KDOVQ2N7HG4XMOHA3RGDVYXA5CNFSM4K3MLG42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOBHG6A%23issuecomment-595751800&data=02%7C01%7C%7Cce0fd65ee9ca479e5b3108d7c1cc08c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190954364635929&sdata=Xl7q5zEmxtqMZTaG1na9mOp8pOleFt%2Fyj38cLH30dgk%3D&reserved=0, or unsubscribehttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABYRB6MI2ZFBSTGZDEPKWHTRGDVYXANCNFSM4K3MLG4Q&data=02%7C01%7C%7Cce0fd65ee9ca479e5b3108d7c1cc08c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637190954364645937&sdata=xM1K70ftvDWKkyE%2BY1RvOJND9yPDNxdvxOqMxRhZ9PI%3D&reserved=0.

Frank-Dz commented 4 years ago

@cgarmstr for python you should wait a little if possible, I'm currently working on a pip package. If you can't wait, you should check this out.

That's great! Looking forward to your great job!

cgarmstr commented 4 years ago

@cgarmstr for python you should wait a little if possible, I'm currently working on a pip package. If you can't wait, you should check this out.

Any timescale on the Python pip package? Thanks.

maxGimeno commented 4 years ago

@cgarmstr for python you should wait a little if possible, I'm currently working on a pip package. If you can't wait, you should check this out.

Any timescale on the Python pip package? Thanks.

Not really, I'm kind of stuck with some dependencies that I can't get to work on windows.