Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detail(s) in the script "build_gdl.sh" #1773

Open
alaingdl opened this issue Mar 6, 2024 · 4 comments
Open

detail(s) in the script "build_gdl.sh" #1773

alaingdl opened this issue Mar 6, 2024 · 4 comments

Comments

@alaingdl
Copy link
Contributor

alaingdl commented Mar 6, 2024

This script is working fine ! thanks

1/ Should be simple, but :

On a fresh copy (or git clone) the script need an extra step : git submodule update --init

Could you add this line git submodule update --init or the alternative with -- recursive
at the right place in the script ?

I tried to find the place, without success

2/ more tricky

Could also possible to easily switch off packages in the first stages of the script ?
EG : I don't need Qhull, and also on U20 & U18 we do have trouble with Image Magick
(a sub packet is broken/missing)

@GillesDuvert
Copy link
Contributor

@alaingdl as for general user the script is only available after getting the gdl sources, and mostly by downloading the release tarball, not by using git, it cannot be possible to use a git command in it for general use. build_gdl.sh could however make some introspection (?) to deduce it was the product of a git clone command, and in this case issue a git submodule update --init in the section called by build_gdl.sh prep, but that begins to be complicated...

Concerning the second request, I think it is easy to overwrite all the cmake -DXXX options found in build_gdl.sh, this is basic bash after all.

@pjb7687
Copy link
Member

pjb7687 commented Mar 7, 2024

  1. I think you can check the existence of the submodule with 'if' statement first. If it does not exist, then issue submodule update command. If the source tree is from tarball, then the directory will exist then no git command will be issued; otherwise, it should have been cloned via git, and git submodule update will work

  2. You can already do this with env vars. e.g.,

WITH_GRAPHICSMAGICK=OFF ./build_gdl.sh build

However at the moment QHULL is mandatory and cannot be omitted.

@brandy125
Copy link

brandy125 commented Mar 7, 2024 via email

@GillesDuvert
Copy link
Contributor

WITH_GRAPHICSMAGICK=OFF ./build_gdl.sh build does not seem to work on OSX ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants