Re: [Qgis-user] Configuration for PostgreSQL

2022-05-12 Thread Richard Duivenvoorde via Qgis-user

Hi,

This is just the way the Linux install's software.
I think you installed only postgres-server...

And yes you probably need a lot of header files (often residing the in the 
'*-dev' packages).

But have a look into:

https://github.com/qgis/QGIS/blob/master/INSTALL.md

There is a lot of info to compile it on Debian or Ubuntu, including the full 
apt-get line to get all the dependencies:

https://github.com/qgis/QGIS/blob/master/INSTALL.md#33-install-build-dependencies
(pick the focal line)

A question: do you really want to compile yourself? Or do you just want to run 
QGIS?
Because, if the last: 
https://qgis.org/en/site/forusers/alldownloads.html#quickstart

FYI: my line to build/install master (I'm on Debian), after you checked out 
from git. From withing the ~/git/qgis folder:

 # MASTER DEBUG with server and 3D in ~/bin/qgis_
 mkdir build;cd build;ccmake -GNinja -DBUILD_TESTING=FALSE -DENABLE_TESTS=OFF 
-DWITH_SERVER=TRUE -DWITH_3D=TRUE 
-DCMAKE_INSTALL_PREFIX=~/bin/qgis_/master/debug -DWITH_QWTPOLAR=OFF 
-DCMAKE_BUILD_TYPE=Debug 
-DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so 
-DWITH_GRASS=TRUE -DGRASS_PREFIX7=/usr/lib/grass78 ..

Hope this helps.

Regards,

Richard Duivenvoorde


On 5/12/22 15:09, vicentesmith via Qgis-user wrote:

Hello,
I'm new to QGIS and this is my first try at installing it (using cmake). My 
system is running Ubuntu 20.04 so I used /apt/ to install PostgreSQL. /apt/ 
decided that the way to go was to install all the components at the 
/usr/lib/postgresql/12 subdirectory, where it created 2 subdirectories bin and 
lib, but not include. I modified the cmake menu accordingly:
  POSTGRESQL_PREFIX                /usr/lib/postgresql/12
  POSTGRES_CONFIG                  /usr/lib/postgresql/12/bin/pg_config
  POSTGRES_CONFIG_PREFER_PATH      /usr/lib/postgresql/12/bin
  POSTGRES_INCLUDE_DIR             /usr/include/postgresql
  POSTGRES_LIBRARY                 /usr/lib/postgresql/12/lib
However, the configuration still fails with:
  Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
  Found PostgreSQL: /usr/lib/postgresql/12/lib
This makes sense because (1) I'm not really telling it which library to load 
and (2) there is no /usr/include/postgresql subdirectory (although I could 
manually create /usr/lib/postgresql/12/include). Just for completion, the 
/usr/lib/postgresql/12/lib subdirectory has the following files:
_int.so              dict_xsyn.so lo.so plpgsql.so 
           utf8_and_euc_jp.so
adminpack.so earthdistance.so ltree.so 
              postgres_fdw.so       utf8_and_euc_kr.so
amcheck.so           euc2004_sjis2004.so moddatetime.so 
refint.so             utf8_and_euc_tw.so
ascii_and_mic.so     euc_cn_and_mic.so pageinspect.so seg.so 
               utf8_and_gb18030.so
auth_delay.so        euc_jp_and_sjis.so passwordcheck.so 
sepgsql.so            
utf8_and_gbk.so
auto_explain.so      euc_kr_and_mic.so      pg_buffercache.so sslinfo.so 
           utf8_and_iso8859.so
autoinc.so           euc_tw_and_big5.so     pg_freespacemap.so 
tablefunc.so          utf8_and_iso8859_1.so
bitcode              file_fdw.so            pg_prewarm.so tcn.so 
               utf8_and_johab.so
bloom.so fuzzystrmatch.so       
pg_stat_statements.so  test_decoding.so      utf8_and_sjis.so
btree_gin.so hstore.so              pg_trgm.so             
tsm_system_rows.so    utf8_and_sjis2004.so
btree_gist.so        insert_username.so     pg_visibility.so       
tsm_system_time.so    utf8_and_uhc.so
citext.so isn.so pgcrypto.so 
unaccent.so           utf8_and_win.so
cube.so              latin2_and_win1250.so pgoutput.so 
           utf8_and_ascii.so uuid-ossp.so 
cyrillic_and_mic.so  latin_and_mic.so pgrowlocks.so       
   utf8_and_big5.so
dblink.so libpqwalreceiver.so 
pgstattuple.so         
utf8_and_cyrillic.so
dict_int.so llvmjit.so pgxml.so             
  utf8_and_euc2004.so
dict_snowball.so     llvmjit_types.bc       pgxs                   
utf8_and_euc_cn.so

My questions are which library(ies) QGIS needs for building and if QGIS also 
needs any header from PostgreSQL. Thanks.

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



[Qgis-user] Configuration for PostgreSQL

2022-05-12 Thread vicentesmith via Qgis-user
Hello,
I'm new to QGIS and this is my first try at installing it (using cmake). My 
system is running Ubuntu 20.04 so I used apt to install PostgreSQL. apt decided 
that the way to go was to install all the components at the 
/usr/lib/postgresql/12 subdirectory, where it created 2 subdirectories bin and 
lib, but not include. I modified the cmake menu accordingly:
POSTGRESQL_PREFIX /usr/lib/postgresql/12
POSTGRES_CONFIG /usr/lib/postgresql/12/bin/pg_config
POSTGRES_CONFIG_PREFER_PATH /usr/lib/postgresql/12/bin
POSTGRES_INCLUDE_DIR /usr/include/postgresql
POSTGRES_LIBRARY /usr/lib/postgresql/12/lib
However, the configuration still fails with:
Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
Found PostgreSQL: /usr/lib/postgresql/12/lib
This makes sense because (1) I'm not really telling it which library to load 
and (2) there is no /usr/include/postgresql subdirectory (although I could 
manually create /usr/lib/postgresql/12/include). Just for completion, the 
/usr/lib/postgresql/12/lib subdirectory has the following files:
_int.so dict_xsyn.so lo.soplpgsql.so utf8_and_euc_jp.so
adminpack.soearthdistance.soltree.so postgres_fdw.so utf8_and_euc_kr.so
amcheck.so euc2004_sjis2004.so moddatetime.sorefint.so utf8_and_euc_tw.so
ascii_and_mic.so euc_cn_and_mic.so pageinspect.soseg.so utf8_and_gb18030.so
auth_delay.so euc_jp_and_sjis.so passwordcheck.sosepgsql.so utf8_and_gbk.so
auto_explain.so euc_kr_and_mic.so pg_buffercache.so sslinfo.so 
utf8_and_iso8859.so
autoinc.so euc_tw_and_big5.so pg_freespacemap.so tablefunc.so 
utf8_and_iso8859_1.so
bitcode file_fdw.so pg_prewarm.so tcn.so utf8_and_johab.so
bloom.sofuzzystrmatch.so pg_stat_statements.so test_decoding.so utf8_and_sjis.so
btree_gin.so hstore.so pg_trgm.so tsm_system_rows.so utf8_and_sjis2004.so
btree_gist.so insert_username.so pg_visibility.so tsm_system_time.so 
utf8_and_uhc.so
citext.soisn.sopgcrypto.sounaccent.so utf8_and_win.so
cube.so latin2_and_win1250.so pgoutput.so utf8_and_ascii.so uuid-ossp.so
cyrillic_and_mic.so latin_and_mic.so pgrowlocks.so utf8_and_big5.so
dblink.solibpqwalreceiver.sopgstattuple.so utf8_and_cyrillic.so
dict_int.so llvmjit.sopgxml.so utf8_and_euc2004.so
dict_snowball.so llvmjit_types.bc pgxs utf8_and_euc_cn.so

My questions are which library(ies) QGIS needs for building and if QGIS also 
needs any header from PostgreSQL. Thanks.___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user