Thread: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; referencing files and using search path
Status: Alpha
Brought to you by:
alkirkus
From: Olaf v. O. <ol...@ad...> - 2002-05-29 19:39:28
|
Libpq.a and libpq-fe.h; referencing files and using search path As I have postgresql installed in (subdirectiries of) /usr/local/pgsql/ The current targets settings for HEADER Search Path do not work for me. So I have added the Search Path: to HEADER: /usr/local/pgsql/include/ Hard coding an included library is another problem (for me): build-error: MasterObjectFile.Combine /Developer/TVOproducts/Cocoa Psql.build/Cocoa Psql.build/Objects-normal/ProjectBuilderMasterObjectFile.o ...skipped Cocoa Psql.app/Contents/MacOS/Cocoa Psql for lack of /sw/lib/libpq.a... Therefore I wonder if files to be included can be added without a path. Any way I used to get away with adding some folders (/sw/lib/) and an alias to have the libpq.a being included in the project. Now I had to make a copy of the file and place it in the folder /sw/lib/ As this is not the right solution, we stick with the (default) reference to /usr/local/pgsql/lib/libpq.a I keep wondering though why the LIBRAY_SEARCH_PATH doesn't find the lib. |
From: Ted P. <te...@sy...> - 2002-05-30 11:06:29
|
I must always 'clean' the PB project after changing any of the paths. So that has been my MO. Get the CVS, open the project, check the paths, 'clean all'. Usually this fixes any problems Ted -----Original Message----- From: Olaf van Oudenallen <ol...@ad...> To: coc...@li... Date: Wed, 29 May 2002 19:34:42 +0200 Subject: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; referencing files and using search path > Libpq.a and libpq-fe.h; referencing files and using search path > As I have postgresql installed in (subdirectiries of) /usr/local/pgsql/ > The current targets settings for HEADER Search Path do not work for me. > So I have added the Search Path: > to HEADER: /usr/local/pgsql/include/ > > Hard coding an included library is another problem (for me): build-error: > MasterObjectFile.Combine /Developer/TVOproducts/Cocoa Psql.build/ Cocoa > Psql.build/Objects-normal/ProjectBuilderMasterObjectFile.o > ...skipped Cocoa Psql.app/Contents/MacOS/Cocoa Psql for lack of > /sw/lib/libpq.a... > Therefore I wonder if files to be included can be added without a path. > Any way I used to get away with adding some folders (/sw/lib/) and an > alias to have the libpq.a being included in the project. Now I had to > make a copy of the file and place it in the folder /sw/lib/ > As this is not the right solution, we stick with the (default) reference > to /usr/local/pgsql/lib/libpq.a > I keep wondering though why the LIBRAY_SEARCH_PATH doesn't find the lib. > |
From: Olaf v. O. <ol...@ad...> - 2002-05-30 17:11:49
|
Hi Ted, Thanks for your reply on this issue. Her is what I did: Place a copy of the libpq.a in the Cocoapsql folder Change the path to the existing libpq.a file to ./Cocoapsql Clean the target Remove the libpq.a file form the ./Cocoapsql folder >> now the linker should find the libpq.a file through the LIBRARY_SEARCH_PATH path(es) Build: error... can find libpq.a Headers are found with the help of the HEADER_SEARCH_PATH path. I wonder why the lib is not found. I added a copy of the libpq.a in another (different) folder with the Search Path reference option. The Search Path was added to the LIBRARY_SEARCH_PATH but the file ("info") still had an absolute path. So that didn't help either. I would appreciate your contribution. Thanks, Olaf On donderdag, mei 30, 2002, at 01:04 , Ted Petrosky wrote: > > I must always 'clean' the PB project after changing any of the paths. > So that > has been my MO. Get the CVS, open the project, check the paths, 'clean > all'. > Usually this fixes any problems > > Ted > > > > -----Original Message----- > From: Olaf van Oudenallen <ol...@ad...> > To: coc...@li... > Date: Wed, 29 May 2002 19:34:42 +0200 > Subject: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; > referencing > files and using search path > >> Libpq.a and libpq-fe.h; referencing files and using search path >> As I have postgresql installed in (subdirectiries of) /usr/local/pgsql/ >> The current targets settings for HEADER Search Path do not work for me. >> So I have added the Search Path: >> to HEADER: /usr/local/pgsql/include/ >> >> Hard coding an included library is another problem (for me): >> build-error: >> MasterObjectFile.Combine /Developer/TVOproducts/Cocoa Psql.build/ > Cocoa >> Psql.build/Objects-normal/ProjectBuilderMasterObjectFile.o >> ...skipped Cocoa Psql.app/Contents/MacOS/Cocoa Psql for lack of >> /sw/lib/libpq.a... >> Therefore I wonder if files to be included can be added without a path. >> Any way I used to get away with adding some folders (/sw/lib/) and an >> alias to have the libpq.a being included in the project. Now I had to >> make a copy of the file and place it in the folder /sw/lib/ >> As this is not the right solution, we stick with the (default) >> reference >> to /usr/local/pgsql/lib/libpq.a >> I keep wondering though why the LIBRAY_SEARCH_PATH doesn't find the > lib. >> > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Cocoapsql-developer mailing list > Coc...@li... > https://lists.sourceforge.net/lists/listinfo/cocoapsql-developer |
From: Ted P. <te...@sy...> - 2002-05-31 02:25:10
|
I am set up as follows /usr/local/pgsql/lib /usr/local/pgsql/include 1. from the 'files' tab drill down the frameworks => linked frameworks delete the reference to libpq.a 2. targets tab ... files and build section.... delete any reference to libpq.a 3. targets tab build settings CC compiler settings other compiler flags add this line -I/usr/local/pgsql/include Linker settings other linker flags add this line -L/usr/local/pgsql/lib -lpq at the bottom of this area: Search Paths: remove any reference to sw.... from two places (headers and libraries) so they only show a reference to /usr/local/pgsql/include and /lib.... then clean all targets.... and do a build. PB will now look only to the other paths for libpq.a. good luck Ted -----Original Message----- From: Olaf van Oudenallen <ol...@ad...> To: "Ted Petrosky" <te...@sy...> Date: Thu, 30 May 2002 16:49:49 +0200 Subject: Re: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; referencing files and using search path > Hi Ted, > > Thanks for your reply on this issue. > Her is what I did: > Place a copy of the libpq.a in the Cocoapsql folder > Change the path to the existing libpq.a file to ./Cocoapsql > Clean the target > Remove the libpq.a file form the ./Cocoapsql folder > >> now the linker should find the libpq.a file through the > LIBRARY_SEARCH_PATH path(es) > Build: error... can find libpq.a > > Headers are found with the help of the HEADER_SEARCH_PATH path. I wonder > why the lib is not found. > |
From: Olaf v. O. <ol...@ad...> - 2002-05-30 19:22:05
|
I have tried to update the repositry so that now there should be an localised copy of the ConnPrefs.nib in the Englis.lproj folder to update. The repositry (online .html) still doesn't reflect this assumed situation. And there is still a ConnPrefs.nib in the Cocoapsql folder. Hope your copy of the project doesn't complain about the missing ConnPrefs.nib anymore. Plase let me know. Olaf On donderdag, mei 30, 2002, at 01:04 , Ted Petrosky wrote: > > I must always 'clean' the PB project after changing any of the paths. > So that > has been my MO. Get the CVS, open the project, check the paths, 'clean > all'. > Usually this fixes any problems > > Ted > > > > -----Original Message----- > From: Olaf van Oudenallen <ol...@ad...> > To: coc...@li... > Date: Wed, 29 May 2002 19:34:42 +0200 > Subject: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; > referencing > files and using search path > >> Libpq.a and libpq-fe.h; referencing files and using search path >> As I have postgresql installed in (subdirectiries of) /usr/local/pgsql/ >> The current targets settings for HEADER Search Path do not work for me. >> So I have added the Search Path: >> to HEADER: /usr/local/pgsql/include/ >> >> Hard coding an included library is another problem (for me): >> build-error: >> MasterObjectFile.Combine /Developer/TVOproducts/Cocoa Psql.build/ > Cocoa >> Psql.build/Objects-normal/ProjectBuilderMasterObjectFile.o >> ...skipped Cocoa Psql.app/Contents/MacOS/Cocoa Psql for lack of >> /sw/lib/libpq.a... >> Therefore I wonder if files to be included can be added without a path. >> Any way I used to get away with adding some folders (/sw/lib/) and an >> alias to have the libpq.a being included in the project. Now I had to >> make a copy of the file and place it in the folder /sw/lib/ >> As this is not the right solution, we stick with the (default) >> reference >> to /usr/local/pgsql/lib/libpq.a >> I keep wondering though why the LIBRAY_SEARCH_PATH doesn't find the > lib. >> > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Cocoapsql-developer mailing list > Coc...@li... > https://lists.sourceforge.net/lists/listinfo/cocoapsql-developer |