-
Notifications
You must be signed in to change notification settings - Fork 5
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
trying to build but failing on ubuntu #2
Comments
Thank you @francispoulin for your interest in the Shingle library. The dependencies of the library in version 2 have grown to include libspud to formally manage the diverse range of option types -- and the building of this library appears to be failing here. Libspud dependency build suggestionsTo help solve this problem for you and others and generally make the setuptools build more agnostic to the underlying system the build process has been significantly simplified. All dependencies provided with the source are now build as extensions within setup.py (extensions with C++ code existed before, but this now eliminates the -lspud linking, where -flat_namespace / -Wnamespaces were used). The configure -- make build route still exists, but this Python route should make it easier. On an updated source (to release v2.0.2), you should be able to simply call:
to build the library. This runs To run through the unit tests and suite of verification test cases, assessed to expected metrics, follow this with
and
I recommend the above, but alternatively here are some other suggestions:
Note there is also a PyPI package for the Diamond GUI (spud-diamond), used to examine BRML descriptions. The PyPI dxdiff package (dxdiff) is needed with this. General dependency supportTo make sure the library builds successfully on a wide range of underlying systems, the above is tested on Travis (follow the link in this badge: ). This is tested on Ubuntu LTS versions Precise 12.04, Trusty 14.04 and Xenial 16.04, both through Docker container builds and in Travis distributions. If you find any other issues with dependencies not being found, please refer to these configuration files for lists of apt (and pip) packages -- or use the Docker files themselves directly, which eliminates any potential local configuration issues. The configuration files are in the root source tree:
Note the first has configurations for environments build up using apt packages and also instead using pip. So following this, you could install dependencies using GDAL dependencyUsing the Ubuntu All 7 Travis builds are now green ), which mean the Shingle library builds, unit tests pass and the longer verification tests are successful, following the suring up of the Python setuptools build process. I will update the manual to reflect the above, and please let me know if this helps fix the issue you have had, or if you experience any other issues. I would be very interested to hear how you are using the library and welcome input / am happy to help further. |
Thank you so much for going through the effort of updating this library for me, and the community, to use more easily. I decided to take the easiest route and simply do, $ ./configure It is still doing the last part and it looks like it's going to take some time but I wanted to let you know that there is a small problem with the unit test. Sorry if I misunderstood but what I found was the following, $ make unittest I believe that the make test worked. I see a lot of PASS and don't see any obvious errors. I also succeeded in building the docs. When I looked at 2.1 Quick Start, I started following the instructions and see that a data folder has been inserted, which isn't there in the docs. Easy to figure out but wanted to let you know. I moved into the data folder and tried the following gmsh -2 Antarctica_all_valid.geo Antarctica_all_valid.msh I am happy to see that I tried to plot the Amundsen_Sea example and that seemed to work. Now I need to figure out how to use this. In terms of my interest, I am curious to learn if I can use this software to specify idealized geometries for oceanic basins. In particular I have been developing software to solve idealized oceanic models such as Quasi-Geostrophy and Shallow Water (working on others as well) using Firedrake. You can see a demo that computes the wind-driven gyre in a square at the following: http://firedrakeproject.org/demos/qg_winddrivengyre.py.html What I am hoping to do is to do this for say the Northern Atlantic or Pacific to see what affect the coastlines have on the wind-driven gyres and the basin modes. Do you think that your software might help with this? Even it if can't, it looks very interesting and is something I would like to learn more about. |
From @francispoulin on April 15, 2017 13:28
Thanks for putting this together. I am very keen to try it out but I am still at the first phase of trying to installing it.
I believe I have installed the required libraries. One difference is I installed python-gdal on ubuntu and I have to import it using "import gdal" instead of "import GDAL" and I believe you have in the code. Not sure if that is a problem or not.
I downloaded your code and tried to build it but didn't get very far. Do you have any advice as to what I should do?
Copied from original issue: adamcandy/Shingle#3
The text was updated successfully, but these errors were encountered: