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

error compiling with gromacs 2023 #5

Open
ayeshafatma opened this issue Jan 29, 2024 · 1 comment
Open

error compiling with gromacs 2023 #5

ayeshafatma opened this issue Jan 29, 2024 · 1 comment

Comments

@ayeshafatma
Copy link

Dear Mr. Kumar.

Thank you for creating the tool.

I have gromacs 2023 on my machine. I am trying to compile the do_x3dna. it gives me this error
...............................
In file included from /home/ayesha/do_x3dna/src/do_x3dna.cpp:46:
/home/ayesha/gromacs-2023/src/gromacs/commandline/filenm.h:48:10: fatal error: gromacs/fileio/filetypes.h: No such file or directory
48 | #include "gromacs/fileio/filetypes.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/do_x3dna.dir/build.make:76: src/CMakeFiles/do_x3dna.dir/do_x3dna.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/do_x3dna.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
......................................................................................

I checked the paths of the mentioned files' they appear correct and the files are also there in the folders.

How can i remove the error?

Thank you

Best

Ayesha Fatima

Turkey

@aozalevsky
Copy link

I can confirm the issue. I managed to compile the project after manually adding a couple of paths as CXXFLAGS.

Here is the command that worked for me:

CXXFLAGS='-I/home/arthur/Downloads/gromacs-2023.4/api/legacy/include -I/home/arthur/Downloads/gromacs-2023.4/build/api/legacy/include' cmake ..  -DGMX_PATH=/home/arthur/progs/gmx-2023.4-single-openmp-gpu -DGMX_SRC=/home/arthur/Downloads/gromacs-2023.4 -DCMAKE_INSTALL_PREFIX=/home/arthur/progs/do_3dna_2023.4

Please note that gromacs/fileio/filetypes.h are located in the api/legacy/include dir, while gromacs/libgromacs_export.h (that was a second error) is dynamically generated and available only in build directory build/api/legacy/include

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