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

How to compile on macOS #1

Closed
Yukino0319 opened this issue Apr 2, 2019 · 4 comments
Closed

How to compile on macOS #1

Yukino0319 opened this issue Apr 2, 2019 · 4 comments

Comments

@Yukino0319
Copy link

Hi Muntashir,
I am a newcomer in macOS and interested in this project. When i download the whole code and make it, too many error occur to me,
for example netpacket/packet.h not found, and i know packet.h is in Linux.
Do I need to modify 'configure' or other config files? How can i success to compile it on macOS?
Thanks a lot!

@MuntashirAkon
Copy link
Owner

The purpose of this project is to build a wpa_supplicant for OS X so that we can continue to use RTL8188* wireless adapters after Apple drops support for 32 bit apps (the app that comes with this adapter is 32 bit). That saying, here's a brief description of how you can compile wpa_supplicant (for the above driver only) on macOS:

In /src/drivers/drivers.mak add the following lines to enable driver_osx_other driver:

ifdef CONFIG_DRIVER_OSX
DRV_CFLAGS += -DCONFIG_DRIVER_OSX
DRV_OBJS += ../src/drivers/driver_osx_other.o
NEED_DRV_WIRED_COMMON=0
endif

Comment out the following lines in /wpa_supplicant/Makefile:

echo CONFIG_DRIVER_HOSTAP=y >> .config
echo CONFIG_DRIVER_WEXT=y >> .config

And the .config file to be copied at /wpa_supplicant.

@MuntashirAkon MuntashirAkon pinned this issue Apr 2, 2019
@MuntashirAkon MuntashirAkon changed the title compile problem on macOS How to compile on macOS Apr 2, 2019
@Yukino0319
Copy link
Author

thank u, it works for me! 👍

@aleung
Copy link

aleung commented Nov 13, 2019

I got error:

hostap_realtek_osx-master/src/common/dhcp.h:46:15: error: field has
incomplete type 'struct iphdr'

Searched this error and knew that iphdr is not available on macOS. Add a line for workaround and it passed.

#define iphdr ip

@MuntashirAkon
Copy link
Owner

@aleung Did you follow #1 (comment) properly? This error shouldn't occur.

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