Skip to content
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

'UINT_MAX’ was not declared in this scope #99

Open
T35R6braPwgDJKq opened this issue Feb 10, 2022 · 1 comment
Open

'UINT_MAX’ was not declared in this scope #99

T35R6braPwgDJKq opened this issue Feb 10, 2022 · 1 comment

Comments

@T35R6braPwgDJKq
Copy link

[ 60%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o
/mnt/ssd/pikaur/build/vobsub2srt-git/src/vobsub2srt/src/vobsub2srt.c++: In function ‘int main(int, char**)’:
/mnt/ssd/pikaur/build/vobsub2srt-git/src/vobsub2srt/src/vobsub2srt.c++:301:32: error: ‘UINT_MAX’ was not declared in this scope
  301 |     if(conv_subs[i].end_pts == UINT_MAX && i+1 < conv_subs.size())
      |                                ^~~~~~~~
/mnt/ssd/pikaur/build/vobsub2srt-git/src/vobsub2srt/src/vobsub2srt.c++:37:1: note: ‘UINT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
   36 | #include "cmd_options.h++"
  +++ |+#include <climits>
   37 | 
make[2]: *** [src/CMakeFiles/vobsub2srt.dir/build.make:76: src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:187: src/CMakeFiles/vobsub2srt.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

tried to build with pikaur -S vobsub2srt-git
is an include missing?

@T35R6braPwgDJKq
Copy link
Author

./configure 
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Source: /tmp/VobSub2SRT
-- Binary: /tmp/VobSub2SRT/build
-- Build type: Debug
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test TESSERACT_NAMESPACE
-- Performing Test TESSERACT_NAMESPACE - Success
-- Found Tesseract: /usr/lib/libtesseract.so;/usr/lib/libtiff.so  
-- Bash completion path: /usr/share/bash-completion/completions
-- vobsub2srt version: 1.0pre7-21-g6cb41be
-- dpkg not found: No package generation.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/VobSub2SRT/build

make
make -C build
make[1]: Entering directory '/tmp/VobSub2SRT/build'
make[2]: Entering directory '/tmp/VobSub2SRT/build'
make[3]: Entering directory '/tmp/VobSub2SRT/build'
make[3]: Leaving directory '/tmp/VobSub2SRT/build'
make[3]: Entering directory '/tmp/VobSub2SRT/build'
[ 10%] Building C object mplayer/CMakeFiles/mplayer.dir/mp_msg.c.o
[ 20%] Building C object mplayer/CMakeFiles/mplayer.dir/spudec.c.o
[ 30%] Building C object mplayer/CMakeFiles/mplayer.dir/unrar_exec.c.o
[ 40%] Building C object mplayer/CMakeFiles/mplayer.dir/vobsub.c.o
[ 50%] Linking C static library ../lib/libmplayer.a
make[3]: Leaving directory '/tmp/VobSub2SRT/build'
[ 50%] Built target mplayer
make[3]: Entering directory '/tmp/VobSub2SRT/build'
make[3]: Leaving directory '/tmp/VobSub2SRT/build'
make[3]: Entering directory '/tmp/VobSub2SRT/build'
[ 60%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o
/tmp/VobSub2SRT/src/vobsub2srt.c++: In function ‘int main(int, char**)’:
/tmp/VobSub2SRT/src/vobsub2srt.c++:311:32: error: ‘UINT_MAX’ was not declared in this scope
  311 |     if(conv_subs[i].end_pts == UINT_MAX && i+1 < conv_subs.size())
      |                                ^~~~~~~~
/tmp/VobSub2SRT/src/vobsub2srt.c++:37:1: note: ‘UINT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
   36 | #include "cmd_options.h++"
  +++ |+#include <climits>
   37 | 
make[3]: *** [src/CMakeFiles/vobsub2srt.dir/build.make:76: src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1
make[3]: Leaving directory '/tmp/VobSub2SRT/build'
make[2]: *** [CMakeFiles/Makefile2:187: src/CMakeFiles/vobsub2srt.dir/all] Error 2
make[2]: Leaving directory '/tmp/VobSub2SRT/build'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/tmp/VobSub2SRT/build'
make: *** [Makefile:4: all] Error 2

same with
https://github.com/bubonic/VobSub2SRT

@bubonic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant