Installing cygwin with compilers and development packages - windows

I need to compile kannel for windows and I installed cygwin. It says I don't have compilers to compile with cygwin. How do I resolve this ? Is there any full-featured cygwin image available anywhere on the internet ?
Please help. SOS!
I'm following this tutorial to compile kannel with cygwin.
http://saurabhsachdeva.wordpress.com/2008/02/29/kannel-installation-on-windows/

It looks like Kannel is written in C, so you probably just need to install make, gcc, and so on; these aren't included in the base Cygwin install, so you need to re-run the installer and make sure you select those packages. See the Cygwin FAQ.

As kannel is built with C, you need a C compiler. In my case, I have Visual Studio 2010, which has a built in C compiler. Just Google for "C compiler"; you can get many Open Source ones for free.

Related

CLion Installation: Cmake compilers not found, GDB not found

I'm switching from VS to CLion and they said I needed to install Cygwin and CMake. I then installed both of them. I tried use bundled, but CLion still gives me these errors make: not found C Compiler: not found C++ Compiler: not found GDB: not found.
I have installed CMake under the path C:\Users\Gaga\Downloads\cmake-3.4.1 but I don't see a cmake.exe, the closest thing is cmake.cxx.
Without these I'm not able to compile anything, please help
In the "Use specified" field I put C:\cygwin64\bin\cmake.exe your path may be different. Just ensure you have CMake, Make, gdb and gcc installed already in Cygwin (using the Cygwin setup.exe not via the CMake website) but I believe Clion checks if you have them installed after inputting the path.
The workaround would be to use MinGW. If you download it from the website it should come with cmake, and take care of the errors.
http://mingw.org/
When extract it and go to the installer you should check something like gcc and then from the top left corner something like 'install packages'
Be sure not to accidentally download the source, which I did, which would lead you toward this error: CLion: CMake Errors Source directory does not exist
Edit: So over a year later, I've learned a little more about Cygwin and mingw beyond what the internet says. CLion needs a "Unix-like" environment. If you use CLion on MacOS or a Linux it's already Unix based. Anything that is "POSIX" compliant will work. CygWin is a terminal emulator for windows where Unix commands like mkdir work. MinGW is something similar but not posix. Comes with GCC tho. I'm still a noob.
I had the same problem.
While installing cygwin, need to select the packages of cmake, gcc, gdb
Got the answer from the below link.
Select Packages while installing cygwin
After the installation go to the configuration page and select the cygwin directory. CLion will identify the configuration and you are done...

How can I compile nDPI library on Windows?

The library comes with instructions on how to compile it on Linux:
./autogen.sh
./configure
make
But I can't find any source on the Internet to help me compile this code directly on Windows, just as if I never had a Linux machine.
nDPI is hosted here: https://github.com/ntop/nDPI
You could set up a linux-like CLI using Cygwin (very useful tool) and cross compile to Windows. It's not a complicated process and there is a lot of documentation around the Internet. I recommend using the MinGW 32 cross compiler.
You can use NFStream which provide Windows support and use nDPI as a DPI engine.
You have to edit some lines of source code and add the files
ntop_win32.h and ntop_win32.c
Then you can compile nDPI with Visual Studio.

use MinGW to create exe file in windows from GNU source package

the basic idea was, I wanted to generate the call graph in text format for several c files. After googling around for long time, i found cflow, which can deliver everything I want, but it is only runable in Linux or else. Then I began to search how to compile the cflow source files on the web to a exe file. I found MinGW which should be able to do the cross-platform compilation.
After installing the MinGW and the MSYS and running the usual commands "./configure; make; make install", I simply got an error that "mkdir" was not found. Actually. Actually I was wondering whether this is the correct way to compile the whole package.
Does anyone has an idea how I can build the cflow.exe correctly in Windows? If there is a tutorial or something like this, I will be very thankful.
Song
Solution
Please try this Github repository "MinGW + MSYS build of GNU cflow 1.4" (For Windows).
https://github.com/noahp/cflow-mingw
It contains already compiled "cflow.exe",and an instruction about how to build cflow using mingw and msys.
Test
System Environment:Win 8.1 (x64)
1.I tested the "cflow.exe" downloaded from the github repository , and amazingly it worked!
2.I followed the mingw compiling instruction,and it successfully compiled "cflow 1.5".
Command:
bash configure
make
I was able to do that today. I'm using cygwin, after installing gcc, binutils, make and after downloading the gnu cflow.tar.gz, it was as easy as ./configure ; make ; make install.

how to install cygwin and mingw under windows 7?

I want to use gcc ( and g++ ) under windows 7.
I download cygwin ( setup file: setup.exe )...
So, what is packages really needed?! It suggests to setup very many packages, but i think that for developing in C++ not all of these is really needed..
gcc4-g++ for Cygwin programs
mingw64-i686-gcc-g++ for 32-bit MinGW programs
mingw64-x86_64-gcc-g++ for 64-bit MinGW programs
Setup.exe will select their dependencies such as gcc-core or binutils for you.
You'll probably also want make, and don't forget to pick an editor. Other packages in my minimum install: cygutils, diffutils, util-linux, inetutils, openssh, mintty.
If you would like to use only gcc and g++, I'd receomend you MinGW Distro designed by Stephan T. Lavavej.
Here is a direct link: http://nuwen.net/mingw.html to the Distro's main page. It contains currently the most up to date gcc and boost (4.7.2 and 1.52.0 respectively in version 9.5). It also contains make, git and couple more of useful tools.
Installation is really simple, you need only to extract zip-archive.
So, if you need Cygwin only to use GCC, I'd recomment you this MinGW Distro instead of Cygwin.
Greetings,

How to compile & use GLib with MinGW

I want to use the Gnome GLib in a Windows environment using the free MinGW compiler to develop in C. The problem is, I have absolutely no idea how to compile this library. Would any of you please explain what tools are needed to accomplish this and what instructions need to be followed?
GLib is available pre-compiled for Windows and has been for ages: http://www.gtk.org/download/windows.php.
You need to use MSys, it is downloadable from MinGW site. Using MSys you will be able to build GLib: http://www.mingw.org/wiki/Bootstrapping_GLIB_with_MinGW

Resources