Re: [fpc-pascal] Testing shared libraries compiled with FPC/Lazarus under Linux
Indeed. You can put the following in your .bashrc file: export LD_LIBRARY_PAH=. Alan On Sun, Apr 8, 2012 at 3:00 PM, Tomas Hajny wrote: > On 9 Apr 12, at 0:42, patspiper wrote: > > > Is it possible to test a shared library compiled with Lazarus/FPC under > > Linux without copying that library to /usr/lib or fiddling with the OS > > configuration to locate them? > > > > Under Windows, it is enough to have the testing executable (host > > application) in the same folder as the shared library. Is something of > > the kind possible in Linux? > > I believe that LD_LIBRARY_PATH environment variable should do that > under Un*x platforms in general (i.e. including Linux). > > Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Testing shared libraries compiled with FPC/Lazarus under Linux
On 09/04/12 17:28, Alan Krause wrote: Indeed. You can put the following in your .bashrc file: export LD_LIBRARY_PAH=. Not recommended security wise, especially that it is needed for testing only. Stephano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Testing shared libraries compiled with FPC/Lazarus under Linux
On 09 Apr 2012, at 16:28, Alan Krause wrote: > Indeed. You can put the following in your .bashrc file: > > export LD_LIBRARY_PAH=. Make sure to never do that on a multi-user system, or you open yourself up to easy hijacking of your account (in the same way that adding "." to your PATH does). Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] [Help] fppkg on Windows
I get the following error when trying to install “lazmkunit” or “gecko” using fppkg. === C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg install lazmkunit An unhandled exception occurred at $004377D5 : EProcess : Failed to execute fpc.exe -iVTPTO : 2 $004377D5 $0040F953 $00412B36 $004138D5 $00414553 $00413AE5 $0041568B $0041E3E3 The FPC Package tool encountered the following error: [lazmkunit] Execution of FPMake build failed === FPC version = 2.6.0 Lazarus version = 0.9.30.4 Windows version = XP SP3 fppkg.cfg === [Defaults] ConfigVersion=4 LocalRepository={AppConfigDir} BuildDir={LocalRepository}build\ ArchivesDir={LocalRepository}archives\ CompilerConfigDir={LocalRepository}config\ RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto CompilerConfig=default FPMakeCompilerConfig=default Downloader=lnet FPMakeOptions=--lazarusdir=C:\lazarus\ === Compiler Config File === [Defaults] ConfigVersion=4 GlobalPrefix=C:\lazarus\fpc\2.6.0\ LocalPrefix={LocalRepository} GlobalInstallDir={GlobalPrefix} LocalInstallDir={LocalPrefix} Compiler=fpc.exe OS=win32 CPU=i386 Version=2.6.0 === Hope you can help me solve this problem. Sincerely, Lars ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Best practices on using classes for subroutine libraries
When I need a variation in procedures (standalone, not a class or object procedure) I use across my applications, I often find it more convenient to create a copy the unit into the project folder and make the changes there. Sometimes they get merged back into the shared unit or not at all. I am thinking now of using classes with procedures, without any data in them, so that I subclass them in the projects where I need to change them. Are the some good examples and some known good working practices on working with procedures in this way? -- Frank Church === http://devblog.brahmancreations.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal