Skip to content

Commit

Permalink
[FIX][Vips]
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieleDeSensi committed Sep 28, 2017
1 parent 36dfae8 commit 08e6328
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ else
# Removing caches
rm -rf pkgs/apps/bodytrack/src/autom4te.cache/

# Removing VIPS old file (is needed otherwise will not compile the new version).
rm -rf pkgs/apps/vips/src/libvips/iofuncs/threadpool.c

# Clean
mv README README_PARSEC
echo "Download succeeded."
Expand Down
2 changes: 1 addition & 1 deletion parsec-ff/pkgs/apps/vips/parsec/gcc-ff.bldconf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
build_deps="glib libxml2 zlib"

# Environment to use for configure script and Makefile
build_env="CXXFLAGS=\"-I${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/include -I${PARSECDIR}/pkgs/libs/zlib/inst/${PARSECPLAT}/include ${CXXFLAGS} -fexceptions -DFF_VERSION\" LDFLAGS=\"-L${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/lib -L${PARSECDIR}/pkgs/libs/zlib/inst/${PARSECPLAT}/lib ${LDFLAGS}\" PKG_CONFIG_PATH=\"${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/lib/pkgconfig:${PARSECDIR}/pkgs/libs/libxml2/inst/${PARSECPLAT}/lib/pkgconfig:${PKG_CONFIG_PATH}\" LIBS=\"${LIBS} -lstdc++\""
build_env="CXXFLAGS=\"-I${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/include -I${PARSECDIR}/pkgs/libs/zlib/inst/${PARSECPLAT}/include ${CXXFLAGS} -fexceptions\" LDFLAGS=\"-L${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/lib -L${PARSECDIR}/pkgs/libs/zlib/inst/${PARSECPLAT}/lib ${LDFLAGS}\" PKG_CONFIG_PATH=\"${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/lib/pkgconfig:${PARSECDIR}/pkgs/libs/libxml2/inst/${PARSECPLAT}/lib/pkgconfig:${PKG_CONFIG_PATH}\" LIBS=\"${LIBS} -lstdc++\""

# Whether the build system supports only in-place compilation.
# If TRUE, then all sources will be copied to the build directory before we
Expand Down
3 changes: 1 addition & 2 deletions parsec-ff/pkgs/apps/vips/src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,13 @@ fi
AC_ARG_ENABLE(fastflow,
AS_HELP_STRING([--enable-ff], [evaluate with FastFlow (default: no)]))

if test x"$enable_ff" = x"yes"; then
if test x"$enable_ff" = "xyes"; then
AC_DEFINE(HAVE_FF,1,[FastFlow evaluation])
enable_ff=yes
else
enable_ff=no
fi


# check for gtk-doc
GTK_DOC_CHECK(1.9)

Expand Down
4 changes: 2 additions & 2 deletions parsec-ff/pkgs/apps/vips/src/libvips/iofuncs/threadpool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ vips_thread_main_loop( void *a )
/* Attach another thread to a threadpool.
*/
static VipsThread *
vips_thread_new( VipsThreadpool *pool )
vips_thread_new( VipsThreadpool *pool)
{
VipsThread *thr;

Expand Down Expand Up @@ -917,7 +917,7 @@ vips_threadpool_run( VipsImage *im,
workers.push_back(new Worker(pool));
}
ff::ff_farm<> farm(workers, new Emitter(), new Collector(pool, progress));
(Emitter*) farm.getEmitter()->_lb = farm.getlb();
((Emitter*) farm.getEmitter())->_lb = farm.getlb();
farm.run_and_wait_end();
/* Return 0 for success.
*/
Expand Down

0 comments on commit 08e6328

Please sign in to comment.