RicoCasta / opencinematools

Automatically exported from code.google.com/p/opencinematools
0 stars 0 forks source link

build/unix make fail (with asdcplib v.1.4.24, not the included asdcplib) #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. here building the included dep/asdcplib fails (see issues), so get
current stable asdcplib from http://www.cinecert.com/asdcplib/ and
build/install it
2. cd build/unix # fix the -crypto flag to read -lcrypto
3. make

What is the expected output? What do you see instead?

g++ -o ../../bin/mkpkl ../../src/mkpkl.cpp -lm -lopenjpeg -lexpat -lasdcp
-lkumu -lcrypto
In file included from ../../src/mkpkl.cpp:22:
/usr/local/include/KM_fileio.h:112: error: redefinition of ‘void
Kumu::compile_time_size_checker() [with bool sizecheck = false]’
/usr/local/include/KM_fileio.h:99: error: ‘void
Kumu::compile_time_size_checker() [with bool sizecheck = false]’ previously
declared here
make: *** [mkpkl] Error 1

What version of the product are you using? On what operating system?

opencinematools-1.1.2-src.zip, ubuntu 9.04, asdclib v.1.4.24 (/not/ the
included asdcplib which I can't build here)

Please provide any additional information below.

Solution: Go read /usr/local/include/KM_fileio.h lines 101-110 which
explain what just happened and suggest 2 possible fixes. diff to my
build/unix/Makefile:

10c10
<   $(CC) -o $(BINS)mkpkl $(SRCS)mkpkl.cpp $(LIBS)

---
>   $(CC) -o $(BINS)mkpkl $(SRCS)mkpkl.cpp $(LIBS) -D_FILE_OFFSET_BITS=64 #
see /usr/local/include/KM_fileio.h:99
13,14c13
<   $(CC) -o $(BINS)mkmap $(SRCS)mkmap.cpp $(LIBS)
< 

---
>   $(CC) -o $(BINS)mkmap $(SRCS)mkmap.cpp $(LIBS) -D_FILE_OFFSET_BITS=64

Note that, like KM_fileio says, this might not work for unix systems which
don't support large files. How to make a Makefile check for that in order
to get the right CFLAG is totally beyond me, so there you are :)

Original issue reported on code.google.com by photonra...@gmail.com on 15 Aug 2009 at 6:29