payonel / ocvm

OpenComputer Emulator
40 stars 7 forks source link

-llua5.2: No such file or directory #53

Closed Def-Try closed 1 year ago

Def-Try commented 1 year ago

So, I was compiling thin emulator, but it stopped with this error:

[root@localhost ocvm]# make                                                                          g++ ./bin/./main.cpp.o ./bin/./apis/native-lua.cpp.o ./bin/./apis/os.cpp.o ./bin/./apis/system.cpp.o ./bin/./apis/unicode.cpp.o ./bin/./apis/userdata.cpp.o ./bin/./color/color_map.cpp.o ./bin/./components/component.cpp.o ./bin/./components/computer.cpp.o ./bin/./components/data_card.cpp.o ./bin/./components/drive.cpp.o ./bin/./components/eeprom.cpp.o ./bin/./components/filesystem.cpp.o ./bin/./components/gpu.cpp.o ./bin/./components/internet.cpp.o ./bin/./components/keyboard.cpp.o ./bin/./components/modem.cpp.o ./bin/./components/sandbox.cpp.o ./bin/./components/screen.cpp.o ./bin/./drivers/ansi.cpp.o ./bin/./drivers/ansi_escape.cpp.o ./bin/./drivers/basic_term.cpp.o ./bin/./drivers/connection.cpp.o ./bin/./drivers/factory_shell.cpp.o ./bin/./drivers/fs_utils.cpp.o ./bin/./drivers/internet_drv.cpp.o ./bin/./drivers/internet_http.cpp.o ./bin/./drivers/kb_data.cpp.o ./bin/./drivers/kb_drv.cpp.o ./bin/./drivers/modem_drv.cpp.o ./bin/./drivers/mouse_drv.cpp.o ./bin/./drivers/raw_tty.cpp.o ./bin/./drivers/server_pool.cpp.o ./bin/./drivers/term_buffer.cpp.o ./bin/./drivers/worker.cpp.o ./bin/./io/frame.cpp.o ./bin/./model/client.cpp.o ./bin/./model/config.cpp.o ./bin/./model/host.cpp.o ./bin/./model/log.cpp.o ./bin/./model/luaproxy.cpp.o ./bin/./model/prof_log.cpp.o ./bin/./model/value.cpp.o ./bin/./util/crc32.cpp.o ./bin/./util/md5.cpp.o -o ocvm -llua5.2 -lstdc++ -lstdc++fs -pthread -ldl
/bin/ld: cannot find -llua5.2: No such file or directory                                             collect2: error: ld returned 1 exit status                                                           make: *** [Makefile:54: ocvm] Error 1
Def-Try commented 1 year ago

Resolved by modifying LDFLAGS(it uses hard-linked -llua5.2, not one specisfied in lua variable) and "make lua=5.4". Hope it will help somebody