Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imilne
    Member
    • Jan 2010
    • 68

    #1

    Compile samtools on Windows so it doesn't need Cygwin

    I assume this can be done, because the binaries that are available on the samtools website (for 0.1.7 and earlier) don't need a Cygwin environment to run?

    I can compile everything fine within Cygwin, but attempting to run the following with the latest source code (0.1.11) fails.

    Code:
    $ make -f Makefile.mingw
    gcc.exe -c -g -Wall -O2 -mno-cygwin -D_CURSES_LIB=2 -D_USE_KNETFILE -Iwin32 bam_tview.c -o bam_tview.o
    gcc.exe -c -g -Wall -O2 -mno-cygwin -D_CURSES_LIB=2 -D_USE_KNETFILE -Iwin32 bam_maqcns.c -o bam_maqcns.o
    bam_maqcns.c: In function `ks_shuffle_uint32_t':
    bam_maqcns.c:8: warning: implicit declaration of function `drand48'
    gcc.exe -c -g -Wall -O2 -mno-cygwin -D_CURSES_LIB=2 -D_USE_KNETFILE -Iwin32 bam_plcmd.c -o bam_plcmd.o
    bam_plcmd.c: In function `pileup_func':
    bam_plcmd.c:247: warning: implicit declaration of function `drand48'
    In file included from bam2bcf.h:6,
                     from bam_plcmd.c:526:
    bcftools/bcf.h:35:18: bgzf.h: No such file or directory
    make: *** [bam_plcmd.o] Error 1
    Am I even using the right command?

    I ultimately need a samtools.exe that can be given to people that don't have Cygwin.

    Thanks
    Our software: Tablet | Flapjack | Strudel | CurlyWhirly | TOPALi
  • vixensjlin
    Junior Member
    • Aug 2012
    • 4

    #2
    Have you try this one?

    samtools (Tools for alignments in the SAM format) on BOW - Bioinformatics On Windows

    Comment

    • esraa
      Junior Member
      • Mar 2016
      • 4

      #3
      I am asking if samtools work on windows and C program or another software ?

      Comment

      • Richard Finney
        Senior Member
        • Feb 2009
        • 701

        #4
        #1 Install bzip2 libraries on cygwin.

        #2 several ways around drand48() problem.

        You can duckduckgo for "cygwin drand48"
        suggestion but I have not tried:
        One solution is just doing this ... just jam it in a header file.

        #ifdef CYGWIN32
        #define rand48 random
        #endif

        You can hack the makefile on the compiler options line to put in this define.

        You can also swiped drand48.c from somewhere and just jam it in a C file.

        I've compiled samtools on cygwin using gcc, though it's a moving target as it's fine tuned for Linux and
        portability to windows was never a high priority. Code changes don't always port easily.

        Compiling with Visual C is an epic adventure.
        Last edited by Richard Finney; 04-05-2016, 05:42 AM.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:13 AM
        0 responses
        19 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...