ORNL-Fusion / kineticj

Given a time harmonic electric wave field calculate the kinetic plasma current
MIT License
5 stars 8 forks source link

Compiling on gpufusion #3

Open danielblazevski opened 8 years ago

danielblazevski commented 8 years ago

I installed hdf5, netcdf and netcdf for c++.

When I type make I no longer get the error: Cannot open source file "netcdf"

include

Which is good, and makes sense since there is a file called netcdf in the directory that I point to in the Include statment. However, there is an error of the form: cannot open source file "netcdf.h"

include

This is because the file netcdf has an #include <netcdf.h> statement in it. In the directory where the non-c++ netcdf library is installed, there is a netcdf.h file in the include directory. I'm not sure if that has to be linked somehow? On my mac laptop, I do not see any linking/including flags to that file in either Makefile or Makefile.lap101336, and the dc-2d compiles just fine on my laptop

dlg0 commented 8 years ago

I expect it has to be "included", rather than linked. I'd try adding a "-I/path/to/dir/with/netcdf.h" and see how that goes. Are you still pointing to the module system netcdf as well? Be sure to remove and include or link statements to those paths.

danielblazevski commented 8 years ago

Cool, that did make some progress.

There was no such flag in the makefile for my mac laptop, not sure how it compiled there.

Trying to install libconfig now. Getting this error, configured via ./configure --prefix=/home/dvk/code/libconfig/pgi (tried both with CC=gcc and CC=pgcc, same error) WARNING: 'aclocal-1.14' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: http://www.gnu.org/software/automake It also requires GNU Autoconf, GNU m4 and Perl in order to run: http://www.gnu.org/software/autoconf http://www.gnu.org/software/m4/ http://www.perl.org/ make: *\ [aclocal.m4] Error 127

On Thu, Aug 20, 2015 at 8:07 PM, David L Green notifications@github.com wrote:

I expect it has to be "included", rather than linked. I'd try adding a "-I/path/to/dir/with/netcdf.h" and see how that goes. Are you still pointing to the module system netcdf as well? Be sure to remove and include or link statements to those paths.

— Reply to this email directly or view it on GitHub https://github.com/ORNL-Fusion/kineticj/issues/3#issuecomment-133223206.