I have an open PR on LPCNet that fixes a similar issue (uint not defined)
under OSX/Clang, but perhaps it needs to be expanded to more systems if
you're getting the issue under another Linux distribution.
It seems to be that on whatever compiler/system the devs are running, there
are some implicit type definitions which aren't present on all other
systems. I've seen issues similar to this before, when moving some software
that was written on a RedHat/CentOS distro to Ubuntu. Different default
compiler settings...

In the case of Clang under OSX, I had to include <sys/types.h>, and
manually add the uint definition. See the PR here:
https://github.com/drowe67/LPCNet/pull/5/files
I suspect the PR may need to be modified.

73
Mark VK5QI

On Mon, Apr 22, 2019 at 11:05 PM Richard Shaw <[email protected]> wrote:

> I decided to see how current codec2/brad-2020 and LPCNet/master would
> build for windows.
>
> Codec2 built find after I fixed the README->README.md reference in the
> CPack setup but I got the following error building LPCNet. Gcc version
> 8.3.0.
>
> [ 45%] Building C object src/CMakeFiles/idct.dir/idct.c.obj
> cd /home/build/mingw64/LPCNet/src && /usr/bin/x86_64-w64-mingw32-gcc
> @CMakeFiles/idct.dir/includes_C.rsp -Wall -W -Wextra -Wno-unused-function
> -O3 -g -I. -MD    -o CMakeFiles/idct.dir/idct.c.obj   -c
> /home/build/git/LPCNet/src/idct.c
> /home/build/git/LPCNet/src/idct.c: In function 'main':
> /home/build/git/LPCNet/src/idct.c:31:5: error: unknown type name 'uint';
> did you mean 'int'?
>      uint ret;
>      ^~~~
>      int
> /home/build/git/LPCNet/src/idct.c:32:5: error: unknown type name 'uint';
> did you mean 'int'?
>      uint stride = NB_BANDS;
>      ^~~~
>      int
> /home/build/git/LPCNet/src/idct.c:66:5: error: unknown type name 'uint';
> did you mean 'int'?
>      uint i; for(i=0; i<stride; i++) Ly[stride] = 0.0;
>      ^~~~
>      int
> /home/build/git/LPCNet/src/idct.c:68:52: warning: comparison of integer
> expressions of different signedness: 'size_t' {aka 'long long unsigned
> int'} and 'int' [-Wsign-compare]
>      while(fread(dctLy, sizeof(float), stride, fin) == stride) {
>                                                     ^~
>
> Thanks,
> Richard
> KF5OIM
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to