patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.62k stars 350 forks source link

can't compile on Fedora #286

Closed renanmartins1813 closed 2 years ago

renanmartins1813 commented 2 years ago

I am following the Compile instructions for Linux; Installed all dependencies and upgraded the entire system but the error keeps occurring.

cmake.txt make.txt makeInstall.txt CMakeError.log CMakeOutput.log

tcoyvwac commented 2 years ago

Hi there @renanmartins1813,

Humm, on quick glance, makeinstall.txt and make.txt says, there is a problem in the linking stage...:

[ XXX %] Linking CXX executable glslViewer
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/12/../../../libncurses.so.6 when searching for libncurses.so.6
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/12/../../../libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/12/../../../libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/glslViewer.dir/build.make:224: glslViewer] Error 1
make[1]: *** [CMakeFiles/Makefile2:199: CMakeFiles/glslViewer.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
renanmartins1813 commented 2 years ago

Hello @tcoyvwac,

I managed to solve the problem using the following commands: sudo dnf install ncurses-compat-libs ncurses-static reboot sudo ldconfig -v reboot

I am not sure which one did the trick but I'm glad that one of them did!

patriciogonzalezvivo commented 2 years ago

Oh! I'm glad it worked! I'm adding your findings to the documentation and close this thread https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compile-on-Linux#fedora

If someone can verify that this instructions work, would be great