You are not logged in.
Hey everybody,
I'd really like to have this program in AUR.
It's really something we still need in the world of Open Source Motion Graphics and VFX and it does it well!
Check it out:
it's in CMAKE and i really don't know anything about it.
If someone could make an initial PKGBUILD i'd be happy to maintain it.
cheers
Rio
Offline
I've tried my luck, but in vain as it seems. I get pretty weird errors with cmake.
This is as far as I've come:
pkgname=djv
pkgver=0.8.1
pkgrel=1
pkgdesc="Movie playback and image processing software"
arch=('i686' 'x86_64')
url="http://djv.sourceforge.net"
license=('BSD')
depends=('fltk>=1.1' 'glew>=1.4' 'openexr>=1.1')
makedepends=('cmake')
optdepends=('ffmpeg'
'libjpeg'
'libpng'
'libtiff'
'libquicktime')
backup=()
options=()
install=
source=(http://downloads.sourceforge.net/djv/$pkgname-$pkgver.tar.gz)
md5sums=('6a3d68a824875272565174a31f087291')
build() {
cd "$srcdir"/$pkgname-$pkgver
cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
make || return 1
make DESTDIR="$pkgdir/" install
install -D -m644 LEGAL.txt "$pkgdir"/usr/share/licenses/$pkgname/LEGAL.txt
}If I run this with makepkg, I get the following error:
$ makepkg
==> Making package: djv 0.8.1-1 i686 (Sat Feb 28 21:36:42 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Using cached copy of djv-0.8.1.tar.gz
==> Validating source files with md5sums...
djv-0.8.1.tar.gz ... Passed
==> Extracting Sources...
-> bsdtar -x -f djv-0.8.1.tar.gz
==> Entering fakeroot environment...
==> Starting build()...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
X11_LIBRARIES = /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu
OPENGL_LIBRARIES = /usr/lib/libGLU.so;/usr/lib/libGL.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu
DJV_SYS_LIB = -ldl
CMake Error at CMakeLists.txt:223 (STRING):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:237 (DJV_PARSE_INC)
DJV_PKG_CONFIG = /usr/bin/pkg-config
DJV_FLTK_CONFIG = /usr/bin/fltk-config
DJV_ENV_INC =
DJV_ENV_LIB =
DJV_FLTK_INC = /usr/include/freetype2
DJV_FLTK_BASE_LIB = -Wl,-rpath,/usr/lib -lfltk -lXft -lpthread -ldl -lm -lXext -lX11
DJV_FLTK_LIB = -Wl,-rpath,/usr/lib -lfltk_gl -lGLU -lGL -lfltk -lXft -lpthread -ldl -lm -lXext -lX11
DJV_GLEW_LIB = -lGLEW
DJV_EXR_INC = /usr/include/OpenEXR
DJV_EXR_BASE_LIB = -lHalf
DJV_EXR_LIB = -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread
DJV_VLUT_INC = /usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include
DJV_VLUT_LIB = /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu;-lXxf86vm
DJV_JPEG_LIB = -ljpeg
DJV_TIFF_LIB = -ltiff;-ljpeg;-lz
DJV_PNG_LIB = -lpng;-lz
DJV_QUICKTIME_INC = /usr/include/lqt
DJV_QUICKTIME_LIB = -lquicktime -lpthread -lm -lz -ldl
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!On the other hand, if I run the cmake command manually, I don't get this error:
$ cmake . -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
X11_LIBRARIES = /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu
OPENGL_LIBRARIES = /usr/lib/libGLU.so;/usr/lib/libGL.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu
DJV_SYS_LIB = -ldl
DJV_PKG_CONFIG = /usr/bin/pkg-config
DJV_FLTK_CONFIG = /usr/bin/fltk-config
DJV_ENV_INC =
DJV_ENV_LIB =
DJV_FLTK_INC = /usr/include/freetype2
DJV_FLTK_BASE_LIB = -Wl,-rpath,/usr/lib -lfltk -lXft -lpthread -ldl -lm -lXext -lX11
DJV_FLTK_LIB = -Wl,-rpath,/usr/lib -lfltk_gl -lGLU -lGL -lfltk -lXft -lpthread -ldl -lm -lXext -lX11
DJV_GLEW_LIB = -lGLEW
DJV_EXR_INC = /usr/include/OpenEXR
DJV_EXR_BASE_LIB = -lHalf
DJV_EXR_LIB = -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread
DJV_VLUT_INC = /usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include
DJV_VLUT_LIB = /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;Xmu;-lXxf86vm
DJV_JPEG_LIB = -ljpeg
DJV_TIFF_LIB = -ltiff;-ljpeg;-lz
DJV_PNG_LIB = -lpng;-lz
DJV_QUICKTIME_INC = /usr/include/lqt
DJV_QUICKTIME_LIB = -lquicktime -lpthread -lm -lz -ldl
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Warning (dev) at lib/djv_image/CMakeLists.txt:2 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "djv_image" links to some libraries for which the linker
must search:
-lGLEW, -lHalf, -ldl
and other libraries with known full path:
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/libdjv_base.so
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /my/own/abs/tree/djv/src/djv-0.8.1I've run the commands with the --debug-output option without getting further infos, but running them with --trace produces (next to ~1500 lines of output) also 2 new differences, which are the lines
/usr/share/cmake-2.6/Modules/CMakeCInformation.cmake(68): SET(CMAKE_C_FLAGS_INIT )and
/usr/share/cmake-2.6/Modules/CMakeCXXInformation.cmake(151): SET(CMAKE_CXX_FLAGS_INIT )which are outputted if I use cmake manually, but not if I use makepkg...
At the moment, I can neither tell what the differences mean, nor why they occur. It must have something to to with the configuration in which makepkg runs cmake...
Albeit from that, even after a successfull manual cmake command, the make command fails with the following error:
$ make
Scanning dependencies of target djv_base
[ 0%] Building CXX object lib/djv_base/CMakeFiles/djv_base.dir/error.o
[ 0%] Building CXX object lib/djv_base/CMakeFiles/djv_base.dir/io.o
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/lib/djv_base/io.cxx: In member function 'void djv_base::io::Io::close()':
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/lib/djv_base/io.cxx:173: error: 'strerror' was not declared in this scope
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/lib/djv_base/io.cxx:200: error: 'strerror' was not declared in this scope
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/include/djv_base/file.h: At global scope:
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/include/djv_base/file.h:176: warning: 'djv_base::file::path_separator' defined but not used
/home/demichan/abs/build-files/wip/djv/src/djv-0.8.1/include/djv_base/file.h:177: warning: 'djv_base::file::list_separator' defined but not used
make[2]: *** [lib/djv_base/CMakeFiles/djv_base.dir/io.o] Error 1
make[1]: *** [lib/djv_base/CMakeFiles/djv_base.dir/all] Error 2
make: *** [all] Error 2If I look at these errors, I think I can understand why non of the major linux distros is providing a package for this software (according to whohas).
Anyone else who has an idea how to procede?
edit: License was BSD and not GPL, so I've changed it in the PKGBUILD draft.
Last edited by G_Syme (2009-03-04 11:39:26)
The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.
Offline
Yeah i've got te same problems... any way thanks for taking a look at it and giving me a PKGBUILD example.
This thing is in it's pre release state 17 right now so i think i'll just wait for it until it gets released like a full release.
It's really a shame because it's really a great great tool, me and my co students use it daily.
anyway thnx again.
Offline