NOAA-EMC / NCEPLIBS-bacio

This library performs binary I/O for the NCEP models.
Other
2 stars 6 forks source link

how generate bacio_4.a #152

Open aminekhedim opened 5 months ago

aminekhedim commented 5 months ago

i am following step of bacio s compilation but I generated just libbacio.a i need libbacio_4.a to compiler wavewatch in ncep 2 this is error message when I tied compiled model Build with switch: /home/amine/WW3/model/bin/switch_Ifremer1 -- Found NetCDF: /home/amine/libs/include (found version "4.1.2") found components: Fortran -- FindNetCDF defines targets: -- - NetCDF_VERSION [4.1.2] -- - NetCDF_PARALLEL [FALSE] -- - NetCDF_C_CONFIG_EXECUTABLE [/home/amine/libs/bin/nc-config] -- - NetCDF::NetCDF_C [SHARED] [Root: /home/amine/libs] Lib: /home/amine/libs/lib/libnetcdf.so -- - NetCDF_Fortran_CONFIG_EXECUTABLE [NetCDF_Fortran_CONFIG_EXECUTABLE-NOTFOUND] -- - NetCDF::NetCDF_Fortran [SHARED] [Root: /home/amine/libs] Lib: /home/amine/libs/lib/libnetcdff.so -- Found g2: /home/amine/NCEP_LIBS/lib/libg2_4.a (found version "3.5.0") -- Found bacio: /home/amine/NCEP_LIBS/lib/libbacio.a (found version "2.6.0") -- Found bacio: /home/amine/NCEP_LIBS/lib/libbacio.a (found version "2.6.0") -- Found w3emc: /home/amine/NCEP_LIBS/lib/libw3emc_4.a (found version "2.11.0") -- Copying switch.io to /home/amine/WW3/build/regtests/unittests -- Copying ww3_grid.inp to /home/amine/WW3/build/regtests/unittests/ww3_grid.inp -- Configuring done CMake Error at model/src/CMakeLists.txt:201 (add_executable): Target "ww3_grib" links to target "bacio::bacio_4" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? bacio_4 not found

edwardhartnett commented 5 months ago

Build an older version of bacio or change your makefile to look for bacio instead of bacio_4.

DWesl commented 1 month ago

From a comment on #25, versions less than 2.5.0 would be the ones with bacio_4.

It doesn't look like you would need bacio_8, so changing bacio::bacio_4 to bacio::bacio in model/src/CMakeLists.txt should work.