[BUG] CMake does not work with Visual Studio #348

Closed
opened 2026-01-29 16:41:36 +00:00 by claunia · 0 comments
Owner

Originally created by @harrynull on GitHub (Dec 2, 2017).

Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].

CCExtractor version (using the --version parameter preferably) : 0.85

In raising this issue, I confirm the following (please check boxes, eg [X]):

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.

My familiarity with the project is as follows (check one, eg [X]):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Necessary information

  • Is this a regression (did it work before)? [ ] NO | [ ] YES - please specify the last known working version
  • What platform did you use? [X] Windows - [ ] Linux - [ ] Mac
  • What where the used arguments? N/A

Video links

N/A

Additional information

CMake does not work with Visual Studio. Following errors raises when I was trying to compile it using the .sln file generated by CMake:

1>base_encoding.c
1>d:\gitprojects\ccextractor\src\zlib\zconf.h(452): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
1>bitstream.c
1>mp4.c
1>d:\gitprojects\ccextractor\src\lib_ccx\stdintmsc.h(90): error C2371: 'int_fast16_t': redefinition; different basic types
1>d:\gitprojects\ccextractor\src\lib_ccx\stdintmsc.h(94): error C2371: 'uint_fast16_t': redefinition; different basic types
1>os_divers.c
1>D:\GitProjects\ccextractor\src\gpacmp4\os_divers.c(57): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
1>os_file.c
1>D:\GitProjects\ccextractor\src\gpacmp4\os_file.c(44): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
2>cl : Command line error D8021: invalid numeric argument '/Wno-write-strings'
2>Done building project "ccextractor.vcxproj" -- FAILED.

CMake version used: 3.7.2

However, windows\ccextractor.sln works.

Originally created by @harrynull on GitHub (Dec 2, 2017). Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION]. CCExtractor version (using the --version parameter preferably) : 0.85 **In raising this issue, I confirm the following (please check boxes, eg [X]):** - [X] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. - [X] I have checked that the issue I'm posting isn't already reported. - [X] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues) - [X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. - [X] I have used the latest available version of CCExtractor to verify this issue exists. **My familiarity with the project is as follows (check one, eg [X]):** - [ ] I have never used CCExtractor. - [X] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [ ] I am an active contributor to CCExtractor. **Necessary information** - Is this a regression (did it work before)? [ ] NO | [ ] YES - *please specify the last known working version* - What platform did you use? [X] Windows - [ ] Linux - [ ] Mac - What where the used arguments? N/A **Video links** N/A **Additional information** CMake does not work with Visual Studio. Following errors raises when I was trying to compile it using the .sln file generated by CMake: ``` 1>base_encoding.c 1>d:\gitprojects\ccextractor\src\zlib\zconf.h(452): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 1>bitstream.c 1>mp4.c 1>d:\gitprojects\ccextractor\src\lib_ccx\stdintmsc.h(90): error C2371: 'int_fast16_t': redefinition; different basic types 1>d:\gitprojects\ccextractor\src\lib_ccx\stdintmsc.h(94): error C2371: 'uint_fast16_t': redefinition; different basic types 1>os_divers.c 1>D:\GitProjects\ccextractor\src\gpacmp4\os_divers.c(57): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory 1>os_file.c 1>D:\GitProjects\ccextractor\src\gpacmp4\os_file.c(44): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 2>cl : Command line error D8021: invalid numeric argument '/Wno-write-strings' 2>Done building project "ccextractor.vcxproj" -- FAILED. ``` CMake version used: 3.7.2 However, windows\ccextractor.sln works.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#348