cygwin

Getting webcam to work in OpenCV 2.3 with Cygwin

依然范特西╮ 提交于 2020-01-14 09:47:14
问题 I have a problem trying to get a webcam in OpenCV 2.3 to work with Cygwin. I have a Windows 7 64-bit system and I use Notepad++ and cygwin compilers to do my C++ programming. I have seen other posts with similar problems: Getting Webcam to work in OpenCV Can't access webcam with OpenCV I first tried installing OpenCV via the Cygwin Ports. This is rather easy to install, but alas I run into the webcam problem (always returns false when trying to find a device). I have also attempted to build

Is it possible to link against a Windows .dll+.lib file combination using gcc/g++ under Cygwin?

爱⌒轻易说出口 提交于 2020-01-14 09:03:27
问题 I know how to link against libraries in Unix-ish contexts: If I'm working with .a or .so files, I specify the root search directory with -L/my/path/to/lib/ and for libMylib I add -lMyLib . But what if I have a .dll (e.g. in the Windows\System32 directory)? a .dll (in Windows\System32 ) and a .lib (someplace else)? These DLLs are by some other party; I don't have access to their sources - but do have access to the corresponding include files, against which I manage to compile. 回答1: If you can

Bamboo SCP plug-in: how to find directory

南笙酒味 提交于 2020-01-14 07:50:10
问题 I am trying to upload a file to a remote server using the SCP task. I have OpenSSH configured on the remote server in question, and I am using an Amazon EC2 instance running Windows Server 2008 R2 with Cygwin to run the Bamboo build server. My question is regarding finding the directory I wish to use. I want to upload the entire contents of C:\doc using SCP. The documentation notes that I must use the local path relative to the Bamboo working directory rather than an absolute directory name.

PhpStorm terminal : Cygwin colors does not work

旧街凉风 提交于 2020-01-13 19:19:29
问题 I have PhpStorm 2016.2 and I added Cygwin in the Shell path as follow : "C:\cygwin64\bin\env.exe" CHERE_INVOKING=1 /bin/bash.exe It's working well, but the colors do not work. For exemple I have ?[32m Name instead of having Name colored in green. I tried several things like adding the plugin Grep Console to have the support of ANSI Color, but didn't work. It's really hard to work with lines with multiple ANSI colors ?[39m ?[32m Scheme ?[39m ?[32m Host ?[39m ?[32m Path . Do not hesitate to ask

Eclipse “crossGCC”

那年仲夏 提交于 2020-01-13 18:02:10
问题 I just downloaded the Eclipse IDE for C/C++ (on Window 7) and trying to create a simple new project. In the tool chains there are "Cross GCC", "Cygwin GCC" and "Microsoft Visual C++". I never heard of the "Cross GCC" before. What is the different between "Cross GCC" and "CygwinGCC" and the normal "GCC"? --ABS 回答1: If you're interested in "normal GCC" at Windows environment, it may be worth to install MinGW (with MSYS) instead of Cygwin. Here is a good discussion on "Cygwin vs MinGW" so you

Eclipse “crossGCC”

我的未来我决定 提交于 2020-01-13 18:02:05
问题 I just downloaded the Eclipse IDE for C/C++ (on Window 7) and trying to create a simple new project. In the tool chains there are "Cross GCC", "Cygwin GCC" and "Microsoft Visual C++". I never heard of the "Cross GCC" before. What is the different between "Cross GCC" and "CygwinGCC" and the normal "GCC"? --ABS 回答1: If you're interested in "normal GCC" at Windows environment, it may be worth to install MinGW (with MSYS) instead of Cygwin. Here is a good discussion on "Cygwin vs MinGW" so you

C Socket Programming with CygWin

喜你入骨 提交于 2020-01-13 11:34:10
问题 Hi I'm trying to write a little server / client program in C using CygWin, problem is, the gcc compiler in Cygwin doesn't seem to contain the standard headers assosiated with socket-programming. When trying to compile my server program, i get: netinet/in.h: No such file or directory sys/socket.h: No such file or directory netdb.h: No such file or directory Are these three headers located elsewhere in the CygWin-enviorment? 回答1: Try using the -I compiler command line option to specify a path

‘stoi’ was not declared in this scope [duplicate]

两盒软妹~` 提交于 2020-01-13 11:02:50
问题 This question already has answers here : cygwin g++ std::stoi "error: ‘stoi’ is not a member of ‘std (4 answers) Closed 4 years ago . So this error have been addressed several times, but no answers helped me. I'm using Notepad++ and Cygwin on windows 10. My code is as follows and it's from Derek Banas's 1 hour C++ tutorial: #include <iostream> #include <vector> #include <string> #include <fstream> #include <cstdlib> #include <sstream> //#include <stdlib.h> using namespace std; int main(){

‘stoi’ was not declared in this scope [duplicate]

我只是一个虾纸丫 提交于 2020-01-13 11:02:08
问题 This question already has answers here : cygwin g++ std::stoi "error: ‘stoi’ is not a member of ‘std (4 answers) Closed 4 years ago . So this error have been addressed several times, but no answers helped me. I'm using Notepad++ and Cygwin on windows 10. My code is as follows and it's from Derek Banas's 1 hour C++ tutorial: #include <iostream> #include <vector> #include <string> #include <fstream> #include <cstdlib> #include <sstream> //#include <stdlib.h> using namespace std; int main(){

Does the tee command always wait for EOF?

天涯浪子 提交于 2020-01-13 10:57:10
问题 I'd like to log the output of a command to stdout as well as to a log file. I've got Cygwin installed and I'm trying to use the tee command to accomplish this. devenv mysolution.sln /build myproject "Release|Win32" | tee build.log Trouble is that tee seems to insist on waiting for the end of file before outputting anything to either stdout or the log file. This takes away the point of it all, which is to have a log file for future reference, but also some stdout logging so I can easily see