Re: [postgis-users] JSONC compilation issues (Regina Obe)

2023-09-21 Thread Regina Obe via postgis-users
I use environment variables too, I’m just saying stuff it in a PKG_CONFIG_PATH 
environment variable instead.  That is the more modern way of doing things and 
things like PROJ (the proj-dir is deprecated) not even sure it works anymore.  
So I stuff PROJ in my PKG_CONFIG_PATH environment variable as I do SQLite etc.

 

From: postgis-users  On Behalf Of Light 
via postgis-users
Sent: Thursday, September 21, 2023 7:18 PM
To: postgis-users@lists.osgeo.org
Cc: Light 
Subject: Re: [postgis-users] JSONC compilation issues (Regina Obe)

 

Regina,

 

Environment variables are a great way to build things.
I used json-c version=0.13 in the past, using --with-jsondir and had no 
compilation failures.
But after I upgraded to json-c=0.15, the folder changed and became lib64.
I tried to compile json-c-0.13, 0.14, and 0.15, and found that only 0.13 is 
lib, and the others are lib64.
Summary, json-c-0.14>=lib64.

Thanks,
Wang Dapeng

___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users


Re: [postgis-users] JSONC compilation issues (Regina Obe)

2023-09-21 Thread Light via postgis-users
Regina,

Environment variables are a great way to build things.
I used json-c version=0.13 in the past, using --with-jsondir and had no
compilation failures.
But after I upgraded to json-c=0.15, the folder changed and became lib64.
I tried to compile json-c-0.13, 0.14, and 0.15, and found that only 0.13 is
lib, and the others are lib64.
Summary, json-c-0.14>=lib64.

Thanks,
Wang Dapeng
___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users


Re: [postgis-users] JSONC compilation issues

2023-09-21 Thread Regina Obe via postgis-users
Have you tried using pkg config instead.

I don’t have mine in lib64 issue but I think using pkg-config should fix it

 

export 
PKG_CONFIG_PATH=/usr/local/json-c-0.15//lib64/pkgconfig:${PKG_CONFIG_PATH}

 

From: postgis-users  On Behalf Of Light
Sent: Thursday, September 21, 2023 5:24 AM
To: postgis-users@lists.osgeo.org
Subject: [postgis-users] JSONC compilation issues

 

Hi,

postgis 3.3.4
json-c 0.15

When I compiled 334, jsonc did not use environment variables. I used 
--with-jsondir=/usr/local/json-c-0.15. I confirmed that json-c-0.15 is 
installed.
configure record:
---
...
Check "/usr/local/json-c-0.15/include/json-c/json.h"...yes
Check json_object_get... in -ljson-c no
...
JSON-C support: no
...
---


Check line 985 of configure.ac <http://configure.ac> , 
`JSON_LDFLAGS="-L$JSONDIR/lib"`. The reason here is that json_object_get cannot 
be found in jsonc later.
My json-c-0.15 folder is not called "lib", but "lib64".

Is it necessary to make a judgment here, for 32-bit and 64-bit?

When I modify 
`JSON_LDFLAGS="-L$JSONDIR/lib"`==>`JSON_LDFLAGS="-L$JSONDIR/lib64"` everything 
works fine.

 

Thanks,

Wang Dapeng

___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users


[postgis-users] JSONC compilation issues

2023-09-21 Thread Light
Hi,

postgis 3.3.4
json-c 0.15

When I compiled 334, jsonc did not use environment variables. I used
--with-jsondir=/usr/local/json-c-0.15. I confirmed that json-c-0.15 is
installed.
configure record:
---
...
Check "/usr/local/json-c-0.15/include/json-c/json.h"...yes
Check json_object_get... in -ljson-c no
...
JSON-C support: no
...
---


Check line 985 of configure.ac, `JSON_LDFLAGS="-L$JSONDIR/lib"`. The reason
here is that json_object_get cannot be found in jsonc later.
My json-c-0.15 folder is not called "lib", but "lib64".

Is it necessary to make a judgment here, for 32-bit and 64-bit?

When I modify
`JSON_LDFLAGS="-L$JSONDIR/lib"`==>`JSON_LDFLAGS="-L$JSONDIR/lib64"`
everything works fine.

Thanks,
Wang Dapeng
___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users