won't build with different PREFIX
257 opened this issue · comments
jrun commented
with this diff [gist] to velox and this diff [gist] to swc velox fails to build with this:
$ make
...
CCLD velox
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libwld.so.0, needed by /home/user/.local/lib/libswc.so, not found (try using -rpath or -rpath-link)
/home/user/.local/lib/libswc.so: undefined reference to `wld_surface_release'
/home/user/.local/lib/libswc.so: undefined reference to `wld_create_renderer'
/home/user/.local/lib/libswc.so: undefined reference to `wld_drm_create_context'
/home/user/.local/lib/libswc.so: undefined reference to `wld_drm_is_dumb'
/home/user/.local/lib/libswc.so: undefined reference to `wld_export'
/home/user/.local/lib/libswc.so: undefined reference to `wld_surface_take'
/home/user/.local/lib/libswc.so: undefined reference to `wld_capabilities'
/home/user/.local/lib/libswc.so: undefined reference to `wld_copy_rectangle'
/home/user/.local/lib/libswc.so: undefined reference to `wld_pixman_context'
/home/user/.local/lib/libswc.so: undefined reference to `wld_flush'
/home/user/.local/lib/libswc.so: undefined reference to `wld_buffer_add_destructor'
/home/user/.local/lib/libswc.so: undefined reference to `wld_fill_rectangle'
/home/user/.local/lib/libswc.so: undefined reference to `wld_destroy_surface'
/home/user/.local/lib/libswc.so: undefined reference to `wld_buffer_add_exporter'
/home/user/.local/lib/libswc.so: undefined reference to `wld_copy_region'
/home/user/.local/lib/libswc.so: undefined reference to `wld_fill_region'
/home/user/.local/lib/libswc.so: undefined reference to `wld_set_target_buffer'
/home/user/.local/lib/libswc.so: undefined reference to `wld_import_buffer'
/home/user/.local/lib/libswc.so: undefined reference to `wld_destroy_context'
/home/user/.local/lib/libswc.so: undefined reference to `wld_buffer_reference'
/home/user/.local/lib/libswc.so: undefined reference to `wld_create_buffer'
/home/user/.local/lib/libswc.so: undefined reference to `wld_create_surface'
/home/user/.local/lib/libswc.so: undefined reference to `wld_surface_damage'
/home/user/.local/lib/libswc.so: undefined reference to `wld_buffer_unreference'
/home/user/.local/lib/libswc.so: undefined reference to `wld_set_target_surface'
/home/user/.local/lib/libswc.so: undefined reference to `wld_destroy_renderer'
collect2: error: ld returned 1 exit status
make: *** [Makefile:90: velox] Error 1
since
$: ldd ~/.local/lib/libswc.so.0.0
...
libwld.so.0 => not found
jrun commented
Michael Forney commented
The warning tells you what to do. It can't find libwld.so.0 since it is not in your dynamic loader's search path. You should set velox's rpath or LD_LIBRARY_PATH
to the directory you installed the libraries.
Closing, since this is not an issue with swc/velox, but rather your LDFLAGS/system configuration.