On 10.05.20 11:26, David W. Jones wrote:
On 5/9/20 9:44 PM, Kay F. Jahnke wrote:
On 10.05.20 08:39, David W. Jones wrote:
Thanks, sounds fun. Tried to build it on Debian 10, got this:
~/pv$ make
clang++ -c -Ofast -std=c++11 -c pv_no_rendering.cc -o pv_no_rendering.o
clang++ -c -Ofast -std=c++11 -c pv_initialize.cc -o pv_initialize.o
clang++ -c -D PV_EXTERN=extern -mavx2 -D PV_ARCH=PV_AVX2 -Ofast
-std=c++11 -c pv_rendering.cc -o pv_avx2.o
In file included from pv_rendering.cc:108:
In file included from ./pv_common.h:59:
In file included from /usr/include/Vc/Vc:30:
In file included from /usr/include/Vc/vector.h:35:
In file included from /usr/include/Vc/avx/vector.h:32:
In file included from
/usr/include/Vc/scalar/../common/../avx/casts.h:33:
In file included from
/usr/include/Vc/scalar/../common/../avx/../sse/casts.h:31:
/usr/include/Vc/scalar/../common/../sse/intrinsics.h:601:13: error:
argument to
'__builtin_ia32_vec_ext_v4sf' must be a constant integer
_MM_EXTRACT_FLOAT(f, v, i);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/clang/7.0.1/include/smmintrin.h:890:11: note: expanded
from macro
'_MM_EXTRACT_FLOAT'
{ (D) = __builtin_ia32_vec_ext_v4sf((__v4sf)(__m128)(X), (int)(N)); }
^ ~~~~~~~~
1 error generated.
I think I found the problem. I use clang++ v.6 here, which works fine
with the Vc version from package management: my ubuntu also provides
1.3.3. But clang++-7, which you use, does not seem to work with this Vc
version.
So either you can try to downgrade to clang++ v.6 and stick with Vc
1.3.3 from Synaptic, or you build the Vc 1.4 branch from source. That
would be the better option, because 1.4 has some new functionality.
Building Vc is not hard, you can use the procedure I have given in pv's
documentation. Navigate to the place where you keep your cloned git
repos, then do this:
git clone https://github.com/VcDevel/Vc.git
cd Vc
git checkout 1.4
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=clang++ ..
make
make install
This will install the Vc headers to /usr/local/include and libVc.a to
/usr/local/lib. My system gives preference to stuff in /usr/local, but
to be on the safe side, remove the Vc which Synaptic gave you to make
sure you include and link Vc 1.4.
After that, the compile should run through with either clang++-6 or
clang++-7. So after you've installed the Vc 1.4 branch, just go to the
pv root directory again and issue 'make'.
Again, let me know what happens.
Kay
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/e3f258ab-df71-65d0-9251-ebcff840e308%40yahoo.com.