Forum > Audio and Video

Loading so,dll libraries from program folder or specified folder.

(1/1)

Guva:
Hi everyone, I made a separate topic. In one of the libraries (it seems to be uade), it required several more dll-so. Here's a solution that works!!! 

Add to the Lazarus project settings: Project → Project Options → Compiler Options → Custom Options.


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ----k"-rpath=$ORIGIN"
For the specified folder
For example, for a nearby folder, "your_folder"


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ----k"-rpath=$ORIGIN/your_folder"

Thaddy:
Are you sure this works for the internal linker too?

Fred vS:
@Guva: EXCELLENT!

Many thanks, it solves perfectly the problems when the libraries are not in "traditional" directories, like NetBSD, OpenBSD or DragonFlyBSD.

For example in NetBSD adding this parameters you dont need to create symlinks to /usr/lib/ or  /usr/local/lib/ :


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ----k"-rpath=/usr/pkg/lib"-k"-rpath=/usr/X11R7/lib"
 ;D

Navigation

[0] Message Index

Go to full version