Compile SFmpq for Mac, If anyone wanted to know
Post #1
MC˛poiuy_qwert
Aug 26 2010, 1:00 am
|
PyMS and ProTRG developer
|
Not many people will probably care, but I though I might as well share the information I have just in case someone is looking for info. These are the steps I took to fix some small compatibility errors and compile SFmpq on OS X:
1) Download SFmpqapi, SComp, bzip, and zlib 2) Replace #include <malloc.h> with #include <stdlib.h> in windows.cpp/.h, SMem.cpp/.h, and SFmpqapi.cpp/.h 3) Replace #include <windows.h> with #include "windows.h" in SFmpqapi.cpp/.h 4) Compile files in this order: windows SErr SMem explode implode (there was a cast from unsigned char* to char* "error" on line 452 for me, easy fixes though) huffman crc32 wave SComp SFmpqapi bzip (a simple "make" works to compile it. i needed to compile it or else I would get missing symbol errors, but didn't need to do this for zlib) 5) Compile it all together. I used: g++ -dynamiclib -o SFmpq.dylib -lz windows.o SFmpqapi.o crc32.o explode.o huffman.o implode.o SComp.o SErr.o SMem.o wave.o bzip2/blocksort.o bzip2/compress.o bzip2/decompress.o bzip2/randtable.o bzip2/bzip2.o bzip2/bzlib.o bzip2/crctable.o bzip2/huffman.o Thank you to ShadowFlare for making such an awesome dll (or dylib ;P)! ![]() ![]() ![]() ![]() ![]() ![]() ![]() We mod Starcraft. PyMS (Forums/Local) | FNTGen | ProTRG (Local) | LocUnlock | BWAI Launcher BroodWarAI.com (Forums) | StarCraft: Team Fortress (Forums/Local) |
Post #2
ShadowFlare
Sep 3 2010, 3:14 am
Post #4
Jack[RCDF
Sep 3 2010, 3:56 am
Post #5
ShadowFlare
Sep 3 2010, 4:36 am
|
At the time, I must not have realized that I didn't need a different one for each of those cases.
As for strdup, try removing it from windows.cpp/.h. Maybe I didn't used to have it including the header that defined it and now it is? The last time I had tried compiling it in Linux was maybe when I had a computer with Red Hat Linux 7.something installed on another partition. This post was edited 1 time, last edit by ShadowFlare: Sep 3 2010, 4:42 am. ![]() ![]() ![]() ![]() ![]() ![]() |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[02:29 am]
[02:17 am]
[02:16 am]
[02:10 am]
[02:10 am]
[02:05 am]





![[close]](/images/up.gif)