SoftwareNetwork / sw

Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
https://software-network.org
Other
113 stars 24 forks source link

Newest libraries opencv-gdal seem broken #108

Closed Ottunger closed 1 year ago

Ottunger commented 1 year ago

Describe the bug Newest sw downloaded. Since libraries were updated, previous build fail with error below:

Exception in file D:/dev/cppan2/client2/src/sw/builder/command.cpp:840, function execute1: When executing: [org.sw.demo.intel.opencv.imgcodecs-4.6.0]/modules/imgcodecs/src/loadsave.cpp
In file included from C:/Users/Ottunger/.sw/storage/pkg/71/8f/ac01/src/sdir/modules/imgcodecs/src/loadsave.cpp:47:
In file included from C:/Users/Ottunger/.sw/storage/pkg/71/8f/ac01/src/sdir/modules/imgcodecs/src/grfmts.hpp:58:
In file included from C:/Users/Ottunger/.sw/storage/pkg/71/8f/ac01/src/sdir/modules/imgcodecs/src/grfmt_gdal.hpp:56:
In file included from C:/Users/Ottunger/.sw/storage/pkg/1d/ab/255c/src/sdir/gcore/gdal_priv.h:61:
C:/Users/Ottunger/.sw/storage/pkg/1d/ab/255c/src/sdir/gcore/gdal.h:44:10: fatal error: 'gdal_version.h' file not found
#include "gdal_version.h"
         ^~~~~~~~~~~~~~~~
1 error generated.
command failed: exit code = 1
command is copied to C:\Users\Ottunger\Desktop\dev\satoris-ocr\.sw\rsp\10763957205095555198.bat

And the contents of the command file:

@echo off

setlocal

echo [org.sw.demo.intel.opencv.imgcodecs-4.6.0]/modules/imgcodecs/src/loadsave.cpp

cd C:\Users\Ottunger\.sw\storage\pkg\71\8f\ac01\obj\bld\284492\obj

"C:/Users/Ottunger/Desktop/dev/cmdline-tools/sdk/ndk/25.0.8775105/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang++.cmd" "@C:/Users/Ottunger/Desktop/dev/satoris-ocr/.sw/rsp/10763957205095555198.rsp" %*

if %ERRORLEVEL% NEQ 0 echo Error code: %ERRORLEVEL% && exit /b %ERRORLEVEL%

Expected behavior Build would continue to work.

To Reproduce This happens after sw auto upgraded libraries version, I guess minor version?

We do not fix version:

t += "org.sw.demo.intel.opencv.imgcodecs"_dep;
t += "org.sw.demo.intel.opencv.video"_dep;
t += "org.sw.demo.intel.opencv.videoio"_dep;
t += "org.sw.demo.google.tesseract.libtesseract"_dep;

Maybe a rollback of version would be enough?

Information:

Ottunger commented 1 year ago

Update:

In this directory C:\Users\Ottunger.sw\storage\pkg\1d\ab\255c\src\sdir\gcore If I copy the file gdal_version.h.in to gdal_version.h , and keep both, the build succeeds.

Ottunger commented 1 year ago

Probably has something to do with the configure script of the library:

gcore
egorpugin commented 1 year ago

Yes, they recently made some changes around this.

Ottunger commented 1 year ago

Should we ping them about this? How?

egorpugin commented 1 year ago

No, I fixed sw package.