Skip to content
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

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

Open
marco7722 opened this issue Apr 28, 2023 · 2 comments

Comments

@marco7722
Copy link

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 -D__STDC_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 -D__STDC_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 -DUSE_XINERAMA -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_get_display_ 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
Copy link
Contributor

cmitu commented May 29, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants