zubairhamed / canopus

CoAP Client/Server implementing RFC 7252 for the Go Language
Apache License 2.0
155 stars 41 forks source link

src/github.com/zubairhamed/canopus/openssl/include/openssl/e_os2.h:13:11: fatal error: openssl/opensslconf.h: No such file or directory #102

Open sombriks opened 6 years ago

sombriks commented 6 years ago

Hello all,

i am trying to use canopus but i got the following error:

# github.com/zubairhamed/canopus In file included from src/github.com/zubairhamed/canopus/openssl/include/openssl/err.h:13, from src/github.com/zubairhamed/canopus/dtls.go:9: src/github.com/zubairhamed/canopus/openssl/include/openssl/e_os2.h:13:11: fatal error: openssl/opensslconf.h: No such file or directory # include <openssl/opensslconf.h> ^~~~~~~ compilation terminated. make: *** [Makefile:20: deps] Error 2

on my project i am using this makefile to consume the library:

export GOPATH := $(PWD)
export GOBIN := $(GOPATH)/bin
export PATH := $(PATH):$(GOBIN)
export CGO_ENABLED := 1

export PRG := edge-node-simulator

all: bin src pkg build

bin:
    mkdir bin

src: 
    mkdir src

pkg:
    mkdir pkg

deps:
    go get -v github.com/zubairhamed/canopus

build: deps
    go install src/main/$(PRG).go

.PHONY: build

clean:
    rm -rf bin
    rm -rf pkg
    rm -rf src/github.com

run:
    go run src/main/$(PRG).go

any guidance on how do i get canopus working?

many thanks in advance

jannickfahlbusch commented 5 years ago

Looking through the README says that you need to build OpenSSL to have the file: Source:

cd openssl
./config && make