You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"os"
"github.com/qmuntal/draco-go/draco"
)
func main() {
data, _ := os.ReadFile("./testdata/test_nm.obj.edgebreaker.cl4.2.2.drc")
m := draco.NewMesh()
d := draco.NewDecoder()
d.DecodeMesh(m, data)
fmt.Println("nº faces:", m.NumFaces())
fmt.Println("nº points:", m.NumPoints())
faces := m.Faces(nil)
for i, f := range faces {
fmt.Printf("%d: %v\n", i, f)
}
}
When I run go build, report some warnings and errors:
/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: library 'draco_c' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My platform:
macOS 15
chip: m2 (arm64)
go version: 1.20
gcc: Apple clang version 16.0.0 (clang-1600.0.26.3)
The text was updated successfully, but these errors were encountered:
I add this package to my simple go package:
And I use the starter code from README:
When I run
go build
, report some warnings and errors:My platform:
The text was updated successfully, but these errors were encountered: