Mir fails to build (link) against locally built Mesa+GBM
Bug #1111268 reported by
Daniel van Vugt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Medium
|
Daniel van Vugt |
Bug Description
Mir fails to build (link) against locally built Mesa+GBM.
The problem is that it's still looking at the system libgbm.so and not the local one I specified in PKG_CONFIG_PATH...
Linking CXX executable ../bin/mir
/usr/lib/
collect2: ld returned 1 exit status
make[2]: *** [bin/mir] Error 1
make[1]: *** [src/CMakeFiles
make: *** [all] Error 2
make VERBOSE=1 shows the source of the problem is that we're linking to the specified -lgbm from pkgconfig but ignoring the library path also from pkgconfig.
Changed in mir: | |
status: | In Progress → Fix Committed |
Changed in mir: | |
status: | Fix Committed → Fix Released |
milestone: | none → 0.0.2 |
information type: | Proprietary → Public |
To post a comment you must log in.
Linking CXX executable ../bin/render_to_fb bzr/mir/ pf/build/ examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/ render_ to_fb.dir/ link.txt --verbose=1 ssp-buffer- size=4 -Wformat -Werror= format- security -std=c++0x -Werror -Wall -fno-strict- aliasing -pedantic -Wextra -fPIC -D__GBM__ -Wl,-Bsymbolic- functions -Wl,-z,relro CMakeFiles/ render_ to_fb.dir/ render_ to_fb.cpp. o -o ../bin/render_to_fb -rdynamic ../lib/ libmirplatformg raphics. a ../lib/ libmirlogging. a ../lib/libmirdraw.a ../lib/ libmircomposito r.a -lboost_chrono-mt -lboost_ date_time- mt -lboost_ filesystem- mt -lboost_system-mt -lboost_thread-mt -lboost_ program_ options- mt -lboost_regex-mt -ldrm -lgbm /home/dan/ mirmesa/ lib/libEGL. so /home/dan/ mirmesa/ lib/libGLESv2. so -Wl,-rpath, /home/dan/ mirmesa/ lib gcc/x86_ 64-linux- gnu/4.6/ ../../. ./x86_64- linux-gnu/ libgbm. so: undefined reference to `wayland_ buffer_ is_drm'
cd /home/dan/
/usr/bin/g++-4.6 -g -O2 -fstack-protector --param=
/usr/lib/
collect2: ld returned 1 exit status
make[2]: *** [bin/render_to_fb] Error 1