Git Product home page Git Product logo

Comments (6)

gougo avatar gougo commented on June 6, 2024

modify face.go at this project

package face

// #cgo CXXFLAGS: -std=c++1z -Wall -O3 -DNDEBUG -mcpu=apple-m1

from go-face.

nodoyuna avatar nodoyuna commented on June 6, 2024

another solutions is update clang with brew

lang: error: the clang compiler does not support '-march=native'

1° - Install llvm con brew
brew install llvm
2° - Check clang version

cd /opt/homebrew/opt/llvm
.clang --version

Result:

Homebrew clang version 15.0.6
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

3° - modify path with the new version, for example add to .zshrc
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"

from go-face.

Exegetech avatar Exegetech commented on June 6, 2024

I tried the solution above, and now it gets an error

classify.cc:2:10: fatal error: 'dlib/graph_utils.h' file not found

from go-face.

chaosue avatar chaosue commented on June 6, 2024

I tried the solution above, and now it gets an error

classify.cc:2:10: fatal error: 'dlib/graph_utils.h' file not found

try
CPLUS_INCLUDE_PATH=/opt/homebrew/Cellar/jpeg/9d/include/:/opt/homebrew/Cellar/dlib/19.24_1/include LD_LIBRARY_PATH=/opt/homebrew/Cellar/dlib/19.24_1/lib/:/opt/homebrew/Cellar/jpeg/9d/lib/ LIBRARY_PATH=/opt/homebrew/Cellar/dlib/19.24_1/lib/:/opt/homebrew/Cellar/jpeg/9d/lib/ go build

from go-face.

adrien3d avatar adrien3d commented on June 6, 2024

Same error here, even with setting LIBRARY_PATH (for me, CPLUS_INCLUDE_PATH and LD_LIBRARY_PATH were already setup correctly).
Any hints @chaosue @Kagami @gougo @Exegetech @nodoyuna @dtaivpp ?

from go-face.

adrien3d avatar adrien3d commented on June 6, 2024

Fixed by copying dlib in $GOPATH/pkg/path/to/go-faceand changing import in classify.cc

from go-face.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.