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
128 stars 149 forks source link

Cannot implement "make S4lua " #98

Open Joshua-CT opened 3 years ago

Joshua-CT commented 3 years ago

When I want to finish the compilation: I implemented "make" instead of "make lib", and finished the first step of compilation~ But, when I operate the next step "make S4lua", the Ubuntu says "There are no rules to make the target "S4lua". Stop."... What should I do? Please give me some help! Thank you in advance for your answers!

gdupras commented 2 years ago

I think the build instructions are outdated (someone correct me if I'm wrong). The "S4lua" target is only found in "Makefile.old".

With the new "Makefile", which calls "Makefile.common", the Lua frontend is built by default. So all you need to do is make. Anyway, that's what I did and it worked for me.

You can check that S4 was built correctly by running some example:

./build/S4 examples/1d/Bi_OE_18_11969_2010/fig3a.lua