victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
131 stars 149 forks source link

Trouble installing on Ubuntu 24 #118

Closed wslym35 closed 4 months ago

wslym35 commented 5 months ago

Hi, I'm very interested in using this software for a research project, but I'm having trouble installing it on my machine (running Ubuntu 24). I've used a pretty standard procedure (download source, unzip, cd to head directory, do 'make', and 'sudo make install') to successfully install Lua, OpenBLAS, and FFTW3. At least, I thought it was successful. After navigating to the S4 directory and doing 'make', the terminal starts churning through the installation process, then stops with the error code:

g++ -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft build/S4k/main_lua.o -o build/S4 -Lbuild -lS4 -llapack -lblas -llua5.2 /usr/bin/ld: cannot find -llapack: No such file or directory /usr/bin/ld: cannot find -lblas: No such file or directory /usr/bin/ld: cannot find -llua5.2: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile.common:113: build/S4] Error 1

From my limited understanding, it looks as if S4 is looking for the previously installed dependencies in usr/bin. But when I look in my machine, I can see that Lua, OpenBLAS, and FFTW3 have been installed in usr/local/...

I'm not sure what's going wrong at this point, but I'm hoping someone can point me in the right direction.

Best, Wes