I have opencv4 installed on my arch linux. I have a project that consist pkg-config command:
PKGCONFIG += opencv
But it gives this error:
opencv development package not found
The project developed a computer that uses opencv 3.2. So i installed opencv3-opt(exact version 3.4.19) package from AUR. Now I can call pkg-config with opencv3 and opencv4 arguments. But I need to call it with directly opencv argument. What should i do for that?
I have macOS Big Sur on a Apple Silicon M1 and I'm unable to install Tensorflow in python3.
I removed xcode python3 and installed brew arm64 python3 (x86 python3 doesn't work as well)
I checked successful 64 bis version
python3 -c "import sys; print(sys.version)" or python -c "import struct; print(struct.calcsize('P')*8)"
3.8.7 (default, Dec 30 2020, 02:09:32)
[Clang 12.0.0 (clang-1200.0.32.28)]
Can this work anyhow, or who knows, how to make this work ?
Apple M1 is a processor with an ARM64 architecture, while all pip packages of TensorFlow are compiled for the x86_64 architecture. (excluding the raspberry pi packages, but they would not be compatible with MacOs anyway).
If we look at the name of the pip packages on the install page of TensorFlow, most of them contains either x86_64 or amd64, that indicates that they are built against the x86_64 architecture.
If you want to run TensorFlow on the M1, you either need to:
compile TensorFlow from sources targeting x86_64 through Rosetta 2. Unfortunately, according to this issue on github, Rosetta 2 does not support the AVX instruction set which are enabled in the pip builds of TensorFlow, so rebuilding from source is needed.
Use the experimental support for TensorFlow on M1 developed by Apple, that you can find on this github repository. Note that, if going that way, some python packages might not be compatible/available with the M1.
Note that as of 2021/01/04, the Apple M1 is not a supported architecture by the TensorFlow team:
We currently cannot support Mac ARM. There is less than one developer than can focus on build issues on all 3 operating systems.
Hence, support has to come from the the community. There is SIG Build that focuses on build related issues on several other platforms, leaving us to only focus on the pip packages we officially bless.
Things should work better now with the TensorFlow Metal plugin.
As of Oct. 25, 2021 macOS 12 Monterey is generally available.
Steps to set up M1 for TensorFlow:
Upgrade your machine to Monterey.
If you have conda installed, uninstall it.
Then follow the instructions from Apple here.
Cleaned up below:
Download and install Conda from Miniforge:
chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
In an active conda environment, install the TensorFlow dependencies, base TensorFlow, and TensorFlow metal:
conda install -c apple tensorflow-deps
pip install tensorflow-macos
pip install tensorflow-metal
You should be good to go.
Im using
Windows 10
cabal-install version 3.2.0.0
GHC version 8.10.2
While trying to install zlib via
cabal install zlib
I get:
Building library for zlib-0.6.2.2..
[1 of 5] Compiling Codec.Compression.Zlib.Stream ( dist\build\Codec\Compression\Zlib\Stream.hs, dist\build\Codec\Compression\Zlib\Stream.o )
ghc.exe: could not execute: C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ld.exe
As the comments discuss, that version of ghc is known broken on windows. (cf https://gitlab.haskell.org/ghc/ghc/-/issues/18550). I suggest upgrading to ghc 8.10.5
I have macOS 10.13
bazel version 0.15.2-homebrew
I am trying to install bazel 0.4.5 to be able to finish my tensorflow GPU support installation. there is a problem where I have to have bazel 0.4.5 instead 0.15.2 (what a pain)
I have downloaded the binary file bazel-0.4.5-installer-darwin-x86_64.sh
I ran chmod +x bazel-0.4.5-installer-darwin-x86_64.sh
then ./bazel-0.4.5-installer-darwin-x86_64.sh --user
when running the installation i get following error
Uncompressing......
/Users/jvivas/.bazelrc already exists, moving it to /Users/jvivas/.bazelrc.bak.
Problem with java installation: couldn't find/access rt.jar in
/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
looks like I can not run bazel 0.4.5 with JDK 10..here is where I dont know what do...may be I have to downgrade the JDK to 8 or 9, which it seems there was another problem with it.
Have anyone ran into this issue before?
Thanks
I am trying to use the text-icu library as a dependency in a cabal package on Mac OS. I have icu installed but when I try to build my package cabal gives me this error:
Missing C libraries: icui18n, icudata, icuuc
I'm am unsure what debugging steps to use.
You can use either MacPorts or Homebrew to install the icu package, and have cabal refer to the custom header and library path:
MacPorts
sudo port install icu
cabal install text-icu --extra-include-dirs=/opt/local/include --extra-lib-dirs=/opt/local/lib
Homebrew
brew install icu4c
cabal install text-icu --extra-lib-dirs=/usr/local/opt/icu4c/lib --extra-include-dirs=/usr/local/opt/icu4c/include