Comments (15)
Hi I am also facing the same issue in windoiws.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\lenovo\appdata\local\programs\python\python36\include -Ic:\users\lenovo\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc/distance.cpp /Fobuild\temp.win-amd64-3.6\Release\src/distance.obj -g -O2 -march=native
cl : Command line warning D9002 : ignoring unknown option '-g'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
distance.cpp
src/distance.cpp(18): error C2668: 'abs': ambiguous call to overloaded function
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdlib.h(364): note: could be '__int64 abs(const __int64) throw()'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdlib.h(359): note: or 'long abs(const long) throw()'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdlib.h(289): note: or 'int abs(int)'
src/distance.cpp(18): note: while trying to match the argument list '(double)'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2
from cv_algorithms.
Thanks for reporting this!
The issue seems to be
src/distance.cpp:18:46: error: call of overloaded ‘abs(double)’ is ambiguous
result[ax*awidth + bx] = abs(a[ax] - b[bx]);
however I can't reproduce this on Ubuntu 18.04. I believe it is either caused by a different version of GCC or a different version of some library.
Could you share the following information?
- Output of
gcc -v
- Which distribution & version of that distribution you are using (e.g. "Debian Jessie")?
I'm convinced it's a pretty easy fix, but I need to be able to reproduce it somehow.
from cv_algorithms.
george@george-OMEN-by-HP-Laptop ~/aramco_hack $ lsb_release -cd Description: Linux Mint 18.3 Sylvia Codename: sylvia george@george-OMEN-by-HP-Laptop ~/aramco_hack $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.4.0-17ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --with-as=/usr/bin/x86_64-linux-gnu-as --with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.4.0 20180424 (Ubuntu 6.4.0-17ubuntu1~16.04) george@george-OMEN-by-HP-Laptop ~/aramco_hack $
from cv_algorithms.
@mekacharan @GeorgeKaspar I've added an explicit cast to int64_t
to try to resolve this issue. Can you retry the pip install
command (if you cloned the repository instead of using git+https://...
with pip
, you might need to git pull
before that)?
from cv_algorithms.
Hi Thanks for the prompt support.
When I tried installing i am getting this error
src/popcount.cpp(20): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(27): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(34): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(41): error C3861: '__builtin_popcountll': identifier not found
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2
from cv_algorithms.
Hi Thanks for the prompt support.
When I tried installing i am getting this error
src/popcount.cpp(20): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(27): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(34): error C3861: '__builtin_popcount': identifier not found
src/popcount.cpp(41): error C3861: '__builtin_popcountll': identifier not found
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2
Same here :/
from cv_algorithms.
Same issue on windows 10
Running setup.py install for cv-algorithms ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-req-build-3pacc019\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-req-build-3pacc019\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-peg_4hry\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\Admin\AppData\Local\Temp\pip-req-build-3pacc019
Complete output (41 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\classification.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\colorspace.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\contours.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\distance.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\grassfire.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\morphology.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\neighbours.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\popcount.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\text.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\thinning.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms\utils.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms_checks.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms_ffi.py -> build\lib.win-amd64-3.7\cv_algorithms
copying cv_algorithms_init_.py -> build\lib.win-amd64-3.7\cv_algorithms
creating build\lib.win-amd64-3.7\test
copying test\TestColorspace.py -> build\lib.win-amd64-3.7\test
copying test\TestContours.py -> build\lib.win-amd64-3.7\test
copying test\TestDistance.py -> build\lib.win-amd64-3.7\test
copying test\TestGrassfire.py -> build\lib.win-amd64-3.7\test
copying test\TestNeighbours.py -> build\lib.win-amd64-3.7\test
copying test\TestPopcount.py -> build\lib.win-amd64-3.7\test
copying test\TestThinning.py -> build\lib.win-amd64-3.7\test
copying test\TestUtils.py -> build\lib.win-amd64-3.7\test
copying test_init_.py -> build\lib.win-amd64-3.7\test
running build_ext
building 'cv_algorithms._cv_algorithms' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT "-Ic:\program files\python37\include" "-Ic:\program files\python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\include" /EHsc /Tpsrc/thinning.cpp /Fobuild\temp.win-amd64-3.7\Release\src/thinning.obj -g -O2 -march=native
cl : Command line warning D9002 : ignoring unknown option '-g'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
thinning.cpp
src/thinning.cpp(1): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-req-build-3pacc019\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-req-build-3pacc019\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-peg_4hry\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
from cv_algorithms.
@vtatntpt
Your issue seems to be different. You are missing stdlib.h - I recommend to Google for "msvcc stdlib.h not found" and try out some of the solutions suggested there. It's not specifically an issue with cv_algorithms, however maybe if you could share what worked for you we might be able to provide that solutions to other users
from cv_algorithms.
@Others
Although I couldn't spend any time on the popcount issue before, I am still aware of it and will try to find a solution.
from cv_algorithms.
@mekacharan @vendilhao
Based on https://stackoverflow.com/a/24550632/2597135 I have implemented a solution for Microsoft compilers.
Could you check on your platform?
from cv_algorithms.
@mekacharan @vendilhao
Based on https://stackoverflow.com/a/24550632/2597135 I have implemented a solution for Microsoft compilers.Could you check on your platform?
Unfortunately, the error message is still the same:
src/popcount.cpp(46): error C3861: "__builtin_popcountll": Bezeichner wurde nicht gefunden. error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
from cv_algorithms.
@CrazyCrud Thanks for checking.This seems to be a different error message. Now it's complaining about __builtin_popcountll
(long long version).
I have just commited a possible fix, could you try again?
from cv_algorithms.
@ulikoehler No problem.
I tried to install it with the new fix, but another error occured:
LINK : error LNK2001: Nicht aufgelöstes externes Symbol "PyInit__cv_algorithms". build\temp.win-amd64-3.6\Release\src\_cv_algorithms.cp36-win_amd64.lib : fatal error LNK1120: 1 nicht aufgelöste Externe error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120
You can see the full log is here.
from cv_algorithms.
@ulikoehler No problem.
I tried to install it with the new fix, but another error occured:
LINK : error LNK2001: Nicht aufgelöstes externes Symbol "PyInit__cv_algorithms". build\temp.win-amd64-3.6\Release\src\_cv_algorithms.cp36-win_amd64.lib : fatal error LNK1120: 1 nicht aufgelöste Externe error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120
You can see the full log is here.
This one seems related with #4
from cv_algorithms.
I've just released a fix for the Windows installation problem, could you please check if the issue persists?
from cv_algorithms.
Related Issues (3)
- extractPolygonMask HOT 1
- Install fails on Windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cv_algorithms.