mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 113 forks source link

/usr/bin/ld: //opt/vc/lib/libbcm_host.so: error adding symbols: DSO missing from command line #741

Open marco7722 opened 1 year ago

marco7722 commented 1 year ago

pi@retropie:~/develop/attract $ sudo make install flags: -std=c++11 -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include /libpng16 -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -Iextlibs/audio /include -DSTDC_CONSTANT_MACROS -I/usr/local/include -I/usr/include/uuid -I/us r/include/freetype2 -I/usr/include/libpng16 -I/usr/include/arm-linux-gnueabihf - I/usr/include/AL -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/no wide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf -DUSE_XLIB - DUSE_XINERAMA -DUSE_FONTCONFIG -DUSE_LIBARCHIVE -DUSE_LIBCURL Creating executable: attract g++ -o attract obj/fe_base.o obj/fe_file.o obj/fe_util.o obj/fe_util_sq.o obj/fe _cmdline.o obj/fe_info.o obj/fe_input.o obj/fe_romlist.o obj/fe_settings.o obj/s craper_base.o obj/scraper_xml.o obj/scraper_general.o obj/scraper_net.o obj/scra per_gamesdb.o obj/fe_config.o obj/fe_presentable.o obj/fe_present.o obj/sprite.o obj/fe_image.o obj/fe_sound.o obj/fe_shader.o obj/fe_overlay.o obj/fe_window.o obj/tp.o obj/fe_text.o obj/fe_listbox.o obj/fe_vm.o obj/fe_blend.o obj/zip.o obj /path_cache.o obj/image_loader.o obj/main.o obj/swf.o obj/fe_net.o obj/media.o o bj/libsquirrel.a obj/libsqstdlib.a obj/libgameswf.a obj/libaudio.a -std=c++11 -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include/libpng16 -DDATA_PAT H=\"/usr/local/share/attract/\" -O2 -DNDEBUG -Iextlibs/audio/include -DSTDC_CO NSTANT_MACROS -I/usr/local/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/arm-linux-gnueabihf -I/usr/include/AL -Ie xtlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf -DUSE_XLIB -DUSEXINERAMA -DUSE FONTCONFIG -DUSE_LIBARCHIVE -DUSE_LIBCURL -DFE_VERSION_MAJOR=2 -DFE_VERSION_MINO R=6 -DFE_VERSION_POINT=2 -DFE_VERSION_D='"v2.6.2"' -DFE_VERSION_NUM=262 -lsfml-g raphics -lsfml-window -lsfml-system -ljpeg -lz -lpthread -ldl -lpthread -lGL -lX 11 -lXrandr -lXinerama -lz -L/usr/local/lib -lfontconfig -lfreetype -larchive -l curl -lavformat -lavcodec -lavutil -lswscale -lswresample -lopenal -lexpat /usr/bin/ld: obj/fe_present.o: undefined reference to symbol 'vc_tv_getdisplay state' /usr/bin/ld: //opt/vc/lib/libbcm_host.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:515: attract] Error 1

I was proceeding to update attractmode on retropie to the latest version through the commands listed below after an exhausting search on the internet, I'm a newbie and I didn't know how to update attractmode without losing the configurations after installing a clean image from scratch. I encountered the above error.

cd ~ rm -r -f develop mkdir develop cd develop git clone --depth 1 https://github.com/mickelson/attract attract cd attract make USE_GLES=1 -j4 sudo make install cd ~ rm -r -f develop sudo shutdown -r now

What should I do to resolve this error? Thanks in advance retropie on raspberry pi 3b+

cmitu commented 1 year ago

RetroPie already includes a package for Attract Mode - you don't need to compile it yourself. Use Retropie-Setup and install the package from the experimental section. The error you're encountering is because -lbcm_host is missing from the linker command, as the last message suggests.

22marco77 commented 1 year ago

I have already installed attract from retropie setup experimental via source, this is a message that I see when I update the packages. I do not understand why I return the error since it was installed via retropie setup