Jump to content

Cygwin Config


Recommended Posts

I've been messing around with cygwin recently, but haven't gotten it to install anything. I've done research, but they always talk about stuff you don't really need quite yet. I'd like to install gnash so I can play swf files then later install firefox with gnash support. The problem I have is that after the initial './configure' the make command doesn't do anything! So I propose that we have a thread that might solve a lot of problems users like myself have.

From my searching I found out that I need make, gcc, g++, and xorg. I'll post the script I use to start cygwin. It's not the default and it doesn't have the stuff you see in the other scripts on the internet as I couldn't find out what they did (again, the documentation didn't say anything about it or how to use some of it), but it works! You find out that '/cygdrive' shows windows drives and '/proc/registry[32 or 64]' shows the registry to their respective version.

If you have anything to add please do!

P.S. The script I mentioned above:

@echo off
set "here=%~dp0"
set "path=%here%\bin;%here%\usr\X11R6\bin;%path%"

:: interactive login
bash --login -i

Link to comment
Share on other sites

When I attempt to install firefox from source I get:

$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for gawk... gawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... cl
checking whether the C compiler (cl  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

and the make command:

$ make
make: *** No targets specified and no makefile found.  Stop.

I understand that './configure' needs to work before I move onto make, but it's the same error that I get for gnash. I'll post the results of gnash next.

Link to comment
Share on other sites

Do I need 'mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13' for cygwin to work? I pulled this off mozilla's instructions for building firefox on ubuntu.

This is gnash's './configure', it's quite long! I never understood what I'm supposed to look for in here, if I could get some help I'd be really appreciative!

$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for library file name specifics... no
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking for mkinstalldirs... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for config.rpath... config.rpath
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl
checking for library containing mallinfo... none required
checking For the version of libtool... 2.x
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for as... as
checking for dlltool... dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether a program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking which extension is used for runtime loadable modules... .dll
checking which variable specifies run-time module search path... PATH
checking for the default library search path... /lib /usr/lib
checking for library containing dlopen... none required
checking for dlerror... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking whether cygwin_conv_path is declared... yes
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... yes
checking whether we have to add an underscore for dlsym... unknown
checking whether deplibs are loaded by dlopen... unknown
checking for argz.h... yes
checking for error_t... yes
checking for argz_add... yes
checking for argz_append... yes
checking for argz_count... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking if argz actually works... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for ltdl.h... no
checking where to find libltdl headers... -I${top_srcdir}/libltdl
checking where to find libltdl library... ${top_build_prefix}libltdl/libltdlc.la
checking for unistd.h... (cached) yes
checking for dl.h... no
checking for sys/dl.h... no
checking for dld.h... no
checking for mach-o/dyld.h... no
checking for dirent.h... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for runtest... no
configure: This build supports LocalConnection
checking which type of library archiver we have...
configure: Configuring Gnash for native compilation
checking for pkg-config... no
checking for perl... /usr/bin/perl
checking for csound... no
checking for the gtk2 header... not found, trying again
checking gtk/gtk.h usability... no
checking gtk/gtk.h presence... no
checking for gtk/gtk.h... no
checking for libgtk2 library... checking for gtk_init in -lgtk-win32-2.0... no

checking for the Pango Version... none
checking for libpango header...
checking for libpango library...
checking for pango_engine_shape_class_init in -lpango-... no
checking for atk-config... no
checking atk/atk.h usability... no
checking atk/atk.h presence... no
checking for atk/atk.h... no
checking atk/atk/atk.h usability... no
checking atk/atk/atk.h presence... no
checking for atk/atk/atk.h... no
checking atk-1.0/atk/atk.h usability... no
checking atk-1.0/atk/atk.h presence... no
checking for atk-1.0/atk/atk.h... no
checking for atk/atk.h... (cached) no
checking for atk-config... no
checking for library containing atk_focus_tracker_init... no
checking for libatk library... not found
checking for cairo-config... no
checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
checking cairo/cairo.h usability... no
checking cairo/cairo.h presence... no
checking for cairo/cairo.h... no
checking for cairo/cairo.h... (cached) no
checking for cairo.h... (cached) no
checking for cairo-config... no
checking for library containing cairo_status... no
checking for libcairo library... not found
checking linker --as-needed support... yes
checking for autotrace... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for zip... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking for ber_free in -llber... no
checking for BZ2_bzopen in -lbz2... no
checking for getpwnam in -lc... yes
checking for X11 headers... -I/usr/include
checking for X11 library... -L/lib -lX11 -lXinerama -lXext -lSM -lICE
checking for XInput_find_display in -lXi... yes
checking for XDisableAccessControl in -lX11... yes
checking for shm_unlink in -lrt... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking to see if float formatting is broken... no
checking for finite... yes
checking for library containing finite... none required
checking for isfinite... yes
checking for library containing isfinite... no
checking whether g++ implements __PRETTY_FUNCTION__... yes
checking whether g++ implements __FUNCTION__... yes
checking whether g++ implements __func__... yes
checking for getopt... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for tzset... yes
checking for localtime_r... yes
checking whether struct tm has tm_gmtoff... no
checking whether timezone is a long... yes
checking for sysconf... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for mmap... yes
checking for memmove... yes
checking for scandir... yes
checking for clock_gettime... yes
checking winsock.h usability... no
checking winsock.h presence... yes
configure: WARNING: winsock.h: present but cannot be compiled
configure: WARNING: winsock.h:     check for missing prerequisite headers?
configure: WARNING: winsock.h: see the Autoconf documentation
configure: WARNING: winsock.h:     section "Present But Cannot Be Compiled"
configure: WARNING: winsock.h: proceeding with the preprocessor's result
configure: WARNING: winsock.h: in the future, the compiler will take precedence
checking for winsock.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... yes
configure: WARNING: winsock2.h: present but cannot be compiled
configure: WARNING: winsock2.h:     check for missing prerequisite headers?
configure: WARNING: winsock2.h: see the Autoconf documentation
configure: WARNING: winsock2.h:     section "Present But Cannot Be Compiled"
configure: WARNING: winsock2.h: proceeding with the preprocessor's result
configure: WARNING: winsock2.h: in the future, the compiler will take precedence
checking for winsock2.h... yes
checking for socket... yes
checking for CreateFileMappingA... no
checking for mremap in -lc... no
checking for nspr-config... no
checking nspr.h usability... no
checking nspr.h presence... no
checking for nspr.h... no
checking nspr/nspr.h usability... no
checking nspr/nspr.h presence... no
checking for nspr/nspr.h... no
checking for nspr/nspr.h... (cached) no
checking for nspr.h... (cached) no
checking for nspr-config... no
checking for library containing PR_Init... no
checking for libnspr library... not found
checking for windres... /usr/bin/windres
checking for z-config... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for z-config... no
checking for libz library... -L/lib -lz
checking for jpeg-config... no
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking jpeg/jpeglib.h usability... no
checking jpeg/jpeglib.h presence... no
checking for jpeg/jpeglib.h... no
checking for jpeg/jpeglib.h... (cached) no
checking for jpeglib.h... (cached) no
checking for jpeg-config... no
checking for library containing jpeg_mem_init... no
checking for libjpeg library... not found
checking for png-config... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png-config... no
checking for libpng library... -L/lib -lpng
checking for gif-config... no
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
checking gif/gif_lib.h usability... no
checking gif/gif_lib.h presence... no
checking for gif/gif_lib.h... no
checking for gif/gif_lib.h... (cached) no
checking for gif_lib.h... (cached) no
checking for gif-config... no
checking for library containing DGifOpen... no
checking for libgif library... not found
checking for ungif-config... no
checking for gif_lib.h... (cached) no
checking ungif/gif_lib.h usability... no
checking ungif/gif_lib.h presence... no
checking for ungif/gif_lib.h... no
checking for ungif/gif_lib.h... (cached) no
checking for gif_lib.h... (cached) no
checking for ungif-config... no
checking for library containing DGifOpen... (cached) no
checking for libungif library... not found
checking for dejagnu-config... no
checking dejagnu.h usability... no
checking dejagnu.h presence... no
checking for dejagnu.h... no
checking dejagnu/dejagnu.h usability... no
checking dejagnu/dejagnu.h presence... no
checking for dejagnu/dejagnu.h... no
checking for dejagnu/dejagnu.h... (cached) no
checking for dejagnu.h... (cached) no
checking for speex-config... no
checking speex.h usability... no
checking speex.h presence... no
checking for speex.h... no
checking speex/speex.h usability... no
checking speex/speex.h presence... no
checking for speex/speex.h... no
checking for speex/speex.h... (cached) no
checking for speex.h... (cached) no
checking for speex-config... no
checking for library containing speex_decode_int... no
checking for libspeex library... not found
checking for speexdsp-config... no
checking speex_resampler.h usability... no
checking speex_resampler.h presence... no
checking for speex_resampler.h... no
checking speexdsp/speex_resampler.h usability... no
checking speexdsp/speex_resampler.h presence... no
checking for speexdsp/speex_resampler.h... no
checking for speexdsp/speex_resampler.h... (cached) no
checking for speex_resampler.h... (cached) no
checking for speexdsp-config... no
checking for library containing speex_resampler_process_int... no
checking for libspeexdsp library... not found
checking for libfreetype header... yes
checking for freetype library... -L/lib -lfreetype
checking for fc-match... /usr/bin/fc-match
checking for fontconfig-config... no
checking fontconfig/fontconfig.h usability... yes
checking fontconfig/fontconfig.h presence... yes
checking for fontconfig/fontconfig.h... yes
checking for fontconfig-config... no
checking for libfontconfig library... -L/lib -lfontconfig
checking for ming-config... no
checking ming.h usability... no
checking ming.h presence... no
checking for ming.h... no
checking for Ming header...
checking for ming_init_io in -lming... no
checking for libming library...
checking for nc... no
checking for netcat... no
checking for wget... /usr/bin/wget
checking for as3compile... no
checking for swfc... no
checking for swfmill... no
checking for mtasc... no
checking for haxe... no
checking for doxygen... no
checking for sdl-config... no
checking for SDL header... not found in incllist
checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no
checking for SDL_Init in -lSDL... no
checking for QT 4.x headers... /usr/include/qt4
checking for QT 4.x libraries... no
checking for moc-qt4... /bin/moc-qt4
checking for uic-qt4... /bin/uic-qt4
checking for kde4-config... no
checking for KDE 4.x header path... no
checking kde4/kapplication.h usability... no
checking kde4/kapplication.h presence... no
checking for kde4/kapplication.h... no
checking for kdeui library... checking for kdeprint library... no
checking for Glib header... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking for glib library... -L/lib -lglib-2.0
configure: error: "On Win32, NPAPI plugin requires NSPR."

Link to comment
Share on other sites

  • 2 months later...

I made a list of the files commonly said to use when setting up cygwin; though the "possible" section is just what I think can be useful for building software, but not absolutely necessary. I'm really looking for stuff to put into "appeneded" that would help me atleast get started building software from CLI/source. If you have any suggestions, please add!

# default
coreutils
binutils
findutils
diffutils
bash
bzip2
tar
perl
python

# appended
make
patchutils
gcc
gcc-mingw
zip
unzip

# possible
imagemagick
nano
vim
cvs
git
Qt (idk the exact package)
libX11-devel
xorg-server
ncureses
libncurses-devel
ncursesw
libncursesw-devel
subversion

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...