danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.12k stars 60 forks source link

Cannot build #34

Open Ygarr opened 3 years ago

Ygarr commented 3 years ago

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 commented 1 week ago

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

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