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

Couldn't find libbhFLEX.dylib #20

Closed
jobsgonnawork opened this issue Apr 5, 2024 · 13 comments
Closed

Couldn't find libbhFLEX.dylib #20

jobsgonnawork opened this issue Apr 5, 2024 · 13 comments
Assignees

Comments

@jobsgonnawork
Copy link

Screenshot 2024-04-05 at 18 10 32

@SoCuul
Copy link
Owner

SoCuul commented Apr 7, 2024

Did you make sure to clone the repo with --recurse-submodules?
Check the ./modules/libflex/FLEX directory and make sure it's not empty.

@cranci1
Copy link

cranci1 commented Apr 9, 2024

Same issue here: (i did clone using --recurse-submodules)
Screenshot 2024-04-09 at 14 23 19

@SoCuul
Copy link
Owner

SoCuul commented Apr 9, 2024

Same issue here: (i did clone using --recurse-submodules) Screenshot 2024-04-09 at 14 23 19

Could you check the ./modules/libflex/FLEX directory and make sure it's not empty.

@cranci1
Copy link

cranci1 commented Apr 10, 2024

The /modules/libflex/FLEX directory is not empty

Screenshot 2024-04-10 at 13 26 41

@SoCuul SoCuul self-assigned this Apr 11, 2024
@SoCuul
Copy link
Owner

SoCuul commented Apr 11, 2024

Which version of macOS, Xcode build tools, theos and gnu make are you running?

If you could run these commands and post the results that'd be great.

xcode-select --version
cd $THEOS && git rev-parse --short HEAD
make --version

@cranci1
Copy link

cranci1 commented Apr 11, 2024

Here you go

MacOS = 11.7.5
Xcode build tools = 2384
Theos = a55932f
GNU = 3.81

Screenshot 2024-04-11 at 07 06 04

@SoCuul
Copy link
Owner

SoCuul commented Apr 12, 2024

Looks like your mac is using GNU make provided by macOS (which hasn't been updated since 2006 because of copyright things).

This article covers how to switch to a newer version of make: https://theos.dev/docs/parallel-building

Essentially:

brew install make
echo PATH=\"$(brew --prefix make)/libexec/gnubin:\$PATH\" >> ~/.zprofile

Try this out and attempt to build it again. Feel free to tell me how it goes, so I can update the documentation if this is what fixes it!

@cranci1
Copy link

cranci1 commented Apr 12, 2024

Alright, I've managed to resolve the issue with compiling libFLEX. It turned out that there were errors stemming from conflicting SDK versions—specifically, I had SDK 17.4 conflicting with 16.1. Removing these conflicting SDKs allowed libFLEX to compile perfectly, even with an older GNU version.

So the ipa has been generated successfully

@SoCuul
Copy link
Owner

SoCuul commented Apr 12, 2024

Glad it worked out in the end!

@jobsgonnawork try removing any conflicting sdks to see if that fixes your problem as well!

@cranci1
Copy link

cranci1 commented Apr 13, 2024

Yeah just remove all the sdks (you can re add them later) from ios 16.0-17.4 this should fix

@noxwell
Copy link

noxwell commented Apr 16, 2024

I had the same problem and I don't see libflex make invocation in build.sh. I had to do this:

cd modules/libflex
make

before ./build.sh to make it work. For developer: probably you would need to test build.sh on clean git clone and fix build scripts.

@asdfzxcvbn
Copy link

I had the same problem and I don't see libflex make invocation in build.sh. I had to do this:

cd modules/libflex
make

before ./build.sh to make it work. For developer: probably you would need to test build.sh on clean git clone and fix build scripts.

exactly what i mentioned in my PR. SUBPROJECTS is being used incorrectly, i don't know how it would work without doing those steps.

@SoCuul
Copy link
Owner

SoCuul commented Apr 18, 2024

Fixed as of the most recent commit.

Thanks @asdfzxcvbn :)

@SoCuul SoCuul closed this as completed Apr 18, 2024
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

5 participants