soarqin / finalhe

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

Pop!_OS 20.04 not making #94

Open P-Reid-W opened 3 years ago

P-Reid-W commented 3 years ago

unzipped the tar.gz file, ran cmake and then make and started to get errors like

finalhe-1.92/src/package.cc:23:10: fatal error: sha256.h: No such file or directory
   23 | #include <sha256.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/FinalHE.dir/build.make:261: CMakeFiles/FinalHE.dir/package.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/FinalHE.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

so I went in and found the files and added the paths to the #includes for package.cc and vita.cc. package.cc needed paths for sha256.h, aes.h, pkg.h, psvimg_create.h and miniz_zip.h vita.cc needed paths for vitamtp.h and sha256.h

after fixing those I ran make again and got this output

reid@pop-os:~/seagatedrive/Downloads/finalhe-1.92$ make
[  2%] Automatic MOC for target FinalHE
[  2%] Built target FinalHE_autogen
[  5%] Generating src/translations/zh_TW.ts
Updating 'src/translations/zh_TW.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[  8%] Generating zh_TW.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/zh_TW.qm'...
    Generated 32 translation(s) (32 finished and 0 unfinished)
[ 11%] Generating src/translations/cs_CZ.ts
Updating 'src/translations/cs_CZ.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 14%] Generating src/translations/de_DE.ts
Updating 'src/translations/de_DE.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 17%] Generating src/translations/es_ES.ts
Updating 'src/translations/es_ES.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 20%] Generating src/translations/fr_FR.ts
File /home/reid/seagatedrive/Downloads/finalhe-1.92/src/translations/fr_FR.ts won't be updated: it contains translation but the target language is not recognized
[ 22%] Generating src/translations/it_IT.ts
Updating 'src/translations/it_IT.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 25%] Generating src/translations/ja_JP.ts
Updating 'src/translations/ja_JP.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 28%] Generating src/translations/pt_BR.ts
Updating 'src/translations/pt_BR.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 31%] Generating src/translations/ru_RU.ts
Updating 'src/translations/ru_RU.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 34%] Generating src/translations/tr_TR.ts
Updating 'src/translations/tr_TR.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 37%] Generating src/translations/zh_CN.ts
Updating 'src/translations/zh_CN.ts'...
    Found 32 source text(s) (0 new and 32 already existing)
[ 40%] Generating cs_CZ.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/cs_CZ.qm'...
    Generated 24 translation(s) (24 finished and 0 unfinished)
    Ignored 8 untranslated source text(s)
[ 42%] Generating de_DE.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/de_DE.qm'...
    Generated 32 translation(s) (32 finished and 0 unfinished)
[ 45%] Generating es_ES.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/es_ES.qm'...
    Generated 32 translation(s) (24 finished and 8 unfinished)
[ 48%] Generating it_IT.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/it_IT.qm'...
    Generated 24 translation(s) (24 finished and 0 unfinished)
    Ignored 8 untranslated source text(s)
[ 51%] Generating ja_JP.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/ja_JP.qm'...
    Generated 32 translation(s) (32 finished and 0 unfinished)
[ 54%] Generating pt_BR.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/pt_BR.qm'...
    Generated 31 translation(s) (31 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 57%] Generating ru_RU.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/ru_RU.qm'...
    Generated 32 translation(s) (32 finished and 0 unfinished)
[ 60%] Generating tr_TR.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/tr_TR.qm'...
    Generated 25 translation(s) (25 finished and 0 unfinished)
    Ignored 7 untranslated source text(s)
[ 62%] Generating zh_CN.qm
Updating '/home/reid/seagatedrive/Downloads/finalhe-1.92/zh_CN.qm'...
    Generated 32 translation(s) (32 finished and 0 unfinished)
Scanning dependencies of target FinalHE
[ 65%] Building CXX object CMakeFiles/FinalHE.dir/vita.o
/home/reid/seagatedrive/Downloads/finalhe-1.92/src/vita.cc: In member function ‘void VitaConn::processEvent(vita_event_t*)’:
/home/reid/seagatedrive/Downloads/finalhe-1.92/src/vita.cc:775:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘quint64’ {aka ‘long long unsigned int’} [-Wformat=]
  775 |         qDebug("Storage stats for drive containing OHFI %d, free: %" PRIu64 ", total: %" PRIu64, ohfi, free, total);
      |                ^                                                                                       ~~~~
      |                                                                                                        |
      |                                                                                                        quint64 {aka long long unsigned int}
/home/reid/seagatedrive/Downloads/finalhe-1.92/src/vita.cc:775:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘quint64’ {aka ‘long long unsigned int’} [-Wformat=]
[ 68%] Building CXX object CMakeFiles/FinalHE.dir/worker.o
[ 71%] Building CXX object CMakeFiles/FinalHE.dir/qrc_finalhe.o
[ 74%] Linking CXX executable FinalHE
/usr/bin/ld: cannot find -lvitamtp
/usr/bin/ld: cannot find -lvitapkg
/usr/bin/ld: cannot find -lpsvimg
/usr/bin/ld: cannot find -lminiz
/usr/bin/ld: cannot find -lscrypto
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/FinalHE.dir/build.make:354: FinalHE] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/FinalHE.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I went to /usr/bin only saw an one folder called X11 and a bunch of files, no folder called ld and I'm not sure how to proceed from here. I apologize as well. I'm fairly new to building things on my own an though I have a little experience in C, I've never used C++ or had to deal with anything at this scale before so if I'm missing something obvious let me know. Thanks.