cth103 / libdcp

Library for reading and writing Digital Cinema Packages (DCPs).
GNU General Public License v2.0
22 stars 11 forks source link

error in installation #13

Closed priyankoivan closed 4 months ago

priyankoivan commented 4 months ago

when i run - ./waf configure

it show me this -

fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Setting top to                           : /home/ivan/Desktop/Dcp Player/libdcp-main 
Setting out to                           : /home/ivan/Desktop/Dcp Player/libdcp-main/build 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for library dl                  : yes 
Checking for program 'pkg-config'        : /usr/bin/pkg-config 
Checking for 'openssl'                   : yes 
Checking for 'libxml++-2.6'              : yes 
Checking for 'xmlsec1'                   : yes 
Checking for ImageMagick/GraphicsMagick  : yes 
Checking for 'sndfile'                   : yes 
Checking for any version of libopenjp2   : yes 
Checking for numgbits in opj_cparameters_t : no 
Checking for libopenjp2 >= 2.5.0           : yes 
Checking for 'libasdcp-carl'               : not found

error - Checking for numgbits in opj_cparameters_t : no Checking for 'libasdcp-carl' : not found

I already install libasdcp-carl from asdcplib-cth and also install libopenjp2

cth103 commented 4 months ago

Sorry, it's a bit confusing. You need to use this asdcplib repo, with the branch carl if you are building libdcp branch main.

priyankoivan commented 4 months ago

thank you , i successfully install libdcp. when I run -

dcp::DCP dcp("path/to/dcp/directory"); dcp.read();

read() method give me error .

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff731b34a in ASDCP::Dictionary::Type(ASDCP::MDD_t) const () from /usr/local/lib/libasdcp-carl.so
The target architecture is set to "auto" (currently "i386:x86-64").

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
cth103 commented 4 months ago

Make sure you are calling dcp::init() at the start of your program.

priyankoivan commented 4 months ago

thank you so much. The problem was fixed.