Re: Problem using wx headers in XCode

Tim Burgess <[email protected]> Wed, 14 Jan 2026 12:23:07 +0000
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi Hardy,

Yes, my WX headers are within the path I specified.

In the latest Xcode the system search path is tagged as deprecated anyhow, but not using it seems to bring back the wx.h error.

Cheers.

Tim


> On 14 Jan 2026, at 11:32, 'skywind MailingLists' via wx-users <[email protected]> wrote:
> 
> Hi,
> 
> Are the wxWidgets’ headers within a folder „wxWidgets" inside "~/vcpkg/installed/x64-osx/include“? Anyway, it should not be the system header search path because it requires „<>“ brackets in the include statements. wxWidgets uses „“. So, you should either mention the path in the header or user header search paths.
> 
> Regards,
> Hardy
> 
> 
> 
>> Am 14.01.2026 um 12:16 schrieb Tim Burgess <[email protected]>:
>> 
>> Hi,
>>  
>> I’m revisiting this topic, as I still haven’t achieved a resolution.
>>  
>> I have wxWidgets installed and built via VCPKG on my Mac Taho computer, with the headers resident in:
>>  
>> ~/vcpkg/installed/x64-osx/include
>>  
>> I have other libraries, such as Boost installed using the same path and triplet.
>>  
>> I am blind and Xcode’s Build Settings UI is horrendous to use with a screen reader, so I’ve been modifying my project’s settings (Base.xcconfig) file in a text editor. My header path is defined as:
>>  
>> SYSTEM_HEADER_SEARCH_PATHS = "$(HOME)/vcpkg/installed/x64-osx/include/**"
>> // HEADER_SEARCH_PATHS = "$(WXROOT)/src/tiff/libtiff"
>> // USER_HEADER_SEARCH_PATHS = "$(WXROOT)/include" "$(WXROOT)/build/osx/setup/$(WXTOOLKIT)/include" "$(WXROOT)/src/jpeg" "$(WXROOT)/src/png" "$(WXROOT)/src/regex" "$(WXROOT)/src/expat/lib" "$(WXROOT)/src/tiff/libtiff" "$(WXROOT)/src/stc/scintilla/src" "$(WXROOT)/src/stc/scintilla/include"
>> HEADER_SEARCH_PATHS = "$(HOME)/vcpkg/installed/x64-osx/include/**" $(HOME)/include $(HOME)/include/wx-$(DYLIB_COMPATIBILITY_VERSION) $(HOME)/lib/wx/include/osx_cocoa-unicode-3.1 /usr/include/libxml2
>> ALWAYS_SEARCH_USER_PATHS = NO
>>  
>> I have tried using the path with and without the quotes – the path contains no spaces, so they shouldn’t be necessary. My understanding is that adding ./** to the end of the path indicates that the path should be scanned recursively, which is what I want.
>>  
>> If I don’t specify the path pointing to my VCPKG installation, my build fails to find wx.h, which is what I expect. Adding this path reports no errors relating to wx.h, so I’m assuming that the file is now being found. However, the build fails with too many errors relating to WX types and methods not being defined, so I’m assuming that other headers are still not being found. Making these changes in the Base.xcconfig and getting differing results gives me confidence that I’m editing the correct settings file.
>>  
>> Can anybody offer me any advice, please?
>>  
>> Best wishes.
>>  
>> Tim
>>  
>>  
>> 
>> -- 
>> Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
>> --- 
>> You received this message because you are subscribed to the Google Groups "wx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
>> To view this discussion visit https://groups.google.com/d/msgid/wx-users/000a01dc8547%243d4c1200%24b7e43600%24%40raisedbar.net <https://groups.google.com/d/msgid/wx-users/000a01dc8547%243d4c1200%24b7e43600%24%40raisedbar.net?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
> --- 
> You received this message because you are subscribed to the Google Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
> To view this discussion visit https://groups.google.com/d/msgid/wx-users/B21ED672-7118-4610-9418-DAFBFF86E6F7%40skywind.eu <https://groups.google.com/d/msgid/wx-users/B21ED672-7118-4610-9418-DAFBFF86E6F7%40skywind.eu?utm_medium=email&utm_source=footer>.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/8B21BE43-5352-47D1-9083-568135091376%40gmail.com.