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

Backport 43 fixes #760

Merged
merged 6 commits into from
Sep 7, 2023
Merged

Backport 43 fixes #760

merged 6 commits into from
Sep 7, 2023

Conversation

MarkCallow
Copy link
Collaborator

Backports the fixes for input from pipes on Windows and issue #727 to the 4.2 branch.

MarkCallow and others added 6 commits September 4, 2023 14:17
Was always broken for pipes created by Windows' shells (PowerShell and Command).
Became broken in cygwin 3.4.x for pipes created by cygwin/MSYS2/Git for Windows
shells when cygwin started mimicing the way Windows shells create pipes. The cause
is that setting the `FILE_SYNCHRONOUS_IO_NONALERT` option when creating a
pipe causes `cin.seekg(0)` on the pipe to return success when in fact seek is not
supported.

* Add launchDebugger function and --ld option to invoke it to `ktxApp` class and ktx tool
   as helpers for debugging pipes on Windows. These are only added when _WIN32 and
   DEBUG are defined.
They were being done in both `toktx` and the `imageinput` plugin.

Fixes #727.

* Move image-related utilities and image.hpp from `ktxtools` to `imageio` target for sharing
   between new and legacy tools.
* Change `toktx` to use the updated version of image.hpp.
* Make `other_Includes` a system include for `imageio` and `unittests`.
* Make `toktx`  use `imageio`'s INTERFACE includes instead of directly referencing the directories.
* Fix mismatched `new[]` and `delete` in `glloadtests`.
to stop warnings in assimp files. Clang 16.0.5 has a new warning it raises on some of the assimp headers.
@MarkCallow MarkCallow merged commit 1b9378e into 4.2 Sep 7, 2023
14 checks passed
@MarkCallow MarkCallow deleted the backport-43-fixes branch September 7, 2023 00:14
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 26, 2024
…oup#727 (KhronosGroup#760)

* Fix legacy app input from pipes on Windows. From commit 3e7fd0a.

   Was always broken for pipes created by Windows' shells (PowerShell
   and Command). Became broken in cygwin 3.4.x for pipes created by
   cygwin/MSYS2/Git for Windows shells when cygwin started mimicking
   the way Windows shells create pipes. The cause is that setting the
   `FILE_SYNCHRONOUS_IO_NONALERT` option when creating a pipe
   causes `cin.seekg(0)` on the pipe to return success when in fact seek
   is not supported.

   Add launchDebugger function and --ld option to invoke it to `ktxApp`
   class and ktx tool as helpers for debugging pipes on Windows. These
   are only added when _WIN32 and DEBUG are defined.

* Do target_type changes only in toktx. They were being done in both
  `toktx` and the `imageinput` plugin. Fixes KhronosGroup#727. From commit
  2cf053c.

  Changes included with above fix:
  - Move image-related utilities and image.hpp from `ktxtools` to `imageio`
     target for sharing between new and legacy tools.
  - Change `toktx` and `unittests` to use the updated version of image.hpp.

* Changes to make build work with latest compilers in CI services:
   - Fix mismatched `new[]` and `delete` in `glloadtests`. From commit
     3e7fd0a
   - Warning fixes for clang 14 and cmake 3.26.
   - Make other_include a SYSTEM include for loadtests (KhronosGroup#762) to stop
     warnings in assimp files. Clang 16.0.5 has a new warning it raises on
     some of the assimp headers. From commit 0feeda6.
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

Successfully merging this pull request may close these issues.

1 participant