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

libdispatch build error. #1

Open
longjianjiang opened this issue May 7, 2019 · 1 comment
Open

libdispatch build error. #1

longjianjiang opened this issue May 7, 2019 · 1 comment
Assignees

Comments

@longjianjiang
Copy link

i delete xcodeconfig folder, then build libdispatch introspection target, build error:

'config/config.h' file not found;

one more thing, #include <os/base_private.h> also file not found.

I'm new to building these source code, please provide some help.

@csekel csekel assigned csekel and wjk Aug 11, 2019
@wjk
Copy link
Contributor

wjk commented Aug 11, 2019

@longjianjiang, the usual way we build parts of PureDarwin is to use darwinbuild. To build libdispatch using darwinbuild, install the latest prebuilt release, then do the following:

  1. Make a new, empty directory somewhere and cd into it.
  2. Run sudo darwinbuild -init https://github.com/PureDarwin/PureDarwin/blob/master/plists/PD18_2.plist. This will download a file containing the build instructions for the current PureDarwin codebase.
  3. Run sudo darwinbuild -recursive libdispatch. This will build libdispatch, as well as all of its dependencies. Once this command completes successfully, you should find the build outputs in a subdirectory of Roots/libdispatch.

Also, why did you delete the xcodeconfig folder? Doing so will cause build problems. If it was because you were seeing warnings about darwinbuild.xcconfig not being found, that file will be created automatically by darwinbuild. In general, we always build using darwinbuild. If you want to work on modifying the codebase, you can copy the darwinbuild.xcconfig file out of BuildRoot/SourceCache/libdispatch/libdispatch-2000.1.1 and into the directory containing libdispatch.xcodeproj. This should fix the error you saw about os/base_private.h not being found. Hope this helps!

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