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

Attempt to build using Xcode #34

Closed
leoj3n opened this issue Aug 29, 2015 · 1 comment
Closed

Attempt to build using Xcode #34

leoj3n opened this issue Aug 29, 2015 · 1 comment

Comments

@leoj3n
Copy link

leoj3n commented Aug 29, 2015

Machine:

image

wxWidgets (via Homebrew):

wxmac: stable 3.0.2 (bottled)
wxWidgets, a cross-platform C++ GUI toolkit (for OS X)
https://www.wxwidgets.org
/usr/local/Cellar/wxmac/3.0.2 (777 files, 41M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/wxmac.rb
==> Dependencies
Required: jpeg ✔, libpng ✔, libtiff ✔
==> Options
--with-static
    build static libraries
--with-stl
    use standard C++ classes for everything

When I tried to build, Xcode couldn't include wx/setup.h So I added my the path for the Homebrew install to Header Search Paths; Then type_traits was unrecognized with GNU C++ setting so I updated that; C++11 required OS X target of 10.7 or newer so I updated that from 10.6; Then Linker Flags had problems because libwx_osx_cocoau_*.a files didn't exist but I noticed files in same location ending in .dylib so I modified the endings; Finally error on -lwxregexu-3.0 Linker Flag where I stopped because I don't know what to try next:

ld: library not found for -lwxregexu-3.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode > Build Settings > Search Paths > Header Search Paths:

image

Xcode > Build Settings > C++:

image

Xcode > Build Settings > Deployment > OS X Deployment Target:

image

Xcode > Build Settings > Linking > Other Linker Flags:

image


I would like to get this building if anyone knows how.

@aardappel
Copy link
Owner

Thanks for the detailed problem report!

Certainly my build instructions are intended for building wxWidgets manually, if you pull it from Homebrew you're bound to end up with slightly different names/directories.

As for wxregexu-3.0, is there nothing in your /usr/local/lib/lib* that looks like it?
What if you just leave that line out (I don't use regex directly in my code, so who knows its not strictly needed).

Once you resolve that problem, there's other wx libs being pulled in that it may not be able to find, like wxtiff-3.0 etc. I don't know where those would be on your machine.

If all else fails, I'd recommend installing wxWidgets as per the instructions in the readme instead of via Homebrew.

@tobiolo tobiolo closed this as completed Nov 30, 2023
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

3 participants