[CinCV TNG] Can't disable ladspa

Yuri yuri at rawbw.com
Sun Jun 3 03:41:18 CEST 2018


On 06/02/18 16:06, Phyllis Smith wrote:
>
>
>
> Looks like the include file search path is wrong.   This version of 
> the Thread class is only
> used in libzmpeg3, not in the cinelerra main app.   That version is in 
> guicast.  The builds
> here use these file paths in the directory makes.  I am *guessing* 
> that you used a global
> include search path which always includes libzmpeg3 first, but I 
> cannot say for sure why
> the file the compiler uses is the wrong choice.
>
> If you look in the same directory as affine.C, in x86_64/c_flags you 
> can see the CFLAGS
> that was used in the compiler call created by the makefile recipe.  It 
> will include guicast
> first if you want to access the correct thread.h
>
> Summary:
> configure.ac <http://configure.ac> creates configure
> configure creates global_config
> cinellera/Makefile reads global_config and creates/uses x86_64/c_flags
>
> To change this means probably to add CFLAGS to one of those steps.


Yes, two directories are swapped in cinelerra/amd64/c_flags: 
-I/usr/ports/multimedia/CinelerraGG/work/CinelerraGG10-11a9793/cinelerra-5.1/libzmpeg3 
-I/usr/ports/multimedia/CinelerraGG/work/CinelerraGG10-11a9793/cinelerra-5.1/guicast


IMO, somebody who is an expert in CinelerraGG build should fix its build 
in the FreeBSD virtual machine.

There are several obvious items:

* gcc should be replaced with $(CC)

* g++ should be replaced with $(CXX)

* make should be replaced with $(MAKE)

* qsort_r is defined differently:

+#if !defined(__FreeBSD__)
    qsort_r(pages, npages, sizeof(*pages), ioCmpr, this);
+#else
+  qsort_r(pages, npages, sizeof(*pages), this, (int (*)(void *, const 
void *, const void *))ioCmpr);
+#endif

+#if !defined(__FreeBSD__)
    qsort_r(pages, npages, sizeof(*pages), ioCmpr, this);
+#else
+  qsort_r(pages, npages, sizeof(*pages), this, (int (*)(void *, const 
void *, const void *))ioCmpr);
+#endif

* bswap is defined fifferently

-      ptr[i] = bswap_32(ptr[i]);
+      ptr[i] = bswap32(ptr[i]);

-                min.i = bswap_32(fs->read_uint32());
-                max.i = bswap_32(fs->read_uint32());
+                min.i = bswap32(fs->read_uint32());
+                max.i = bswap32(fs->read_uint32());

* #include <malloc.h> should be replaced with #include <stdlib.h> everywhere



I am interested in creating the port, and have the port skeleton, but I 
can't spend a week debugging the build and discovering gotchas. Once the 
project just builds, I can easily create the port.

Below are the configure arguments that I use.


Yuri



CONFIGURE_ARGS= --disable-a52dec \
                 --disable-djbfft \
                 --disable-audiofile \
                 --disable-esound \
                 --disable-fdk \
                 --disable-ffmpeg \
                 --disable-fftw \
                 --disable-flac \
                 --disable-giflib \
                 --disable-ilmbase \
                 --without-ladspa-build \
                 --disable-lame \
                 --disable-libavc1394 \
                 --disable-libraw1394 \
                 --disable-libiec61883 \
                 --disable-libdv \
                 --disable-libjpeg \
                 --disable-libogg \
                 --disable-libsndfile \
                 --disable-libtheora \
                 --disable-libuuid \
                 --disable-libvorbis \
                 --disable-mjpegtools \
                 --without-openexr \
                 --disable-openjpeg \
                 --disable-tiff \
                 --disable-twolame \
                 --disable-x264 \
                 --disable-x265 \
                 --disable-libvpx \
                 --disable-opus \
                 --disable-lv2 \
                 --disable-lilv \
                 --disable-sratom \
                 --disable-serd \
                 --disable-sord \
                 --disable-suil \
                 --without-firewire
CFLAGS+=        -Dstat64=stat \
                 -Dfstat64=fstat \
                 -Dlseek64=lseek \
                 -Dfopen64=fopen \
                 -Dfseeko64=fseeko \
                 -Dreaddir64=readdir \
                 -Ddirent64=dirent \
                 -Du_int32_t=uint32_t \
                 -Derror_recognition=err_recognition \
                 -I/usr/local/include \
                 -I/usr/local/include/freetype2 \
                 -I${WRKSRC}/libzmpeg3 \
                 -I${WRKSRC}/guicast


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cinelerra-cv.org/pipermail/cinelerra/attachments/20180602/caae567f/attachment.html>


More information about the Cinelerra mailing list