Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Des anyone have a tutorial on downloading and linking libraries in C++ (also using xcode and homebrew)
Post Flair (click to view more posts with a particular flair)
Post Body

important Edit: I come from a python background so the idea of linking and building libraries seems pretty foreign to me. Hence my confusion.

tldr: Could someone link a book, tutorial youtube video or resource that can take me through how to use open-source libraries with c . Also resources on how to properly understand and use xcode and homebrew please.

Os: Mac OS 10.15

I've been trying to download SDL2 for the entire day and I still can't get it to work.

Last week i spent 3 days trying to get wxWidgets to work with xcode, I never got it to work I just ended up using wx-config and a text editor.

I feel like Im missing the skills needed to properly use open-source libraries without wasting several days to get it to work.

I tried homebrewing them SDL2 and wxWidgets but then after brewing is done, I cant get them to work with xcode. I really feel like i don't understand xcode properly such as project directorys, i have no idea what xcode-select is for nor can I get anything to work.I understand the concept behind homebrew and it works fine when I need to download command line tools but downloading libraries with it is giving me a massive headache.

I feel pretty frustrated but I know the problem is Im missing skills to do this properly. If i could summarize my problems it would be:

- Linking and building projects: how to do it, how does c know where to find header files for libraries

- Xcode: what is xcode-select, how do you use xcode like a prob (not just how to use it but how to understand what is being done and what I need to do)

-Homebrew: Once a library is added to the cellar how can i reference it in other directories. For example if you brew install sdl2, it doesnt create a framework but adds the header files and other assets.

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
10,029
Link Karma
6,014
Comment Karma
3,571
Profile updated: 1 week ago
Posts updated: 4 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago