-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build errors on Ubuntu 22.04 #18
Comments
The build seems to complain about Could you try adding |
If you're talking about adding it on line 4 of the CMakeLists.txt where I removed the error checking stuff, I tried that. It had the same results. |
I just built on 20.04 and only had to remove the -WError. I'll try on 22.04 later. edit: Just built it on 22.04. Not sure what I may be doing differently. I only had to comment out the -WError. It does say this at the bottom of the build though
|
Still get error compile error ubuntu 22.04;/usr/bin/ld: externals/lua/liblua.a(loslib.c.o): in function |
I'm running Ubuntu 22.04 in a virtual machine on a windows host. I am using X11 instead of Wayland, though I've tried both.
I've made sure to install the latest GLFW (3.3.7) and I took out "-Wall -Werror -pedantic" from line 4 of CMakeLists.txt. When I follow the instructions from the README, "make" has the following errors:
[ 2%] Building C object externals/lua/CMakeFiles/lua.dir/src/lapi.c.o [ 4%] Building C object externals/lua/CMakeFiles/lua.dir/src/lauxlib.c.o [ 6%] Building C object externals/lua/CMakeFiles/lua.dir/src/lbaselib.c.o [ 8%] Building C object externals/lua/CMakeFiles/lua.dir/src/lbitlib.c.o [ 10%] Building C object externals/lua/CMakeFiles/lua.dir/src/lcode.c.o [ 12%] Building C object externals/lua/CMakeFiles/lua.dir/src/lcorolib.c.o [ 14%] Building C object externals/lua/CMakeFiles/lua.dir/src/lctype.c.o [ 16%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldblib.c.o [ 18%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldebug.c.o [ 20%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldo.c.o [ 22%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldump.c.o [ 25%] Building C object externals/lua/CMakeFiles/lua.dir/src/lfunc.c.o [ 27%] Building C object externals/lua/CMakeFiles/lua.dir/src/lgc.c.o [ 29%] Building C object externals/lua/CMakeFiles/lua.dir/src/linit.c.o [ 31%] Building C object externals/lua/CMakeFiles/lua.dir/src/liolib.c.o [ 33%] Building C object externals/lua/CMakeFiles/lua.dir/src/llex.c.o [ 35%] Building C object externals/lua/CMakeFiles/lua.dir/src/lmathlib.c.o [ 37%] Building C object externals/lua/CMakeFiles/lua.dir/src/lmem.c.o [ 39%] Building C object externals/lua/CMakeFiles/lua.dir/src/loadlib.c.o [ 41%] Building C object externals/lua/CMakeFiles/lua.dir/src/lobject.c.o [ 43%] Building C object externals/lua/CMakeFiles/lua.dir/src/lopcodes.c.o [ 45%] Building C object externals/lua/CMakeFiles/lua.dir/src/loslib.c.o [ 47%] Building C object externals/lua/CMakeFiles/lua.dir/src/lparser.c.o [ 50%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstate.c.o [ 52%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstring.c.o [ 54%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstrlib.c.o [ 56%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltable.c.o [ 58%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltablib.c.o [ 60%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltm.c.o [ 62%] Building C object externals/lua/CMakeFiles/lua.dir/src/lua.c.o [ 64%] Building C object externals/lua/CMakeFiles/lua.dir/src/luac.c.o [ 66%] Building C object externals/lua/CMakeFiles/lua.dir/src/lundump.c.o [ 68%] Building C object externals/lua/CMakeFiles/lua.dir/src/lutf8lib.c.o [ 70%] Building C object externals/lua/CMakeFiles/lua.dir/src/lvm.c.o [ 72%] Building C object externals/lua/CMakeFiles/lua.dir/src/lzio.c.o [ 75%] Linking C static library liblua.a [ 75%] Built target lua [ 77%] Building CXX object CMakeFiles/frequensea.dir/src/main.cpp.o [ 79%] Building C object CMakeFiles/frequensea.dir/src/nfile.c.o [ 81%] Building C object CMakeFiles/frequensea.dir/src/ngl.c.o [ 83%] Building C object CMakeFiles/frequensea.dir/src/nim.c.o [ 85%] Building C object CMakeFiles/frequensea.dir/src/noise.c.o [ 87%] Building C object CMakeFiles/frequensea.dir/src/nosc.c.o [ 89%] Building C object CMakeFiles/frequensea.dir/src/nrf.c.o [ 91%] Building C object CMakeFiles/frequensea.dir/src/nut.c.o [ 93%] Building C object CMakeFiles/frequensea.dir/src/nwm.c.o [ 95%] Building C object CMakeFiles/frequensea.dir/src/obj.c.o [ 97%] Building C object CMakeFiles/frequensea.dir/src/vec.c.o [100%] Linking CXX executable frequensea /usr/bin/ld: externals/lua/liblua.a(loslib.c.o): in function 'os_tmpname': /home/scurge/git/frequensea/externals/lua/src/loslib.c:140: warning: the use of 'tmpnam' is dangerous, better use 'mkstemp' /usr/bin/ld: /usr/local/lib/libglfw3.a(x11_window.c.o): undefined reference to symbol 'XConvertSelection' /usr/bin/ld: /lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/frequensea.dir/build.make:268: frequensea] Error 1 make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/frequensea.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Here is the output from
pkg-config --cflags --libs glfw3
-I/usr/local/include -L/usr/local/lib -lglfw3
I noticed that this was similar to some other open issues, but not exactly the same.
Any help is appreciated.
This is a fascinating app I really want to try. :)
The text was updated successfully, but these errors were encountered: