Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to force linking on linux libgpod and rhythmbox
    primarykey
    data
    text
    <p>Ok, I've added some functionality to a linux library.</p> <p>However even after 'make install' the program I'm trying to confirm functionality is linking to the previous version.</p> <p>So 'make install' puts my libraries here: '/usr/local/lib' and '/usr/local/include'</p> <p>I used the following on configure: ./configure --enable-maintainer-mode --enable-uninstalled-build 'CFLAGS=-g -O0' 'CXXFLAGS=-g -O0' 'JFLAGS=-g -O0' 'FFLAGS=-g -O0' CPPFLAGS='-L /usr/local/lib/ -I /usr/local/include/gpod-1.0/'</p> <p>But when I try to execute the program I get 'Symbol not found' and 'Plugin can not load'</p> <p>When I ldd the produced plugin so: ~/Development/rhythmbox/plugins/ipod/.libs$ ldd libipod.so</p> <p>linux-gate.so.1 => (0x00d97000)</p> <p>librhythmbox-core.so.1 => /home/gary/Development/rhythmbox/shell/.libs/librhythmbox core.so.1 (0x009ad000)</p> <p><strong>libgpod.so.4 => /usr/lib/libgpod.so.4 (0x00509000)</strong></p> <p>The emphasis being stressed because it's obviously linking to the wrong library... When I look in the make file I see the following:</p> <p>IPOD_CFLAGS = -pthread -I/usr/local/include/gpod-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 </p> <p>IPOD_LIBS = -pthread -L/usr/local/lib -lgpod -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lpng12 -lgthread-2.0 -lrt -lglib-2.0 </p> <p>So the CPPFLAGS are being passed through to the plugin, and in .deps I see the proper header file being included... IE:</p> <p>~/Development/rhythmbox/plugins/ipod/.deps$ less rb-ipod-source.Po | grep gpod</p> <p>/usr/local/include/gpod-1.0/gpod/itdb.h ../../lib/eel-gconf-extensions.h </p> <p>/usr/local/include/gpod-1.0/gpod/itdb.h:</p> <p>Ubuntu 10.10</p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload