-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When trying to build for OSX, the source as-is does not build
git clone https://github.com/israpps/PAKerUtility.git
cd PAKerUtility
mkdir -p build
cd build
cmake ../PAKerUtility
make
I Followed this advice to overcome missing malloc.h
https://stackoverflow.com/questions/56463049/should-mac-osx-have-a-malloc-h-file#56463133
Then I got errors that the ifdef __unix pragmas were not working, so I changed to
#if defined(__unix__) || defined(__APPLE__)
This seems to get the application to report compiling; although there are warnings
[ 25%] Building C object CMakeFiles/PAKerUtility.dir/main.c.o
/Users/lewiscowles/Projects/study/PAKerUtility/PAKerUtility/main.c:14:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
14 | #include "PAK.h"
| ^
/Users/lewiscowles/Projects/study/PAKerUtility/PAKerUtility/include/PAK.h:2:9: note: previous '#pragma pack' directive that modifies alignment is here
2 | #pragma pack(1)
| ^
1 warning generated.
[ 50%] Building C object CMakeFiles/PAKerUtility.dir/PAK.c.o
/Users/lewiscowles/Projects/study/PAKerUtility/PAKerUtility/PAK.c:18:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
18 | #include "PAK.h"
| ^
/Users/lewiscowles/Projects/study/PAKerUtility/PAKerUtility/include/PAK.h:2:9: note: previous '#pragma pack' directive that modifies alignment is here
2 | #pragma pack(1)
| ^
1 warning generated.
[ 75%] Building C object CMakeFiles/PAKerUtility.dir/PAKCrypt.c.o
[100%] Linking C executable PAKerUtility
[100%] Built target PAKerUtility
Once built I tried to use this utility on disc SCES_553.85 (The Buzz - Brain of)
Output:
lewiscowles@Lewiss-MacBook-Air---M4 build % $(pwd)/PAKerUtility -l /Volumes/BUZZBRAINOF/A2D.PAK
PAKer Utility v1.01
Recompiled by El_isra
Made by SP193
---------------------
IV=0x504b0304
CRC checksums:
Cipher key table 1: 0x262084a1
Cipher key table 2: 0x851f3cce
Error: Unable to generate key! Possible cause: File format is not supported.
Output:
lewiscowles@Lewiss-MacBook-Air---M4 build % $(pwd)/PAKerUtility -l /Volumes/BUZZBRAINOF/TEXTURES.PAK
PAKer Utility v1.01
Recompiled by El_isra
Made by SP193
---------------------
IV=0x504b0304
CRC checksums:
Cipher key table 1: 0x262084a1
Cipher key table 2: 0x851f3cce
Error: Unable to generate key! Possible cause: File format is not supported.
I've no idea if the PAK files are corrupt or if the build is subtly incorrect on a modern system, or Mac specifically. I am on an ARM64 mac; I have noticed a lack of modern standard types:
- uint32_t
- uint16_t
- uint8_t
- int32_t
- int16_t
- int8_t
If you have the time and inclination, I'd really appreciate any advice