Hi,
Again, maybe this is simple, I've wasted a couple of days and no further forward. And maybe this should be on the fpcupdeluxe forum pages since it is a difference between the RC and a more recent release.
I was advised on the forum to move from 2.0.0RC3 to Fixes / Fixes (2.0.1 / 3.2.0) because of an issue I've was having (I cannot even remember what it was).
I am now having issues with a DYLIB not found (it's one I create). With 2.0.0RC3 the DYLIB is found and the test app builds, with the same project and building with fixes/fixes, I always get the error that the DYLIB cannot be found. The settings for the projects in each version are the same. I have set 'Use Application Bundle' and have created it and have ticked 'Apply Convention':
Messages, Warnings: 17, Hints: 78
Warning: other unit files search path (aka unit path) of "EMPServerAPITest" contains "/Users/kevin/Dropbox/Lazarus Components/TMSLCLCloudLazarusPkgReg", which belongs to package "LCLTMSCloudLazarusPkg"
(*
SNIP.....
*)
(9001) Assembling (pipe) /Users/kevin/Dropbox/Lazarus/EMPSecureRESTAPI/lib/x86_64-darwin/uempservertest.s
(9001) Assembling (pipe) /Users/kevin/Dropbox/Lazarus/EMPSecureRESTAPI/lib/x86_64-darwin/EMPServerAPITest.s
(9022) Compiling resource /Users/kevin/Dropbox/Lazarus/EMPSecureRESTAPI/lib/x86_64-darwin/EMPServerAPITest.or
(9015) Linking /Users/kevin/Dropbox/Lazarus/EMPSecureRESTAPI/x86_64-darwin/EMPServerAPITest
ld: library not found for -ldbxserverapi
An error occurred while linking
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /Users/kevin/fpcupdeluxe/fixes/fpc/bin/x86_64-darwin/ppcx64 returned an error exitcode
I have the DYLIB path set to the app folder, but have copied both libDYLIBNAME.dylib and DYLIBNAME.dylib to /usr/local/lib as well.
I know the only difference should be the IDE Tools->Options since the Project Group and projects(s) settings are common.
I have the following compiler directives in both and am defining the DYLIB as below. As noted, no issue in 2.0.2RC3, but cannot find the DYLIB in fixes/fixes.
My Question: Can anyone point me in the direction of what I should be looking for that might be the difference between the two versions that would cause the DYLIB not to be found, please?
unit uEMPServerTest;
{$mode objfpc}{$H+}
{$ModeSwitch Unicodestrings}
{$ModeSwitch pChartoString}
interface
uses
(*
SNIP.....
*)
{$IFDEF MSWINDOWS}
EmpyreanAPIDLL = 'DbXServerAPI.dll';
{$ENDIF MSWINDOWS}
{$IFDEF DARWIN}
EmpyreanAPIDLL = 'libdbxserverapi.dylib';
{$linklib libdbxserverapi.dylib}
{$ENDIF DARWIN}
I'm happy to provide more/all of the code if required/needed. I just did not want a 20 page question when the real issues is that the test application builds with 2.0.0RC3 and does not build with Fixes/Fixes.
Thanks,
Kevin