cretz / bine

Go library for accessing and embedding Tor clients and servers
MIT License
763 stars 71 forks source link

Fatal error: tor_api.h: No such file or directory #59

Closed sz55net closed 2 years ago

sz55net commented 2 years ago

Hello! I've just tried using this with it's companion tor-static, but when building my go filem I recieved this error:

# github.com/cretz/bine/process/embedded/tor-0.3.5
../../../pkg/mod/github.com/cretz/bine@v0.2.0/process/embedded/tor-0.3.5/process.go:35:10: fatal error: tor_api.h: No such file or directory
   35 | #include <tor_api.h>
      |          ^~~~~~~~~~~
compilation terminated.

It's probably just me being stupid, but any help would be appreciated. :blush:

cretz commented 2 years ago

I haven't really updated this project to fix the path, so per https://pkg.go.dev/github.com/cretz/bine/process/embedded#hdr-Usage the tor-static project has to be compiled adjacent to this one so https://github.com/cretz/bine/blob/v0.2.0/process/embedded/tor-0.3.5/process.go resolves to the dir with that header.