On Tue, 22 May 2018 08:36:15 -0700 (PDT) Arturas Mazeika wrote:
AM> I am trying to build pgAdmin 3.4.0 (that uses/is based on wxWidgets 2.8)
AM> using Visual Studio Community Edition 2017 (VS). I successfully downloaded
AM> the 2.8 version and built it with VS using the wx_vc15.sln file. I created
AM> a VS solution file for pgAgest using CMake. When I try to compile it, I get
AM> the error:
AM>
AM>
AM> wx/setup.h: No such file or directory
AM>
AM>
AM> How can I address the problem? There are quite a few links on the web on
AM> the issue, but I cannot nail it down. Additional steps and infos can be
AM> found at
AM>
AM>
https://stackoverflow.com/questions/50469351/trying-to-compile-pgagent-get-an-error-wx-setup-h-no-such-file-or-directory
This link indicates that the missing file is lib/vc_lib/mswd/wx/setup.h
which means that you're building pgAdmin in non-Unicode mode, while you
probably built wxWidgets in default, Unicode, mode which only generated the
file lib/vc_lib/mswud/wx/setup.h (notice the extra "u").
If this is indeed the problem, then the solution is to either build
pgAdmin in Unicode (if it supports it) or build wxWidgets in non-Unicode
mode.
If it's not that, please check the contents of your "lib" directory to
check how exactly did you build wxWidgets.
Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/