Hi, sorry these posts are scattering everywhere, I'm still getting the hang of this.
I'm trying to build a simple project in KDevelop using Amygdala, and I'm having a few problems with the libraries. The project builds OK but when I try to execute it I get the message: './firstnet: error while loading shared libraries: libamygdala.o.0: cannot open shared object file: No such file or directory'.
I've added libamygdala.o.0 to the make file, both within the kdevelop ide and manually, directly into the makefile, with the full path. I'm also not sure which file I actually need to import. I assumed the libamygdala.o, so I'm not even sure where this libamygdala.o.0 is coming from.
Does anybody know what I am doing wrong? Any help would be greatly appreciated.
Thanks very much.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In case anyone is still looking at this, I solved the problem. In the LD_FLAGS (linker flags) box in the Automake Manager (the exact location of this varies from version to version, on mine, version 3.4.4, it's in the libraries tab accessed by clicking the Properties button on the lower Automake window, after selecting the target you want to link to in the box). You have to put both the linktime path '-L/path/to/library' and the runtime path
'-R/path/to/library' in the text box. I hope this helps someone.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, sorry these posts are scattering everywhere, I'm still getting the hang of this.
I'm trying to build a simple project in KDevelop using Amygdala, and I'm having a few problems with the libraries. The project builds OK but when I try to execute it I get the message: './firstnet: error while loading shared libraries: libamygdala.o.0: cannot open shared object file: No such file or directory'.
I've added libamygdala.o.0 to the make file, both within the kdevelop ide and manually, directly into the makefile, with the full path. I'm also not sure which file I actually need to import. I assumed the libamygdala.o, so I'm not even sure where this libamygdala.o.0 is coming from.
Does anybody know what I am doing wrong? Any help would be greatly appreciated.
Thanks very much.
Hi,
In case anyone is still looking at this, I solved the problem. In the LD_FLAGS (linker flags) box in the Automake Manager (the exact location of this varies from version to version, on mine, version 3.4.4, it's in the libraries tab accessed by clicking the Properties button on the lower Automake window, after selecting the target you want to link to in the box). You have to put both the linktime path '-L/path/to/library' and the runtime path
'-R/path/to/library' in the text box. I hope this helps someone.