Skip to content
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

Failed compiling cview #65

Open
MinS1 opened this issue Mar 29, 2024 · 6 comments
Open

Failed compiling cview #65

MinS1 opened this issue Mar 29, 2024 · 6 comments

Comments

@MinS1
Copy link

MinS1 commented Mar 29, 2024

Compiling stdin2beta...
SUCCESS
Compiling mask_pat...
SUCCESS
Compiling pat_sampler...
SUCCESS
Compiling patter...
SUCCESS
Compiling bp_patter...
SUCCESS
Compiling snp_patter...
SUCCESS
Compiling match_maker...
SUCCESS
Compiling segmentor...
SUCCESS
Compiling cview...
FAIL
Failed compilation.
Command: g++ -std=c++11 -c -o src/cview/cview.o src/cview/cview.cpp && g++ -std=c++11 -c -o src/pipeline_wgbs/patter_utils.o src/pipeline_wgbs/patter_utils.cpp && g++ -std=c++11 -o src/cview/cview src/cview/cview.o src/pipeline_wgbs/patter_utils.o
return code: 1
stderr:

stdout:
src/cview/cview.cpp: In member function ‘void Cview::parse()’:
src/cview/cview.cpp:178:78: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string}’ through ‘...’
if (verbose) fprintf(stderr, "finished %s reads\n", addCommas(line_i));
^

Failed compiling cview
Compiling homog...
SUCCESS
Compiling add_cpg_counts...
SUCCESS
Compiling add_loci...
SUCCESS

@MinS1
Copy link
Author

MinS1 commented Apr 1, 2024

The problem has been solved.
But init_genome doesn't seem to work

@AzlanNI
Copy link

AzlanNI commented Apr 16, 2024

Hey MinS1,
Would u mind telling how u solved this? I am currently having the same problem with cview failed

@AndreiWCansor
Copy link

@MinS1
Same - having issues compiling cview.. please share how you get around with it please!

@AzlanNI
Copy link

AzlanNI commented Apr 16, 2024

@AndreiWCansor i change a little line in src/cview/cview.cpp
line 178
from
if (verbose) fprintf(stderr, "finished %s reads\n", addCommas(line_i));
to
if (verbose) fprintf(stderr, "finished %s reads\n", addCommas(line_i).c_str());
After that all succeded but i still cant call wgbstools but maybe it helps u!

Edit:was able to call wgbstools after so it worked for me

@AndreiWCansor
Copy link

AndreiWCansor commented Apr 16, 2024

@AzlanNI
Great it's sorted; all SUCCESS - but the same I cannot call wgbstools..

@AzlanNI
Copy link

AzlanNI commented Apr 17, 2024

@AndreiWCansor
It is C++ compiled so i was working on Mac i had to use ./wgbstools in the directory $HOME/wbgs_tools
then i added it to my Home $PATH and could use wgbstools from everywhere :)
I hope that helps u out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants