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

Could not Make lib #31

Open alihjebeli opened 8 years ago

alihjebeli commented 8 years ago

I have lua 5.2.3 and and s4 documents and want to run s4 on linux. But when I use make lib I get the common error " no rule ...". should I do anything else before making lib? tnx

iongbl commented 8 years ago

Hi, try only "make" instead of "make lib"

alihjebeli commented 8 years ago

Thanks a lot. first step is OK now. But for using "make s4lua" should I do anything before. because I recieve errors when using it. I don't know how to use this command.

iongbl commented 8 years ago

What kind of errors? You have to edit the Makefile properly, according with your libraries.

alihjebeli commented 8 years ago

when I use "make" it stops at r- ./build/s4k/convert.o

alihjebeli commented 8 years ago

I use "make" but I receive this error when I try make S4lua. "/usr/bin/ld: ./lua-5.2.4/install/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaOnilobject' can not be used when making a shared object; recompile with -fPIC ./lua-5.2.4/install/lib/liblua.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *\ [FunctionSampler1D.so] Error 1 ".

schenlucky commented 7 years ago

when make S4lua, it says"No rule"