ER-301 Emulator for Linux and macOS

its all good, I appreciate all the help so far.

here is the literal print out, starting at the error:

"
jeff@Jeffs-Laptop er-301 % make emu
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f scripts/lua.mk
make[1]: Nothing to be done for all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -f scripts/miniz.mk make[1]: Nothing to be done for all’.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f scripts/lodepng.mk
make[1]: Nothing to be done for `all’.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f scripts/emu.mk
[emu.mk darwin testing] C++(SWIG) testing/darwin/emu/od/glue/app_swig.cpp
testing/darwin/emu/od/glue/app_swig.cpp: In function ‘int _wrap_FileBrowser_getCheckedPaths(lua_State*)’:
testing/darwin/emu/od/glue/app_swig.cpp:16610:31: error: cannot bind non-const lvalue reference of type ‘std::vector<std::__cxx11::basic_string >&’ to an rvalue of type ‘std::vector<std::__cxx11::basic_string >’
16610 | stringVectorToLuaTable(L, result); SWIG_arg++; return SWIG_arg; fail: SWIGUNUSED; } lua_error(L); return 0; }
| ^~~~~~
testing/darwin/emu/od/glue/app_swig.cpp:2862:3: note: after user-defined conversion: ‘SwigValueWrapper::operator T&&() const [with T = std::vector<std::__cxx11::basic_string >]’
2862 | operator T&&() const { return std::move(pointer.ptr); }
| ^~~~~~~~
testing/darwin/emu/od/glue/app_swig.cpp:3084:69: note: initializing argument 2 of 'int stringVectorToLuaTable(lua_State
, std::vector<std::__cxx11::basic_string >&)’
3084 | int stringVectorToLuaTable(lua_State* L, std::vectorstd::string & vec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^
make[1]: *** [testing/darwin/emu/od/glue/app_swig.o] Error 1
make: *** [emu] Error 2
"

Im sorry to bother. But is there anyone out there?

I’m still stuck with these errors messages. Any help is greatly appreciated.

Update for me: I figured it out!!! and believe it or not, it was thanks to ChatGPT!

I sent it the info that my terminal would spit back to me and it wrote this:


I tried a make dist-clean and a recompilation afterwards and interestingly enough it didn’t work. So I checked back and it had removed the word ‘const’ from line 3084 again. I added it back a second time and it compiled. Success!

3 Likes