1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Note Book : Build Error OpenCV v4.5.0 with Julia

Posted at
  • Run import Pkg; Pkg.add("CxxWrap") to install the CxxWrap package.

###Install julia on ubuntu by apt-get

sudo apt-get -yV install julia

###OpenCV build errorlog

log
z.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.4")
-- Registering hook 'STATUS_DUMP_EXTRA': /usr/local/src/opencv_contrib/modules/julia/cmake/hooks/STATUS_DUMP_EXTRA.cmake
-- Found Julia executable: /usr/bin/julia
-- Julia_VERSION_STRING: 1.4.1
-- Julia_INCLUDE_DIRS:   /usr/include/julia
-- Julia_LIBRARY_DIR:    /usr/lib/x86_64-linux-gnu
-- Julia_LIBRARY:        /usr/lib/x86_64-linux-gnu/libjulia.so.1
-- JULIA_HOME:           /usr/bin
-- Julia_LLVM_VERSION:   v8.0.1
-- Julia_WORD_SIZE:      64
-- Found Julia: /usr/lib/x86_64-linux-gnu/libjulia.so.1 (found version "1.4.1")
ERROR: ArgumentError: Package CxxWrap not found in current path:
- Run `import Pkg; Pkg.add("CxxWrap")` to install the CxxWrap package.

)

$ Julia
julia> import Pkg
julia> Pkg.add("CxxWrap")
    Cloning default registries into `~/.julia`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
      Added registry `General` to `~/.julia/registries/General`
  Resolving package versions...
  Installed libcxxwrap_julia_jll q v0.8.0+0
  Installed CxxWrap qqqqqqqqqqqqqq v0.11.0
  Installed MacroTools qqqqqqqqqqq v0.5.6
Downloading artifact: libcxxwrap_julia
   Updating `~/.julia/environments/v1.4/Project.toml`
  [1f15a43c] + CxxWrap v0.11.0
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [1f15a43c] + CxxWrap v0.11.0
  [1914dd2f] + MacroTools v0.5.6
  [3eaa8342] + libcxxwrap_julia_jll v0.8.0+0
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
julia>

###cmake

cmake \
-DWITH_JULIA=ON \
-DJlCxx_DIR=~/.julia/registries/General \
..
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?