-
Notifications
You must be signed in to change notification settings - Fork 14
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
starting to rebuild cmake build system #78
Conversation
@webisu it's failing like this, any idea why?
|
The makefile should copy the proj_api.h from the proj source code directory
to the include directory (grib2/include). Appears that I copied proj_api.h
from
the proj source code to the include by hand. Never noticed because the
proj code was only there for testing the gctpc library, I haven't compared
gctpc
to the proj library in years, and the proj code was never exercised in
years. That all changed
with the UK Met Office started using a grid that was supported by proj
but not gctpc.
…On Fri, Jan 5, 2024 at 2:22 PM Edward Hartnett ***@***.***> wrote:
@webisu <https://github.com/webisu> it's failing like this, any idea why?
/home/runner/work/wgrib2/wgrib2/wgrib2/wgrib2/Proj4.c:21:10: fatal error: proj_api.h: No such file or directory
21 | #include "proj_api.h"
| ^~~~~~~~~~~~
compilation terminated.
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZQJRA3K6G336LXAP63YNBHILAVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGE2TKMJXHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Any reason not to make a permanent copy of proj_api.h? |
@webisu there is no proj_api.h anywhere in the repo. Where should I copy it from? |
It should be in proj-4.8.0/src/
…On Mon, Jan 8, 2024 at 11:36 AM Edward Hartnett ***@***.***> wrote:
@webisu <https://github.com/webisu> there is no proj_api.h anywhere in
the repo. Where should I copy it from?
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZRFIWHEUDO4LXMEEGTYNQOB5AVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGQZTGNZZGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@webisu so I unpacked the proj4 tarball and found the proj_api.h file. But there is no grib2/include directory anywhere in the repo:
|
Right now wgrib2 is using proj-4.8.0 and right now they are on proj 9.3.1.
It hasn't been a priority to remain current with proj because proj was
only used by developers to test gctpc. However, wgrib2 v3.1.2 made
proj a default library to handle aspherical equal area Lambert. So
proj 9.3.1 needs to be tested, and the proj_api.h should be
obtained from the proj 9.3.1 source code.
…On Mon, Jan 8, 2024 at 11:35 AM Edward Hartnett ***@***.***> wrote:
Any reason not to make a permanent copy of proj_api.h?
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZVZCVWAKAGSMAKHTILYNQN53AVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGQZTCNBTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Check ./include. grib2 is the base directory in the makefile build
which became wgrib2 in the cmake build.
…On Mon, Jan 8, 2024 at 11:52 AM Edward Hartnett ***@***.***> wrote:
@webisu <https://github.com/webisu> so I unpacked the proj4 tarball and
found the proj_api.h file.
But there is no grib2/include directory anywhere in the repo:
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZROCPVTGE2TXWIVCQ3YNQP3NAVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGQ3DCOBZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There is no include directory in the repo. Is it create by the makefile or some other way? What should be in it, other than proj_api.h? |
Every library has includes, compiled libraries and potentially *.mod files.
I put the
*,h into ./include
compiled libraries int ./lib
*.mod into ./lib (bad choise)
How do you plan to handle the situation?
BTW there is a makefile in the ./lib directory. This makefile
takes all the compiled libraries and merges them into one big library.
…On Mon, Jan 8, 2024 at 12:10 PM Edward Hartnett ***@***.***> wrote:
There is no include directory in the repo.
Is it create by the makefile or some other way?
What should be in it, other than proj_api.h?
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZXXC3TD7DEYPHY75PDYNQSBXAVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGQ4TMMZVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Well in normal installs, there are usually two include directories. One is part of the source tree, and one is created on install in the install location. The install include will only have public include files. That is, files you want your users to include. The repo include directory will have these files, and also any internal .h files. For example, netcdf-c has an include directory https://github.com/Unidata/netcdf-c/tree/main/include, and when you install netcdf-c, it creates an include directory as part of the install, and copies some of the .h files there. But the install include directory cannot be used in the build. It's created after the build it complete. So I have moved a copy of proj_api.h to the wgrib2 directory. Currently you are using the wgrib2 directory as your include directory:
By the end of our work on wgrib2, almost all of these will be removed |
OK, lots of progress but now it is failing with this. @webisu do you know what is happening?
|
@webisu any idea why the build is not working? See message above for output... |
Ed,
What source do I have to download?
Where are the build instructions?
Wesley
…On Wed, Jan 10, 2024 at 10:05 AM Edward Hartnett ***@***.***> wrote:
@webisu <https://github.com/webisu> any idea why the build is not
working? See message above for output...
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZRLOB7M565RJHGV5ZLYN2U27AVCNFSM6AAAAABBLFF6Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGAZDCNJWGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Take a look here to see all the output: https://github.com/NOAA-EMC/wgrib2/actions/runs/7464889377/job/20312855802?pr=78 |
Part of #60.