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

compilation problem #1

Open
yifangt opened this issue Dec 6, 2022 · 2 comments
Open

compilation problem #1

yifangt opened this issue Dec 6, 2022 · 2 comments

Comments

@yifangt
Copy link

yifangt commented Dec 6, 2022

Hi, Kent!
When I tried to compile mapmaker, I got error as:

cmake ../
-- No build type selected, default to Release
-- Configuring done
CMake Error at CMakeLists.txt:61 (add_executable):
  Cannot find source file:

    mapm/mapmhelp.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:90 (add_executable):
  Cannot find source file:
    quant/qtlhelp.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:61 (add_executable):
  No SOURCES given to target: mapmaker

CMake Error at CMakeLists.txt:90 (add_executable):
  No SOURCES given to target: qtl

CMake Generate step failed.  Build files cannot be regenerated correctly.

I am not sure what is wrong. Do you have the instruction to compile this package?
Some of my environment infos are:

$ cmake --version
cmake version 3.22.1
$ uname -a

Linux valiant6 4.15.0-187-generic #198-Ubuntu SMP Tue Jun 14 03:23:51 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Thank you!

@kentavv
Copy link
Owner

kentavv commented Dec 8, 2022

The executable makehelp needs to be built, and it converts two .src files to .c files. These .c files are the ones that you are missing. I'll need to look at why cmake is not building makehelp.

@yifangt
Copy link
Author

yifangt commented Dec 28, 2022

Spent some time on this. About the two missing files after guess:
cp makehelp/mapmhelp.c mapm/mapmhelp.c
and went back to the original MAPMAKER source code, copied the old source file to the folder by:
cp ~/Downloads/mapmaker3.0/quant/qtlhelp.c quant/
cmake again. but hit another wall:

mapmaker/lib/shell.c:27: multiple definition of `more_mode'; 
libmylib.a(iolib.c.o):mapmaker/lib/iolib.c:22: first defined here

Unfortunately, I am now familiar with cmake. Hope this could provide more clues.

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

2 participants