Attached. @dev-SVN-r20216. ~Matej.

On 18.3.2016 16:05, Michael Behrisch wrote:
Hi Matej,
thanks for trying that, could you send a patch?

Best regards,
Michael

Am 17.03.2016 um 23:45 schrieb Matěj Kubička:
Hello,
I have been compiling the nightly build today both on my computer and on
ARM device.

The configure script found ffmpeg libraries and enabled the ffmpeg
option but the compilation died because gcc didn't find header files in
my system. Also there doesn't seem to be no --disable-ffmpeg switch as
one would expect it to be.

On the ARM machine I had issues with your testing scripts for libxerces.
You invoke g++ with options -msse2 -mfpmath=sse that enable SIMD
instructions (configure.ac line ~15) when testing if the libabry is
installed. I do not get why is it there - these exist only on x86 and
x86_64 architectures. Gcc for ARM  don't recognize these options and
return error when invoked. This will cause error message stating that
the build system couldn't find libxerces-c, even if installed correctly.

I bypassed both issues with relatively easy changes in configuration
scripts .. but maybe its something you want to know about.

Matej.


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Index: configure.ac
===================================================================
--- configure.ac	(revision 20216)
+++ configure.ac	(working copy)
@@ -11,13 +11,16 @@
 
 AC_LANG([C++])
 
-dnl the debug check has to be made before the program checks
-dnl because it modifies CXXFLAGS
-if test x$CXX = xclang++; then
-    CXXFLAGS="-msse2 $CXXFLAGS"
-else
-    CXXFLAGS="-msse2 -mfpmath=sse $CXXFLAGS"
+dnl the debug check has to be made before the program checks because it modifies
+dnl CXXFLAGS. Make sure we are on architecture that supports SIMD
+if [ $($shell uname -p) = "x86" ] || [ $($shell uname -p) = "x86_64" ] ; then
+   if test x$CXX = xclang++; then
+       CXXFLAGS="-msse2 $CXXFLAGS"
+   else
+       CXXFLAGS="-msse2 -mfpmath=sse $CXXFLAGS"
+   fi
 fi
+
 AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[enable sumo debugging code [default=no].])])
 if test x$enable_debug = xyes; then
     AC_DEFINE(_DEBUG, 1, [Define to 1 in order to enable sumo debugging code.])
@@ -37,6 +40,7 @@
     ac_disabled="$ac_disabled Profiling"
 fi
 
+AC_ARG_WITH([ffmpeg], [AS_HELP_STRING([--with-ffmpeg],[enable ffmpeg-based features.])])
 
 dnl Checks for programs.
 AC_PROG_CC
@@ -392,16 +396,26 @@
 
 dnl - - - - - - - - - - - - - - - - - - - - - - -
 dnl  ... for ffmpeg
-save_cppflags=$CPPFLAGS
-CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg -I/usr/local/include"
-export CPPFLAGS
-AC_CHECK_HEADER([libavformat/version.h], 
-                [AM_CPPFLAGS="$CPPFLAGS $AM_CPPFLAGS"
-                 AC_DEFINE([HAVE_FFMPEG], [1], [defined if ffmpeg is available])
-                 FFMPEG_LIBS="-lavformat -lavcodec -lavutil -lswscale" AC_SUBST(FFMPEG_LIBS)
-                 ac_enabled="$ac_enabled ffmpeg"],
-                [ac_disabled="$ac_disabled ffmpeg"])
-CPPFLAGS=$save_cppflags
+if test x$with_ffmpeg != xno; then
+  save_cppflags=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg -I/usr/local/include"
+  export CPPFLAGS
+  AC_CHECK_HEADER([libavformat/version.h], 
+                  [AM_CPPFLAGS="$CPPFLAGS $AM_CPPFLAGS"
+                   AC_DEFINE([HAVE_FFMPEG], [1], [defined if ffmpeg is available])
+                   FFMPEG_LIBS="-lavformat -lavcodec -lavutil -lswscale" AC_SUBST(FFMPEG_LIBS)
+                   ac_enabled="$ac_enabled ffmpeg"
+		   found_ffmpeg=yes],
+                  [ac_disabled="$ac_disabled ffmpeg"
+		   found_ffmpeg=no])
+  if test x$with_ffmpeg = xyes && test x$found_ffmpeg = xno; then 
+    AC_MSG_ERROR([ffmpeg libraries (libavcodec, libavformat, libavutil, libswscale) not found.])
+  fi
+                
+  CPPFLAGS=$save_cppflags
+else
+  ac_disabled="$ac_disabled ffmpeg"
+fi
 
 dnl - - - - - - - - - - - - - - - - - - - - - - -
 dnl  general flags
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to