Hello guys,
Whenever I need to change my pc, I'm haunted by the thoughts of rebuilding external libraries.
Some libraries have step-by-step insturctions which prevents it from becoming a challenge but some libraries like libpqxx(postgresql's c++ library) doesn't give proper instructions and it usually takes 8+ hours for me to find the right way.
Apparently last time I thought I found the right way, I was mistaken.
Now my code works on release mode but doesn't work on debug mode and unfortunately my heart is not ready for another 8+ hours session. I feel like throwing a tantrum, crying and screaming like a spoiled brat. Really, this is scary.
The problem is no matter how I tried to learn the details of cmake / make etc. to build the external libraries in detail, I couldn't find a proper/easily understandable source.
The instructions given by external library websites usually say things like adding options/properties. for example boost library says : "invoke :
b2 --build-dir=build-directory toolset=toolset-name --build-type=complete stage
"
Now , what are these codes? are they defined by the library's coders or are they cmake/make codes that applies to every build session?
Do I need different & specific instructions to build every different library?
Or can I just learn this info and come of with how to build a specific library?
And for all this informations, can you suggest me a good source to start with? Because I want to build external libraries without being unaware of what I'm doing. Thanks alot!
P.s. I'm using visual studio 2019 if that's important.(sometimes I use vs itself to build some libraries)
What I have tried:
-How to build libpqxx
-Googling how to use cmake
-Googling how to use make
etc.