Open zhouhesheng opened 9 years ago
Hello, I've same issue. This happened because it uses library https://github.com/Keemotion/GPAC4iOS that has function 'import_file'. This function is not exported into library GPAC4iOS.
So I've included sources of GPAC4iOS and TS2MP4 into project. After that it starts work.
@zumer do you have a sample of this working ? I was having trouble compiling it with PODs so I moved all the files into a project, but I get compile errors about Arm64 - how did you solve that?
Edit - Fixed this by adding a reference to the 'libz.tbd' in the project
After pod installed, I open the workspace and tried to run the Demo, the following link error reported by Xcode: Undefined symbols for architecture xxx: "import_file(__tagisom, char_, unsigned int, double, unsigned int)", referenced from: _assemble_elementary_streams in libTS2MP4.a(mp4mux.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
It happened on both simulator and iPhone device, i checked about GPAC_DISABLE_MEDIA_IMPORT, this macro is not defined in configuration.h /disables all media import functions/ /* REQUIRED FROM RAW->MP4 */ //#define GPAC_DISABLE_MEDIA_IMPORT
/disable all AV parsing functions/ /* REQUIRED FROM RAW->MP4 */ //#define GPAC_DISABLE_AV_PARSERS