Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Help on plugin development on Linux : missing symbols
dje:
Hi all !
I am quite new to Linux.
I have regularly a problem with symbols on this OS.
I have the following error message:
--- Code: ---ERROR: /media/hda3/codeblocks/trunk/src/devel/share/codeblocks/plugins/ThreadSearch.so: not loaded (missing symbols?)
--- End code ---
I had it for a while, I tested lots of things then, suddenly, it worked (even if I didn't understand why).
I worked two days and I am back with my symbols problem. I just added one line of code with event processing.
Lots of things are present on the forums and it seems that there are several parameters that may lead to this problem.
So, my question:
How do I have to proceed to avoid this :evil: error message ?
My command to run the plugin in C::B is
--- Code: ---Executing: /media/hda3/codeblocks/trunk/src/devel/codeblocks --debug-log -ns --prefix=/media/hda3/codeblocks/trunk/src/devel (in /media/hda3/codeblocks/trunk/src/devel)
--- End code ---
The plugin and its zip are at the right place (ThreadSearch.so or libThreadSearch.so and ThreadSearch.zip).
Debug info are present.
cbplugin.h has the right version
precompiled headers are up-to-date and have been regenerated
Thanks for any help/idea,
Dje
tiwag:
hi dje
did you run your CB from a script, which looks like this one ?
--- Code: ---#!/bin/sh
APP_DIR=/home/tiwag/CodeBlocks/working
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
$APP_DIR/codeblocks $@
--- End code ---
it sets the LD_LIBRARY_PATH environment variable so that the dynamic libs can be found
if you have a development version running you need to update the APP_DIR to point to your working version,
where the codeblocks executable is located.
or run your CB debuggee from your working CB, then the LD_LIBRARY_PATH will be set automatically,
when you run the CB debuggee.
very confusing, isn't it ? :P
i hope it's clear to you
brgds
tiwag
dje:
--- Quote from: tiwag on September 04, 2007, 06:25:19 pm ---did you run your CB from a script, which looks like this one ?
--- End quote ---
Both gives the same result (missing symbols) !
tiwag:
all other plugin's are working ?
but threadsearch doesn't ?
then you have most probably a home-made problem in your code rather than a library-search-path problem.
tiwag:
--- Quote from: dje on September 04, 2007, 09:19:45 pm ---Both gives the same result (missing symbols) !
--- End quote ---
another problem which i had several times could be,
that you have added some methods (=symbols) to your library
and the library wasn't rebuilt properly
then a situation can happen, that your code tries to find the symbol
in your dynamic lib but it doesn't exist in the lib on your harddisk.
try deleting manually the library, rebuild everything and check,
if your rebuilt library is in the right place, where your other code
tries to locate the library.
hth, brgds
tiwag
Navigation
[0] Message Index
[#] Next page
Go to full version