Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build #34

Open
Ygarr opened this issue Sep 16, 2021 · 1 comment
Open

Cannot build #34

Ygarr opened this issue Sep 16, 2021 · 1 comment

Comments

@Ygarr
Copy link

Ygarr commented Sep 16, 2021

thdwb $
 make
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20210410170116-ea3d685f79fb
go: downloading github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
go: downloading github.com/go-gl/gl v0.0.0-20210501111010-69f74958bac0
go: downloading golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1
go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb

command-line-arguments

/usr/bin/ld: $WORK/b001/pkg2.a(_x004.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:11: run] Error 2

@alixanderthegreat
Copy link

alixanderthegreat commented Sep 7, 2024

@Ygarr I had to use an absolute path for go in the Makefile to get the browser to launch 👍

git_revision := $(shell git log -1 --pretty="%H")
git_branch := $(shell git log -1 --pretty="%d")
host_info := $(shell uname -s -r -p)
build_date := $(shell date)

ldflags := -X 'main.gitRevision=$(git_revision)' -X 'main.gitBranch=$(git_branch)' -X 'main.buildTime=$(build_date)' -X 'main.hostInfo=$(host_info)'

all: run clean_assets

run: build_assets
	@/usr/local/go/bin/go run -ldflags "$(ldflags)" browser/*.go --settings="./settings.json"

build: clean build_assets
	@echo "Building THDWB - 🌭"
	@/usr/local/go/bin/go build -o thdwb -ldflags "$(ldflags) -s -w" browser/*.go
	@chmod 755 thdwb
	@mkdir bin; mv thdwb bin/

clean:
	@rm -rf bin

test:
	@echo -e "Testing Sauce...\n"
	@/usr/local/go/bin/go test -v sauce/* | sed ''/PASS/s//$$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$$(printf "\033[31mFAIL\033[0m")/'' | sed ''/FAIL/s//$$(printf "\033[31mFAIL\033[0m")/'' | GREP_COLOR="01;33" egrep --color=always '\s*[a-zA-Z0-9\-_.]+[:][0-9]+[:]|^'
	@echo -e "\n"

	@echo -e "Testing Mayo...\n"
	@/usr/local/go/bin/go test -v mayo/* | sed ''/PASS/s//$$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$$(printf "\033[31mFAIL\033[0m")/'' | sed ''/FAIL/s//$$(printf "\033[31mFAIL\033[0m")/'' | GREP_COLOR="01;33" egrep --color=always '\s*[a-zA-Z0-9\-_.]+[:][0-9]+[:]|^'
	@echo -e "\n"

build_assets:
	@/usr/local/go/bin/go run -tags=bundleAssets assets/bundler.go

clean_assets:
	@rm assets/icons.go assets/pages.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants