#Cmake error

1 messages · Page 1 of 1 (latest)

prime holly
#

I'm trying to connect my postgreSQL database via c++ with pgadmin using Cmake and the libpqxx library thing but it says program files invalid i don't know what to do

bleak shore
#

So it looks like it can't actually find postgreSQL_LIBRARY

#

can you post your cmake files here, preferable not as something I have to download

bleak shore
#

It should be the CMakeLists.txt file in the project .

prime holly
bleak shore
#

whatever one you're attempting to compile in the video

#

its most likely that you don't have a library installed

prime holly
prime holly
bleak shore
#

my man....

#

i need to see the contents of them

#

lmao

#

I highly suspect that the issue is that you're missing the postgre library... as thats what the error text said

#

Have you installed Postgre ?

prime holly
prime holly
bleak shore
#

the development libraries or some application ?

bleak shore
prime holly
bleak shore
#

i assume that since that says tutorial or whatever that the issue lies in whatever you have installed, or don't have installed. if you can post me a link to the tutorial and/or somehow show me the actual file contents of what you're trying to do not in an image form I can help

prime holly
bleak shore
#

where did you get this amalgamation of files from ?

prime holly
bleak shore
#

yeah man, literally any of this.

#

start from the beginning and describe what you are trying to do. what you have done. and where all these files and whatnot came from.

prime holly
#

First of all I downloaded ppstgresql and then downloaded pgadmin4 and I created a database there.

bleak shore
prime holly
#

In this tutorial for beginners I will show you, how to connect to remote PostgreSQL database from c++ application. We will use official libpqxx connector in windows 10 x64, Visual Studio 2019.

Knowledge base page: http://en.wiki.imlint.org/Pqxx_tutorial

#PostgreSQL #database #libpqxx

help project
https://donatepay.ru/don/institute
https://ww...

▶ Play video
prime holly
bleak shore
#

and are attempting to build it , yeah ?

prime holly
# prime holly Then I watched this guy this is where I got the tutorial file and libpqxx

Hello Everyone! Today in this video I am going to step-by-step guide you on How to install PostgreSQL 15 for Relational DataBase Management System (RDBMS) on Windows 10. Windows (64-bit).
Then we will install pgAdmin 4 for using PostgreSQL in a Graphical User Interface (GUI). You can also use PostgreSQL Command-line Interface if you wish.

The ...

▶ Play video
#

Yep thats it.

bleak shore
#

sweet

#

About how to build it on windows

prime holly
bleak shore
#

so you should read the readme and attempt to follow those instructions

prime holly
prime holly
bleak shore
#

Yeah they do

#
Building libpqxx

There are two different ways of building libpqxx from the command line:

    Using CMake, on any system which supports it.
    On Unix-like systems, using a configure script.

"Unix-like" systems include GNU/Linux, Apple macOS and the BSD family, AIX, HP-UX, Irix, Solaris, etc. Even on Microsoft Windows, a Unix-like environment such as WSL, Cygwin, or MinGW should work.

You'll find detailed build and install instructions in BUILDING-configure.md and BUILDING-cmake.md, respectively.

And if you're working with Microsoft Visual Studio, have a look at Gordon Elliott's Easy-PQXX Build for Windows Visual Studio project.
prime holly
bleak shore
#

You may have to follow the instructions to building the things and maybe google terms you don’t know yet

prime holly
bleak shore
#

cmake is what that library uses. As stated in the readme. You need to build it on windows. So I’m the readme look for the word “windows” and read the instructions on how to build it

#

It mentions you need a unix like env, and then it mentions cygwin.

#

So that tells me you’ll need Cygwin or something similar, loaded with cmake and everything to build the app

#

Their library is what you’re tying to build, and it uses cmake. So yes you need it.

prime holly
#

Oh ohkay second way won't work on windows