Pre2 postgis woes

3 Messages Forum Options Options
Embed this topic
Permalink
William Kyngesburye
Pre2 postgis woes
Reply Threaded MoreMore options
Print post
Permalink
I can't add any postgis layers in 1.0p2.  I can connect to get the  
layer list, but any layer I try to add gives an error that it's an  
invalid layer (and that's all it says).  1.0p1 has no problem.

Now, I got thoroughly distracted by a project a couple weeks ago when  
I first noticed this, and just got back to it.  I have this nagging  
suspicion that I had already figured it out, likely as a simple  
runtime thing (ie not recompiling with some other library version or  
config option).  But I didn't find any notes, or any emails, with this  
info.  Maybe I didn't figure it out...

This is with my OSX builds (of course).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan


_______________________________________________
Qgis-user mailing list
Qgis-user@...
http://lists.osgeo.org/mailman/listinfo/qgis-user
John C. Tull
Re: Pre2 postgis woes
Reply Threaded MoreMore options
Print post
Permalink
My own builds are working, but this is from trunk. I use your postgis,  
but may have skipped your last revision.

John

On Dec 3, 2008, at 19:02, William Kyngesburye <woklist@...>  
wrote:

> I can't add any postgis layers in 1.0p2.  I can connect to get the  
> layer list, but any layer I try to add gives an error that it's an  
> invalid layer (and that's all it says).  1.0p1 has no problem.
>
> Now, I got thoroughly distracted by a project a couple weeks ago  
> when I first noticed this, and just got back to it.  I have this  
> nagging suspicion that I had already figured it out, likely as a  
> simple runtime thing (ie not recompiling with some other library  
> version or config option).  But I didn't find any notes, or any  
> emails, with this info.  Maybe I didn't figure it out...
>
> This is with my OSX builds (of course).
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
> fighting, and all for things that the beasts of the jungle would not  
> deign to possess - money to purchase the effeminate pleasures of  
> weaklings.  And yet withal bound down by silly customs that make  
> them slaves to their unhappy lot while firm in the belief that they  
> be the lords of creation enjoying the only real pleasures of  
> existence....
>
> - the wisdom of Tarzan
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@...
> http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
Qgis-user@...
http://lists.osgeo.org/mailman/listinfo/qgis-user
William Kyngesburye
Re: Pre2 postgis woes
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by William Kyngesburye
On Dec 3, 2008, at 9:02 PM, William Kyngesburye wrote:

> I can't add any postgis layers in 1.0p2.  I can connect to get the  
> layer list, but any layer I try to add gives an error that it's an  
> invalid layer (and that's all it says).  1.0p1 has no problem.
>
> Now, I got thoroughly distracted by a project a couple weeks ago  
> when I first noticed this, and just got back to it.  I have this  
> nagging suspicion that I had already figured it out, likely as a  
> simple runtime thing (ie not recompiling with some other library  
> version or config option).  But I didn't find any notes, or any  
> emails, with this info.  Maybe I didn't figure it out...
>
> This is with my OSX builds (of course).
>

Well, to answer my own question, it was a bizarre bundling issue.  In  
a random thought to simplify a bit, when bundling the Postgres library  
libpq I renamed it to just 'libpq.dylib', leaving out the library  
version.  I'm sure I got all the install_name references to it in  
Qgis, but either I missed one (there were no errors in the console) or  
libpq just didn't like it.

So, left it as libpq.5.dylib, changed all the install_name references  
to match, and no more invalid postgis layers.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy


_______________________________________________
Qgis-user mailing list
Qgis-user@...
http://lists.osgeo.org/mailman/listinfo/qgis-user