ConPty in CMake/Qt project - pipes don't work #584

Open
opened 2026-01-30 21:56:11 +00:00 by claunia · 0 comments
Owner

Originally created by @kafeg on GitHub (Mar 17, 2019).

Hello!

I try to create Qt binding for ConPty and I use CMake as build-system for my project. And my problem is: ConPty doesn't write its own output to a pipe, it just write all into stdout of my main process. As if a child and my parent stdout channels merged. I try to create a realization with named and anonymous pipes (from EchoCon example), but it both fail =(

I don't know what I do wrong - all my code are the same of EchoCon example, but project not work as expected.

Information about my system:

  • Microsoft Windows [Version 10.0.18342.8]
  • Windows SDK Version 10.0.18346.0

I build my project with cmake in Qt Creator with MSVC. I double checked, cmake use latest available SDK. Also original EchoCon sample is working fine on my system, but copied from it code built with cmake - not =(

You can find not working code here: https://github.com/kafeg/ptyqt/blob/master/core/conptyanonymouspipeprocess.cpp

Originally created by @kafeg on GitHub (Mar 17, 2019). Hello! I try to create Qt binding for ConPty and I use CMake as build-system for my project. And my problem is: ConPty doesn't write its own output to a pipe, it just write all into stdout of my main process. As if a child and my parent stdout channels merged. I try to create a realization with named and anonymous pipes (from EchoCon example), but it both fail =( I don't know what I do wrong - all my code are the same of EchoCon example, but project not work as expected. Information about my system: - Microsoft Windows [Version 10.0.18342.8] - Windows SDK Version 10.0.18346.0 I build my project with cmake in Qt Creator with MSVC. I double checked, cmake use latest available SDK. Also original EchoCon sample is working fine on my system, but copied from it code built with cmake - not =( You can find not working code here: https://github.com/kafeg/ptyqt/blob/master/core/conptyanonymouspipeprocess.cpp
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#584