Unsolved How to add GPAC(MP4Box) library to Qt project ?
-
I'm using qt 5.11 and trying to add GPAC (MP4Box), I firstly compile the library downloaded from Git and then include it's path in .pro file as like given below:
LIBS += -L"/Users/stellar/Desktop/gpac/bin/gcc" INCLUDEPATH += /Users/stellar/Desktop/gpac/include
Then, I include a header file in main.cpp
#include<gpac/avparse.h>
But I'm getting a error:
"/Users/stellar/Desktop/gpac/include/gpac/configuration.h:163: error: "Unknown target platform used with static configuration file" #error "Unknown target platform used with static configuration file"
-
Hi and welcome to devnet,
Try adding
DEFINES += GPAC_CONFIG_DARWIN
to your .pro file. -
Thanks @SGaist , It works perfectly.
-
You're welcome !
You might want to add a scope around that line if you plan to build your application on other platforms.
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)