soarqin / finalhe

Final h-encore, a tool to push h-encore exploit for PS VITA/PS TV automatically
GNU General Public License v3.0
623 stars 116 forks source link

finalhe-1.92 macOS / compilation fails #70

Open lubakibre opened 4 years ago

lubakibre commented 4 years ago

Yo! Thanks a lot for this awesome project. I really appreciate the work you've put into this. This is super valuable since DRM free demo file is no longer available. I cannot follow the manual from h-encore².

I'm trying to compile finalhe-1.92 following the manual. I encountered a few roadblocks, some of which I managed to resolve but I'm still at a dead end. Please note I have some experience with programming but I wouldn't call myself a programmer.

I installed libusb & qt through brew. I had to change some paths to get qt to work. I'm stuck at libusb. When I make the file, it ends with

Project ERROR: libusb-1.0 development package not found

I have no idea what I'm doing wrong. I got libusb installed as per manual. I can also see it in /deps/ .There's a good chance it's something silly.

Any advice is greatly appreciated. Cheers!

ghost commented 4 years ago

take a look here mate; https://github.com/soarqin/finalhe/issues/60

juanabeja commented 4 years ago

brew install pkg-config. pkg-config solves the "libusb-1.0 development package not found" error.

Eyesony commented 4 years ago

@lubakibre I experienced the same error, here are my steps to make it work: (1) export PKG_CONFIG_PATH=/usr/local/Cellar/libusb/1.0.22/lib/pkgconfig pkg-config --cflags --libs libusb-1.0 For more information: https://askubuntu.com/questions/210210/pkg-config-path-environment-variable (2) edit deps/vitamtp/CMakeLists.txt as DarrenMack-OD's mentioned https://github.com/soarqin/finalhe/issues/60#issuecomment-542957516 BUT DO-NOT edit deps/vitamtp/usb.c (3) {path}/qmake then make (4) if you experience new error like this: Undefined symbols for architecture x86_64: "_iconv"...., "_iconv_close'..., "_iconv_open"...

check this link: https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx There might be multiple causes, so I don't want to misguide you. So I recommend you to read it first. What I did: sudo port deactivate libiconv edit deps/vitamtp/Makefile, replace 2 lines with iconv.h (in my case, it's /opt/local/include/iconv.h ) to {AbsolutePathToProject}/deps/iconv/include/iconv.h \

Good luck