I have tried to initialize the library using this function, but no result, always the same message. If yes, do you have any idea on how to build this library ? From the Postgres sources ? It is highly frustrating, because if I do something with Lazarus/fpc it will have to run on a Mac along with Postgres, not on Ubuntu.īut, a question : Could it be a mismatch in the bitsize of the library, since Lazarus is built in 32 bits on the Mac and Postgres is 64 bits ? So, in general the loading mechanism seems to work, but there is for sure a problem on MacOS : today I have cleaned my original installation and re-installed the new packages with Lazarus 1.8.4, the problem is still present. It worked perfectly as soon as I had installed Postgres, wich brings the library (with another extension). In parallel to these tests I have installed Lazarus + fpc in Ubuntu on a VM and tried to build the same exemple as on OSX. So the result is exactly the same, apart of that the error message appears when I compile the Initialization Unit (Unit2 in my proto). In fact, there is no more chance to get to the library by proceding manually than there are by letting the system load this library automatically. If you can give me a clue on where to find a good doc about building fpc and/or its modules, I would be very grateful. I have tried to copy / rename libpq.dylib to /Developer/lazarus/ directory, beside the lazarus binary, but I still get the same message. But obviously some other modules do this because I can see that /usr/lib/dyld is in use when Lazarus/fpc are running. I am completely new to fpc and Lazarus, so it is difficult to me to evaluate the effort required to use simply the configuration file settings for reaching this library. It is so strange to have to proceed this way on systems able to establish logical links to physical files. Does it mean that I have to modify this code to fix the path to /usr/lib/libpq.dylib ? It is useless to build a rather complicated way to determine the suffix of the library and still ignoring its location. Looking to the code, I see that there is no assumption about the path where the library should be on Darwin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |