Coder Social home page Coder Social logo

boyquotes / godgal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r8vnhill/godgal

0.0 0.0 0.0 17.2 MB

Can you use CGAL from Godot? Find out next week in GodGAL

License: Creative Commons Attribution 4.0 International

C++ 20.01% Python 22.32% PowerShell 41.10% GDScript 11.55% CMake 5.01%

godgal's Introduction

GodGAL: Godot Geometry Algorithms Library

http://creativecommons.org/licenses/by/4.0/

The answer to the eternal question: Can you use CGAL from Godot?

Table of Contents

Pre-requisites

Powershell functions to install the pre-requisites on Windows can be found here.

You can install all the needed dependencies (except Boost) using:

. .\PS_Scripts\install_commands.ps1
Install-GodgalDependencies

Alternatively, you can install the dependencies manually as explained below.

7-zip

7-zip is recommended to install the dependencies.

Windows

To install 7-zip we recommend using Chocolatey. Chocolatey can be installed by doing:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Invoke-WebRequest 'https://chocolatey.org/install.ps1' -UseBasicParsing | Invoke-Expression

Then installing 7-zip is as simple as running:

choco.exe install 7zip

CGAL

We first need to install a CGAL distribution, this can be done by running:

Invoke-WebRequest `
  -Uri '"https://github.com/CGAL/cgal/releases/download/v5.3.1/CGAL-5.3.1.zip' `
  -OutFile 'CGAL-5.3.1.zip'
7z.exe x 'CGAL-5.3.1.zip'

Then, we have to install GMP, similar to CGAL, we can do that as follows:

Set-Location 'CGAL-5.3.1'
Invoke-WebRequest `
  -Uri '"https://github.com/CGAL/cgal/releases/download/v5.3.1/CGAL-5.3.1-win64-auxiliary-libraries-gmp-mpfr.zip' `
  -OutFile 'CGAL-5.3.1-win64-auxiliary-libraries-gmp-mpfr.zip'
7z.exe x 'CGAL-5.3.1-win64-auxiliary-libraries-gmp-mpfr.zip'

Boost

To setup Boost you first need to download the installer from SourceForge. The installer will ask you to select an install directory, set it to something like D:\Tools\boost_1_78_0.

Next, set the following environmental variables:

  • BOOST_LIBRARYDIR = D:\Tools\boost_1_78_0\lib64-msvc-14.2
  • BOOST_INCLUDEDIR = D:\Tools\boost_1_78_0

Finally, add the folder D:\Tools\boost_1_78_0\lib64-msvc-14.2 to the PATH environmental variable.

Building for Windows

To build the project on Windows you can use the Powershell script provided in the repo:

# From the repository's root
& .\rebuild_win_x64.ps1

godgal's People

Contributors

r8vnhill avatar beltranamenabar avatar beanyann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.