stratux icon indicating copy to clipboard operation
stratux copied to clipboard

Makefile does not properly rebuild fancontrol on fresh build

Open ethanbrodsky opened this issue 3 years ago • 0 comments

  1. Stratux version: master as of commit 7eeb32acf6fa31dc86ac94f95975e573f2619ae4
  2. Stratux config: N/A
  3. EFB app and version N/A
  4. Description of your issue. N/A

In the Makefile, this line: go build $(BUILDINFO_STATIC) -p 4 main/fancontrol.go main/equations.go main/cputemp.go Builds fancontrol into a binary called "equations", for reasons I do not understand. This causes "make install" to fail, since "./fancontrol" does not exist.

The fix is to change this line to: go build $(BUILDINFO_STATIC) -o fancontrol -p 4 main/fancontrol.go main/equations.go main/cputemp.go

I have this version of go installed: root@raspberrypi:~/testcode/original/stratux# go version go version go1.14.2 linux/arm

I'm not sure if this is an issue with using a newer version of go, but it's been something I've had to fix in order to get the base repo to build.

ethanbrodsky avatar Dec 06 '20 04:12 ethanbrodsky