linsalrob / fastq-pair

Match up paired end fastq files quickly and efficiently.
https://edwards.flinders.edu.au/sorting-and-paring-fastq-files/
MIT License
142 stars 32 forks source link

problem with compilation #3

Closed max578 closed 6 years ago

max578 commented 6 years ago

I am attemting to install fastq_pair locally and my system doesn't allow cmake version higher than 3.0.2. As a result, it seems imposible to compile fastq_pair: "CMake error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.6 or higher required. You are running version 3.0.2"

Any alternative ways to compile?

johned0 commented 6 years ago

For such a simple CMakeLists.txt you should be able to just modify the following line : cmake_minimum_required(VERSION 3.6) Alternatively, just run the following command in build : gcc ../*.c -o fastq_pair Then install the executable in /bin.

mbelmadani commented 6 years ago

Just wanted to point out that I had to add the -std=gnu99 flag for it to work on my machine, using gcc 4.8.5 on CENTOS 7 in case this is useful to anyone.

i.e. # gcc -std=gnu99 ../*.c -o fastq_pair

linsalrob commented 6 years ago

Terrific, thank you.

linsalrob commented 4 years ago

You may need to amend this command slightly since test_gzip.c also has a main() method.

This alternate command:

gcc -std=gnu99   ../main.c ../robstr.c ../fastq_pair.c ../is_gzipped.c  -o fastq_pair

will compile the code