tmolteno / necpp

NEC2++ is a C++ rewrite of the Numerical Electromagnetics Code (NEC-2) with many new features like automatic error detection when you specify the structure incorrectly and much faster execution. Nec2++ can analyse radiating as well as scattering properties of structures. The simulation engine in Nec2++ is compiled into a library for easy integration into automatic antenna design systems or GUI tools. Examples are included for using Nec2++ from C/C++, Ruby and Python.
http://elec.otago.ac.nz/w/index.php/Necpp
GNU General Public License v2.0
241 stars 65 forks source link

How to generate Makefile for src compile?. Failed Atlas_check. #66

Open minertom opened 3 years ago

minertom commented 3 years ago

I assumed that before attempting a compile I would need to run the atlas_check.sh file. I did install the atlas development package and it is installed in /usr/lib/atlas, with permissions granted to the user.

-rw-r--r-- 1 tom tom  8689590 Apr  5 09:51 libblas.a
lrwxrwxrwx 1 tom tom       17 Apr  5 09:51 libblas.so -> libblas.so.3.10.3
lrwxrwxrwx 1 tom tom       17 Apr  5 09:51 libblas.so.3 -> libblas.so.3.10.3
-rw-r--r-- 1 tom tom  3938440 Apr  5 09:51 libblas.so.3.10.3
-rw-r--r-- 1 tom tom 12734022 Apr  5 09:51 liblapack.a
lrwxrwxrwx 1 tom tom       19 Apr  5 09:51 liblapack.so -> liblapack.so.3.10.3
lrwxrwxrwx 1 tom tom       19 Apr  5 09:51 liblapack.so.3 -> liblapack.so.3.10.3
-rw-r--r-- 1 tom tom  7073856 Apr  5 09:51 liblapack.so.3.10.3

when I run ./atlas_check.sh I get

/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
./atlas_check.sh: 3: ./atlas_check.sh: ./atlas_check: not found
rm: cannot remove 'atlas_check': No such file or directory
./atlas_check.sh: 5: ./atlas_check.sh: gfortran: not found
./atlas_check.sh: 6: ./atlas_check.sh: ./atlas_check: not found
rm: cannot remove 'atlas_check': No such file or directory
./atlas_check.sh: 8: ./atlas_check.sh: gfortran: not found
./atlas_check.sh: 9: ./atlas_check.sh: ./atlas_check: not found
rm: cannot remove 'atlas_check': No such file or directory

Also, how is the Makefile generated such that I can do a source compile?

Thank You Tom