-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation problem with dextract #19
Comments
Then I rename the gdexta.c to dexta.c. The installation succeeded. Is it correct? |
I have the same question. And how to continue? |
Yes, I have the same problem~ How to solve this problem? |
Obviously it is a typo |
It would be nice then to add the following to the installation guide in the README.
|
when I run "make -f dextract_makefile",why it tell me "gcc -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing -I/home/xingjianfeng/hdf5/include -L/home/xingjianfeng/hdf5/lib -o dextract dextract.c DB.c QV.c -lhdf5 |
Dear all, Thanks very much for improving mecat. We have updated the dextract_makefile and fixed this error. |
Obviously the error is not still fixed? Because I am still getting teh same error while installing dextract:
|
Hi, I am having the same issue as @bbalog87 |
Hi! I looked at the original makefile from DEXTRACTOR and was able to fix the above "undefined reference to" error messages. I had to add 3 more .c files and -lz to the end of one command: If you edit the dextractor_makefile (line 7) to be: This allowed dextract to install, and I have now successfully extracted fasta sequences from 14 sets of bax.h5 files. (Although that too did not work the way MECAT said, instead of all files being in reads.fasta, they are in files named the same as the bax.h5 files with .fasta endings) Good luck to all. |
I was having the same issue with undefined reference errors. I basically just grepped for these methods as they didn't seem to be hdf5 linker related and found them. @Rooksie answered correctly above. The methods that are missing are contained in these c files and their headers. Including these in the compile fixes this issue. I am sure the install instructions should be changed, or the makefile could make objects out of these and then link them itself. |
Please could update or edit the dextractor_makefile (line 7) in the github repository to be: This would definitively fix this error. |
when i added these c files,another bugs occured /usr/local/HDF_Group/HDF5/1.8.15/lib/libhdf5.a(H5PL.c.o): In function |
Thanks Rooksie....your fixed worked for me, however I had to leave off the -lz or it gave me this error: my dextract_makefile on centos: |
emmc,thank you @bbalog87 @mattsmithau I have installed correctly on ubuntu(WSL),but when I go on centos6 ,i met some configure error while i was cmake hdf5 .Anyone knows how it was ? Thanks very much [ 40%] Built target H5make_libsettings |
I occurred the same issue with @mattsmithau , I am wondering whether there are any solution to this "gzbuffer" problem. Thanks. |
I found why this issue happens, it is because I did not install zlib in my server. |
me too dextract.c:(.text+0x144): undefined reference to |
i have solved it with adding zlib in the dextract.c
…------------------ Original ------------------
From: "Sam"<notifications@github.com>;
Date: Sat, Jul 28, 2018 05:52 AM
To: "xiaochuanle/MECAT"<MECAT@noreply.github.com>;
Cc: "X-WJ"<775868797@qq.com>; "Comment"<comment@noreply.github.com>;
Subject: Re: [xiaochuanle/MECAT] installation problem with dextract (#19)
me too
dextract.c:(.text+0x144): undefined reference to parse_filter' dextract.c:(.text+0x25e): undefined reference toinitBaxData'
dextract.c:(.text+0x31f): undefined reference to getBaxData' dextract.c:(.text+0x345): undefined reference tonextSubread'
dextract.c:(.text+0x35b): undefined reference to nextSubread' dextract.c:(.text+0x37c): undefined reference toevaluate_bax_filter'
dextract.c:(.text+0x81f): undefined reference to sam_close' dextract.c:(.text+0x8f2): undefined reference tosam_open'
dextract.c:(.text+0x908): undefined reference to sam_header_process' dextract.c:(.text+0x937): undefined reference tosam_record_extract'
dextract.c:(.text+0x94a): undefined reference to SAM_EOF' dextract.c:(.text+0x95d): undefined reference toevaluate_bam_filter'
dextract.c:(.text+0xee7): undefined reference to sam_open' dextract.c:(.text+0x10e3): undefined reference toparse_filter'
dextract.c:(.text+0x1127): undefined reference to `printBaxError'
collect2: ld returned 1 exit status
make: *** [dextract] Error 1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks @Rooksie ! your fixed worked for me! |
Thanks @Rooksie ! my problem has been solved. |
Hi,
I am installing DEXTRACT. The dextract_makefile is as follows.
`CFLAGS = -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
CC = gcc
all: dextract dexta undexta dexqv undexqv
dextract:
${CC} $ (CFLAGS) -I$(HDF5_INCLUDE) -L$(HDF5_LIB) -o dextract dextract.c DB.c QV.c -lhdf5
dexta:
${CC} ${CFLAGS} -o dexta gdexta.c DB.c QV.c
undexta:
${CC} ${CFLAGS} -o undexta undexta.c DB.c QV.c
dexqv:
${CC} ${CFLAGS} -o dexqv dexqv.c DB.c QV.c
undexqv:
${CC} ${CFLAGS} -o undexqv undexqv.c DB.c QV.c`
And when I run
make -f dextract_makefile
, error exists. Could anyone give me a copy of the gdexta.c file? Many thanks.gcc -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing -o dexta gdexta.c DB.c QV.c gcc: error: gdexta.c: No such file or directory make: *** [dexta] Error 1
The text was updated successfully, but these errors were encountered: