Skip to content

CROSS COMPILING ERROR IN ARM64 #20

@Moxoo

Description

@Moxoo

@lassilaiho help!
I try to cross compling rclgo in docker container use image osrf/ros:humble-desktop (on my x86 linux) , but got this:

GOOS=linux GOARCH=arm64 go build -o bin/test_cross main.go
# github.com/tiiuae/rclgo/pkg/rclgo
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:11:8: undefined: GoalUnknown
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:12:8: undefined: GoalAccepted
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:13:8: undefined: GoalExecuting
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:14:8: undefined: GoalCanceling
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:15:8: undefined: GoalSucceeded
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:16:8: undefined: GoalCanceled
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:17:8: undefined: GoalAborted
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:24:9: undefined: GoalStatus
/root/go/pkg/mod/github.com/tiiuae/rclgo@v0.0.0-20240131135202-56b24e11219b/pkg/rclgo/goalstatus_string.go:25:19: undefined: GoalStatus
make: *** [Makefile:16: arm64] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions