-
Notifications
You must be signed in to change notification settings - Fork 35
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
Problem with dynamically loaded 'libe-loader.so' #50
Comments
You need to pass these options to the linker somehow: I'm not familiar with lazarus in any way but maybe this helps, seems similar to what you want to do: HTH, Ola |
Thanks for your advice, but I can't it running. I tried to copile a wrapper library with Geany, the light C environment: But it cannot be loaded, nevertheless nm -D .. shows the exported functions. I also checked the cputimer example program. An executable works, but the compiled library cannot be loaded by LoadLibrary. But on the other side, using of the dynamic library libe-hal.so works fine. Only the three not so unimportant functions from libe-loader.so cannot access to the other library. What about recreate these only 3 functions in the pascal code. It cannot be so much code. But where are the source of the libe-loader library? Thanks in advance |
Are you cross-compiling? You probably need to add the -le-hal and -le-loader when you link your library too. Also you need to set |
Hello, Thanks |
The e-loader.c source is found in epiphany-libs/src/e-loader/src/ |
I compiled the Lazarus environment incl. FPC on a headless Parallella board with the image 01/30/2015. I want to access the functions of the Epiphany SDK via the dynamically loaded libraries libehal.so and libe-loader.so. So I converted the headers and implement the sample program of the third chronicle.
All the used functions of libe-hal.so are successful. But calling a function of the libe-loader.so gives a crash of the program with the following message:
symbol lookup error: /opt/adapteva/esdk/tools/host/lib/libe-loader.so: undefined symbol: e_alloc.
Obviously the second library needs the first one, but cannot or do not load the functions.
How can I resolve this conflict?
I do not have static libraries in order to write a wrapper with all exported functions in one library.
Thanks in advance
Alex
The text was updated successfully, but these errors were encountered: