Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use #5

Open
jiri-otoupal opened this issue Aug 16, 2020 · 1 comment
Open

Unable to use #5

jiri-otoupal opened this issue Aug 16, 2020 · 1 comment

Comments

@jiri-otoupal
Copy link

I have downloaded this and libpqxx but terminal goes red always.
In documentation isnt specified where i should copy libpqxx-master to.

@GordonLElliott
Copy link
Owner

GordonLElliott commented Aug 19, 2020

Sorry, I didn't see this for a few days.

Red means the batch file ended with a failure--can you see in the responses above any indication of what went wrong?

OH, misread the first time, "where i should copy libpqxx-master to"...

Yes, I see if you obey the "Skip past the notes..." and just look at the batch it doesn't explain. In the "Basics..." section it gives more explanation of how to structure. I'll try to edit the instructions in the near future to improve on this if one does "Skip..."

Anyway the batch file is just like the initial examples:

In this method you put the input source files subdirectory (libpqxx-master or libpqxx-<version>) into the top-level directory. Then in this top-level directory execute the following two commands (adjusting the name of the input source accordingly):

Except you run the batch file which does the various commands.

So set up a top level directory for this activity.

Then place the batch files in that top level directory.

Then place the libpqxx-master directory (the one that has the code directly inside of it--not just what you downloaded from PQXX), as a subdirectory of that top level directory. You might have copied the original PQXX directory which might have that same name--but the actual source directory is inside of that. It is that subdirectory with that name with all the source code directly under that you need.

I had forgotten that when one downloads the libpqxx-master the outer directory also has that same name, and inside of that is another subdirectory called libpqxx-master which is the one you want. I will also have to adjust the documentation to mention that problem!

You can also look at the parameters set in the top of the batch file and adjust those. If you really wanted to use the original 2-level-nested directory, you can adjust the source location on the line:

SET SOURCE_DIRECTORY=libpqxx-%PQXX_VERSION%

to have a prefix to the outer subdirectory and tunnels down to the inner subdirectory with the same name, like SET SOURCE_DIRECTORY=libpqxx-master\libpqxx-%PQXX_VERSION%.

But I highly recommend just copying the inner libpqxx-master subdirectory in the source code into the top level directory for the activity.

PS: Check the other main parameters, it will install the final library in your program files directory as default, similar to how your PostgreSQL has installed. Also that needs to be installed before running the batch file, and you need to have checked or set the version number you are using into the batch file. I KNOW, not perfectly "easy" but after you see how much it does that will make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants