soarqin / finalhe

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

V1.91 Compiles on Mac But with Errors #60

Closed takuhii closed 2 years ago

takuhii commented 4 years ago

So I managed to compile V1.91 on a Mac, but I get some very weird results... FYI: I used cmake for this

  1. The outputted file in not a .APP like the v1.5 version (but I think you say that in the instructions).
  2. libpng warning: iCCP: known incorrect sRGB profile
  3. You have to MOGRIFY the PNGs in the resources folder, or...
  4. ...you get libpng errors when running the Unix executable that is output by the make process
  5. The outputted file is a fifth of the size of its predecessor (3.9mb).
  6. Warnings are produced that OPERATOR and CREATED are deprecated
  7. For qmake, make lcopy doesn't work make: *** No rule to make target 'lcopy'. Stop.
  8. You seem to have to qmake in the SRC folder then make lcopy works, but i still have to run make to get an output
  9. During the qmake process datautils.c:26:10: fatal error: 'libxml/xmlmemory.h' file not found
  10. During the qmake process clang: error: linker command failed with exit code 1 (use -v to see invocation)
soarqin commented 4 years ago

I have not changed cmake/qmake build system since 1.5, except adding FindIconv.cmake. I think the errors are caused by new version of cmake/qt, I do not have an dev env for building on mac now, You can try use an old version of cmake (I think 3.10 or earlier) and qt 5.6 (this is the version I used to build on win32) first

takuhii commented 4 years ago

Same issues if I downgrade to 3.10.0. The cmake does give a workable app, but only as a "unix executable". Screenshot 2019-10-09 at 14 37 35

Couldn't tell you if it works yet though...

takuhii commented 4 years ago

Would FinalHE v1.5 still allow h-encore2 to be run, or would it use h-encore?

pedrohlr commented 4 years ago

I've tried to compile it but couldn't get past "fatal error: 'libxml/xmlmemory.h' file not found". What was your solution to this? Would you mind sharing the compiled app so I could test it? I'm in Catalina, btw, don't know if it makes a difference or not.

soarqin commented 4 years ago

then I have no idea. I remember qmake was used to build 1.5 osx bundle app, cmake was not made to generate app

takuhii commented 4 years ago

I too am on Catalina, and I ran cmake then make which just seemed to work round the `xmlmemory.h issue, I'll use 1.5 for now... But it would be good to get this working for Macs... I've asked a popular Vita community on Reddit if anyone has had any luck compiling FinalHE_1.91 for Mac.

srli commented 4 years ago

I was able to get v1.91 compiled on Catalina, but it required a few code changes. I'll link my modified CMakeLists.txt for the deps/vitamtp/CMakeLists.txt file.

I also had to change the include in deps/vitamtp/usb.c from #include <libusb.h> to #include <libusb-1.0/libusb.h>.

I did get a unix executable from the compile like you screenshotted above takuhii, and it was able to work on my v3.70 vita.

I'm not going to make a pull request because I haven't really tested these changes on any other build system, but I hope this helps.

takuhii commented 4 years ago

Did you get any errors about DEPRACATED or UNUSED variables?

takuhii commented 4 years ago

These errors recur a lot; vitamtp.c:603:20: warning: unused variable 'data' [-Wunused-variable] unsigned char *data = NULL; ^ vitamtp.c:63:26: warning: inline function 'VitaMTP_Get_PTP_Params' is not defined [-Wundefined-inline] extern inline PTPParams *VitaMTP_Get_PTP_Params(vita_device_t *device); ^ vitamtp.c:74:25: note: used here PTPParams *params = VitaMTP_Get_PTP_Params(device); ^

psvlib/pkg/pkg_sys.c:211:13: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: cannot create '%s' folder\n", path); ^ psvlib/pkg/pkg_sys.c:221:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: cannot open '%s' file\n", fname); ^ psvlib/pkg/pkg_sys.c:227:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: cannot get size of '%s' file\n", fname); ^ psvlib/pkg/pkg_sys.c:239:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: cannot create '%s' file\n", fname); ^ psvlib/pkg/pkg_sys.c:249:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: failed to close file\n"); ^ psvlib/pkg/pkg_sys.c:258:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: failed to read %u bytes from file\n", size); ^ psvlib/pkg/pkg_sys.c:267:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: failed to read %u bytes from file\n", size); ^ psvlib/pkg/pkg_sys.c:303:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: internal error, wrong sys_realloc usage\n"); ^ psvlib/pkg/pkg_sys.c:308:9: warning: implicit declaration of function '_error_func' is invalid in C99 [-Wimplicit-function-declaration] _error_func(NULL, "ERROR: out of memory\n"); ^ psvlib/pkg/pkg_sys.c:345:9: warning: implicit declaration of function '_output_func' is invalid in C99 [-Wimplicit-function-declaration] _output_func(arg, "[*] unpacking... %u%%\r", now); ^

psvlib/pkg/pkg_zrif.c:53:22: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'const Bytef *' (aka 'const unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] d_stream.next_in = (const Bytef*)in; ^ ~~~~~~~~~~~~

srli commented 4 years ago

Yes, they're warnings so it shouldn't prevent a successful compilation.

takuhii commented 4 years ago

Brilliant, thank you. One of the warnings I noticed seems to be trying to create a directory and read filesizes from it. Looking through the code it just says %s, which I assume is a variable. I'll try and post it later

On Fri, 18 Oct 2019, 01:09 Sophia Li, notifications@github.com wrote:

Yes, they're warnings so it shouldn't prevent a successful compilation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/soarqin/finalhe/issues/60?email_source=notifications&email_token=AABPK45DS7DUPKV7DW5JAE3QPD5DXA5CNFSM4I66UF32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBR6WWY#issuecomment-543419227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPK4Z2H7ENLYAZJUZX52DQPD5DXANCNFSM4I66UF3Q .

ghost commented 4 years ago

I'm trying to compile the latest source so I can run the finale on a vita (v3.7.3), but having a horrible time with brew.

Did anyone manage to compile a usable version of the app? And if so, can someone send a working version?

takuhii commented 4 years ago

I'm trying to compile the latest source so I can run the finale on a vita (v3.7.3), but having a horrible time with brew.

Did anyone manage to compile a usable version of the app? And if so, can someone send a working version?

Srli managed it, you get errors, but it does produce a working version. I need time to look at it properly

takuhii commented 4 years ago

I was able to get v1.91 compiled on Catalina, but it required a few code changes. I'll link my modified CMakeLists.txt for the deps/vitamtp/CMakeLists.txt file.

I also had to change the include in deps/vitamtp/usb.c from #include <libusb.h> to #include <libusb-1.0/libusb.h>.

I did get a unix executable from the compile like you screenshotted above takuhii, and it was able to work on my v3.70 vita.

I'm not going to make a pull request because I haven't really tested these changes on any other build system, but I hope this helps.

ghost commented 4 years ago

I was able to get v1.91 compiled on Catalina, but it required a few code changes. I'll link my modified CMakeLists.txt for the deps/vitamtp/CMakeLists.txt file.

I also had to change the include in deps/vitamtp/usb.c from #include <libusb.h> to #include <libusb-1.0/libusb.h>.

I did get a unix executable from the compile like you screenshotted above takuhii, and it was able to work on my v3.70 vita.

I'm not going to make a pull request because I haven't really tested these changes on any other build system, but I hope this helps.

Interesting... So the next question is if before I reattempt this, has anyone seen the same compile issues for the v1.92 source? Or does it bring another set of errors, etc and need a different modified CMakeLists.txt?

takuhii commented 4 years ago

I believe 1.92 just has check for 3.93 in it

philrossimusic commented 4 years ago

Does anyone have a compiled 1.92 or 1.91 for Mac that they'd be willing to share? I have no idea what I'm doing with this compiler!

philrossimusic commented 4 years ago

....or! If anyone has some helpful guides they could provide so I can teach myself...I'm down with that, too

felixsrg commented 4 years ago

Yes, I too am searching for a precompiled one, tried it myself but couldn't manage to get a binary on Mojave, if any could provide I would be really thankful.

srli commented 4 years ago

Here's a link to the precompiled version of 1.91 that I made for my macOS Catalina system.

The executable is src/FinalHe. I make no guarantees about this file working on any system other than mine, but this folder is essentially a clone of current mainline with my changes to the vitamtp files.

koraysels commented 4 years ago

@juanabeja

do you mind sharing in how you avercame this error during 'make'

datautils.c:26:10: fatal error: 'libxml/xmlmemory.h' file not found
#include <libxml/xmlmemory.h>
         ^~~~~~~~~~~~~~~~~~~~
koraysels commented 4 years ago

@juanabeja

Yeah I’ve been at it for a whole day now.. do you mind sharing a build for mac of the current version? That would be epic!!!

ghost commented 4 years ago

I have put together a ZIP with everything in it... http://www.mediafire.com/file/xca5m4m3kugbe7e/FinalHE_1-92_and_Dependencies.zip/file

duval904 commented 4 years ago

Sorry man. Doesn't seem to be working for me. The error message reads:

FinalHE cannot be opened because of a problem

Check with the developer to make sure FinalHE works with this version of MacOS. You may need to reinstall the application. Be sure to install any available updates for the application and macOS.

On Thu, Apr 16, 2020 at 11:59 AM Duval904 duval904@gmail.com wrote:

I'm not seeing a new link When I tried the one you just sent before, it gave me the same error message that it does not work on this version of mac. I've attached the image below

On Thu, Apr 16, 2020 at 11:57 AM juanabeja notifications@github.com wrote:

Hey Koray, I forgot to include correct permissions when I zipped my FinalHE. Try downloading from the new link in my comment, it should work now.

On Thu, Apr 16, 2020 at 4:23 AM Koray S. notifications@github.com wrote:

@juanabeja https://github.com/juanabeja

Yeah I’ve been at it for a whole day now.. do you mind sharing a build for mac of the current version? That would be epic!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/soarqin/finalhe/issues/60#issuecomment-614287381, or unsubscribe < https://github.com/notifications/unsubscribe-auth/APDO5JDZRFCTUD7JF3FTND3RMYQWLANCNFSM4I66UF3Q

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/soarqin/finalhe/issues/60#issuecomment-614740034, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGQFXQM63LORDYM5DLPOILRM4TFFANCNFSM4I66UF3Q .

duval904 commented 4 years ago

I really do appreciate your help! But I’m not sure I’m capable of doing any of that. It’s been years since I’ve messed around with any coding. I can’t update to Catalina because I have photoshop cs6 and it doesn’t work on Catalina.

On Thu, Apr 16, 2020 at 12:46 PM juanabeja notifications@github.com wrote:

Sorry man. Doesn't seem to be working for me. The error message reads: FinalHE cannot be opened because of a problem Check with the developer to make sure FinalHE works with this version of MacOS. You may need to reinstall the application. Be sure to install any available updates for the application and macOS.

@duval904 https://github.com/duval904 Sounds like it's your outdated macOS. You can download the source code here https://github.com/soarqin/finalhe/releases/latest and follow my compilation instructions here https://github.com/soarqin/finalhe/issues/60#issuecomment-611459197.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/soarqin/finalhe/issues/60#issuecomment-614767116, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGQFXTIRRN5CUWYGXPVWWTRM4Y4ZANCNFSM4I66UF3Q .

duval904 commented 4 years ago

I believe that I will be able to use my windows computer to at least run the finalhe.exe file. As long as I don’t touch the power cord, it’s fine.

However, just so I fully understand the risks, if I lose power on my PC while finalHe.exe is running, will this brick my Vita?

Also, that is the only step in which the connection between the vita and the laptop could cause any damage, correct?

On Thu, Apr 16, 2020 at 1:02 PM Duval904 duval904@gmail.com wrote:

I really do appreciate your help! But I’m not sure I’m capable of doing any of that. It’s been years since I’ve messed around with any coding. I can’t update to Catalina because I have photoshop cs6 and it doesn’t work on Catalina.

On Thu, Apr 16, 2020 at 12:46 PM juanabeja notifications@github.com wrote:

Sorry man. Doesn't seem to be working for me. The error message reads: FinalHE cannot be opened because of a problem Check with the developer to make sure FinalHE works with this version of MacOS. You may need to reinstall the application. Be sure to install any available updates for the application and macOS.

@duval904 https://github.com/duval904 Sounds like it's your outdated macOS. You can download the source code here https://github.com/soarqin/finalhe/releases/latest and follow my compilation instructions here https://github.com/soarqin/finalhe/issues/60#issuecomment-611459197.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/soarqin/finalhe/issues/60#issuecomment-614767116, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGQFXTIRRN5CUWYGXPVWWTRM4Y4ZANCNFSM4I66UF3Q .

nighto commented 3 years ago

Hi there, some findings I have made, which could be added to readme (not proposing a PR because I couldn't compile it until the end):

  1. cmake needs to be installed manually - brew install cmake
  2. cmake tries to find qt5, not qt(4), so brew install qt5
  3. qt5 from brew is not symlinked to usual locations / added to the path, so run cmake with it's path manually: cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt@5 .

Then the configuration part is apparently done:

-- Configuring done
CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0100 is not set: Let AUTOMOC and AUTOUIC process .hh files.  Run
  "cmake --help-policy CMP0100" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the header file(s):

    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/downloader.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/finalhe.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/package.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/sforeader.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/vita.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/worker.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/worker.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/sforeader.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/package.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/finalhe.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/vita.hh"
    "/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/src/downloader.hh"

  from processing by AUTOMOC.  If any of the files should be processed, set
  CMP0100 to NEW.  If any of the files should not be processed, explicitly
  exclude them by setting the source file property SKIP_AUTOMOC:

    set_property(SOURCE file.hh PROPERTY SKIP_AUTOMOC ON)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/arlindo.pereira/Downloads/Vita/finalhe-1.92

Then when I try to make it:

Scanning dependencies of target miniz
[  1%] Building C object deps/miniz/CMakeFiles/miniz.dir/miniz.c.o
[  3%] Building C object deps/miniz/CMakeFiles/miniz.dir/miniz_zip.c.o
[  4%] Building C object deps/miniz/CMakeFiles/miniz.dir/miniz_tinfl.c.o
[  6%] Building C object deps/miniz/CMakeFiles/miniz.dir/miniz_tdef.c.o
[  7%] Linking C static library libminiz.a
[  7%] Built target miniz
Scanning dependencies of target scrypto
[  9%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/aes.c.o
[ 11%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/aes_x86.c.o
[ 12%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/base64.c.o
[ 14%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/sc_crc32.c.o
[ 15%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/sc_crc32_x86.c.o
[ 17%] Building C object deps/scrypto/CMakeFiles/scrypto.dir/sha256.c.o
[ 19%] Linking C static library libscrypto.a
[ 19%] Built target scrypto
Scanning dependencies of target vitamtp
[ 20%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/datautils.c.o
[ 22%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/device.c.o
[ 23%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/ptp.c.o
[ 25%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/usb.c.o
[ 26%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/vitamtp.c.o
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/vitamtp/vitamtp.c:603:20: warning: 
      unused variable 'data' [-Wunused-variable]
    unsigned char *data = NULL;
                   ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/vitamtp/vitamtp.c:63:26: warning: 
      inline function 'VitaMTP_Get_PTP_Params' is not defined
      [-Wundefined-inline]
extern inline PTPParams *VitaMTP_Get_PTP_Params(vita_device_t *device);
                         ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/vitamtp/vitamtp.c:74:25: note: 
      used here
    PTPParams *params = VitaMTP_Get_PTP_Params(device);
                        ^
2 warnings generated.
[ 28%] Building C object deps/vitamtp/CMakeFiles/vitamtp.dir/wireless.c.o
[ 30%] Linking C static library libvitamtp.a
[ 30%] Built target vitamtp
Scanning dependencies of target vitapkg
[ 31%] Building C object deps/psvlib/pkg/CMakeFiles/vitapkg.dir/pkg.c.o
[ 33%] Building C object deps/psvlib/pkg/CMakeFiles/vitapkg.dir/pkg_out.c.o
[ 34%] Building C object deps/psvlib/pkg/CMakeFiles/vitapkg.dir/pkg_sys.c.o
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:211:13: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
            _error_func(NULL, "ERROR: cannot create '%s' folder\n", path);
            ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:221:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: cannot open '%s' file\n", fname);
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:227:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: cannot get size of '%s' file\n", fname);
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:239:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: cannot create '%s' file\n", fname);
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:249:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: failed to close file\n");
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:258:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: failed to read %u bytes from file\n", size);
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:267:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: failed to read %u bytes from file\n", size);
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:303:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: internal error, wrong sys_realloc usage\n");
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:308:9: error: 
      implicit declaration of function '_error_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _error_func(NULL, "ERROR: out of memory\n");
        ^
/Users/arlindo.pereira/Downloads/Vita/finalhe-1.92/deps/psvlib/pkg/pkg_sys.c:345:9: error: 
      implicit declaration of function '_output_func' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        _output_func(arg, "[*] unpacking... %u%%\r", now);
        ^
10 errors generated.
make[2]: *** [deps/psvlib/pkg/CMakeFiles/vitapkg.dir/pkg_sys.c.o] Error 1
make[1]: *** [deps/psvlib/pkg/CMakeFiles/vitapkg.dir/all] Error 2
make: *** [all] Error 2

Any idea why that happens? Thanks in advance.

nighto commented 3 years ago

I have put together a ZIP with everything in it... http://www.mediafire.com/file/xca5m4m3kugbe7e/FinalHE_1-92_and_Dependencies.zip/file

Tried this version, unfortunately it fails when launching on Big Sur:

image

Installing dyld with brew install dyld-headers was not enough to fix the issue.

nighto commented 3 years ago

I was able to get v1.91 compiled on Catalina, but it required a few code changes. I'll link my modified CMakeLists.txt for the deps/vitamtp/CMakeLists.txt file.

I also had to change the include in deps/vitamtp/usb.c from #include <libusb.h> to #include <libusb-1.0/libusb.h>.

I did get a unix executable from the compile like you screenshotted above takuhii, and it was able to work on my v3.70 vita.

I'm not going to make a pull request because I haven't really tested these changes on any other build system, but I hope this helps.

Had the same make error after running cmake on it again (so CMakeCache.txt had the paths set to my machine). Not sure what else to try :( Any help is appreciated! :)

nighto commented 3 years ago

By the way, the pre-built 1.50 version doesn't install h-encore2 on Vita 3.73, it installed h-encore (blue icon, so not version 2), which does not work for that OS version (according to vita.hacks.guide). I suppose that the h-encore2 version didn't exist when finalhe 1.50 was made. Is that correct?

Perhaps in the mean time we could update the readme stating that if you are on firmware versions 3.69 to 3.73 the Mac prebuilt version does not work.

nighto commented 3 years ago

By the way, for future readers, running finalhe on Parallels does not work. Apparently Parallels detects the Vita connected to USB, Windows detects it, but finalhe for some reason never reads it.

image

On the Vita, Content Manager fails with the message "it was not possible to connect to the PC".

Also tried Wi-Fi connection but that also does not work.

nighto commented 3 years ago

Managed to compile on Big Sur, and it is copying h-encore2 to my Vita, hooray! :)

image

telegram-cloud-photo-size-1-5100468634496641298-y

For future readers, you need to:

I will be sending a PR to update the readme with instructions. @soarqin would you be interested in a pre-built 1.92 binary for people to download easily?

nighto commented 3 years ago

A minor comment: https://vita.hacks.guide/installing-h-encore guide mentions that when running FinalHE with a copy of VitaShell zip file on it's folder you should be able to copy to Vita not only h-encore[2] but also VitaShell. However that option does not appear. Is the guide incorrect or is finalhe not detecting vitashell zip on Mac?

RichHobo528 commented 3 years ago

has anyone got around the qmake route? having trouble...

NeilConnatty commented 3 years ago

@RichHobo528 I was also having trouble with the qmake route, turned out it was because by default brew install qt will install qt version 6, as opposed to qt version 5, which this project requires. Because I already had qt version 6 installed, even after installing qt5, qmake would default to running v6. My build steps at this point were:

brew uninstall qt brew install qt@5 echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.profile export LDFLAGS="-L/usr/local/opt/qt@5/lib" export CPPFLAGS="-I/usr/local/opt/qt@5/include" export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig" *at this point, qmake should have been in my path, but it wasn't... so I needed to do: /usr/local/opt/qt@5/bin/qmake make

I tested this with both finalhe V1.91 & finalhe V1.92.

RichHobo528 commented 3 years ago

@RichHobo528 I was also having trouble with the qmake route, turned out it was because by default brew install qt will install qt version 6, as opposed to qt version 5, which this project requires.

Because I already had qt version 6 installed, even after installing qt5, qmake would default to running v6. My build steps at this point were:

brew uninstall qt

brew install qt@5

echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.profile

export LDFLAGS="-L/usr/local/opt/qt@5/lib"

export CPPFLAGS="-I/usr/local/opt/qt@5/include"

export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig"

*at this point, qmake should have been in my path, but it wasn't... so I needed to do:

/usr/local/opt/qt@5/bin/qmake

make

I tested this with both finalhe V1.91 & finalhe V1.92.

did this work?

NeilConnatty commented 3 years ago

did this work?

Sorry, I didn't make that clear, but yes it did work for me. I guess I should make it clear I also have other dependencies installed with brew, this command should do the trick: brew install libusb pkg-config qt@5 dyld-headers

RichHobo528 commented 3 years ago

@NeilConnatty having some trouble on: /usr/local/opt/qt@5/bin/qmake

mind helping me through discord? apt-get CFW#4803

NeilConnatty commented 3 years ago

@RichHobo528 sure just sent a discord request

mwudtke commented 2 years ago

@RichHobo528 I was also having trouble with the qmake route, turned out it was because by default brew install qt will install qt version 6, as opposed to qt version 5, which this project requires. Because I already had qt version 6 installed, even after installing qt5, qmake would default to running v6. My build steps at this point were:

brew uninstall qt brew install qt@5 echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.profile export LDFLAGS="-L/usr/local/opt/qt@5/lib" export CPPFLAGS="-I/usr/local/opt/qt@5/include" export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig" *at this point, qmake should have been in my path, but it wasn't... so I needed to do: /usr/local/opt/qt@5/bin/qmake make

I tested this with both finalhe V1.91 & finalhe V1.92.

@NeilConnatty I followed these steps, but still ran into the Project ERROR: libusb-1.0 development package not found issue when trying to make it. Any thoughts?

Managed to compile on Big Sur, and it is copying h-encore2 to my Vita, hooray! :)

image

telegram-cloud-photo-size-1-5100468634496641298-y

For future readers, you need to:

  • brew install libusb pkg-config qt5 dyld-headers
  • cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt@5 .
  • run src/FinalHE.

I will be sending a PR to update the readme with instructions. @soarqin would you be interested in a pre-built 1.92 binary for people to download easily?

I also tried this, and ran into the same issues you (@nighto) had before you were able to do it successfully - where the make command errors out 34% of the way through.

I'm pretty lost at this point!

RichHobo528 commented 2 years ago

final h-encore is not compatible with M1 macs and that is what i am using

tajdid commented 2 years ago

Managed to compile on Big Sur, and it is copying h-encore2 to my Vita, hooray! :)

image

telegram-cloud-photo-size-1-5100468634496641298-y

For future readers, you need to:

  • brew install libusb pkg-config qt5 dyld-headers
  • cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt@5 .
  • run src/FinalHE.

I will be sending a PR to update the readme with instructions. @soarqin would you be interested in a pre-built 1.92 binary for people to download easily?

Hey @nighto, mind sharing the build with me? I keep getting errors whenever I try to build it myself and have spent hours trying to find a fix. image

nighto commented 2 years ago

Sorry @tajdid I don't have a Mac anymore :(

takuhii commented 2 years ago

Is it an M1 Mac?