wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.37k stars 1.22k forks source link

wails init fails #300

Closed jonericcook closed 4 years ago

jonericcook commented 4 years ago

Description When I execute wails init and follow the prompts, it fails. See below for output.

To Reproduce Steps to reproduce the behaviour:

  1. wails init
  2. See error below:
joneric.cook@Work-MacBook-Pro demo % wails init
Wails v0.19.0 - Initialising project

The name of the project (My Project): 
Project Name: My Project
The output binary name (my-project): 
Output binary Name: my-project
Project directory name (my-project): 
Project Directory: my-project
Please select a template:
  1: Angular - Angular 8 template (Requires node 10.8+)
  2: React JS - Create React App v3 template
  3: Vue2/Webpack Basic - A basic Vue2/WebPack4 template
  4: Vuetify Basic - Vuetify + Webpack
Please choose an option [1]: 4
Template: Vuetify Basic
✓ Generating project...
⣽ Building project (this may take a while)...
Wails v0.19.0 - Building Application

✓ Ensuring frontend dependencies are up to date (This may take a while)
✓ Building frontend...
⣟ Ensuring Dependencies are up to date...# github.com/wailsapp/wails/lib/renderer/webview
../../go/pkg/mod/github.com/wailsapp/wails@v0.19.0/lib/renderer/webview/webview.go:22:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.

✗ Ensuring Dependencies are up to date...
Error: exit status 2

✗ exit status 2
Error: exit status 2

Expected behaviour I expected wails init to create the skeleton for a wails app.

System Details OSX 10.15.1 (19B88) GO 1.13.4 darwin/amd64

bh90210 commented 4 years ago

301

bh90210 commented 4 years ago
✓ Generating project...
⣷ Building project (this may take a while)...
Wails v0.20.0-pre1 - Building Application

✓ Ensuring frontend dependencies are up to date (This may take a while)
✓ Building frontend...
⣽ Ensuring Dependencies are up to date...go: downloading github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba
go: downloading github.com/abadojack/whatlanggo v1.0.1
go: extracting github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba
go: extracting github.com/abadojack/whatlanggo v1.0.1
go: finding github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba
go: finding github.com/abadojack/whatlanggo v1.0.1
# github.com/wailsapp/wails
../../go/pkg/mod/github.com/wailsapp/wails@v0.20.0-pre1/app.go:85:20: undefined: syscall.NewLazyDLL

✗ Ensuring Dependencies are up to date...
Error: exit status 2

✗ exit status 2
Error: exit status 2
leaanthony commented 4 years ago

Looks like those syscalls are OS specific? Well that sucks. I'll need to fix it with windows specific build tags 🤨

On Thu, 28 Nov 2019, 13:39 Byron, notifications@github.com wrote:

✓ Generating project...

⣷ Building project (this may take a while)...

Wails v0.20.0-pre1 - Building Application

✓ Ensuring frontend dependencies are up to date (This may take a while)

✓ Building frontend...

⣽ Ensuring Dependencies are up to date...go: downloading github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: downloading github.com/abadojack/whatlanggo v1.0.1

go: extracting github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: extracting github.com/abadojack/whatlanggo v1.0.1

go: finding github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: finding github.com/abadojack/whatlanggo v1.0.1

github.com/wailsapp/wails

../../go/pkg/mod/github.com/wailsapp/wails@v0.20.0-pre1/app.go:85:20: undefined: syscall.NewLazyDLL

✗ Ensuring Dependencies are up to date...

Error: exit status 2

✗ exit status 2

Error: exit status 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/300?email_source=notifications&email_token=AAO2SYHPX57TK7HKSPHKVMTQV4VO5A5CNFSM4JSNJCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFLIHCA#issuecomment-559317896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2SYHUTYF5HHR4H4N26FTQV4VO5ANCNFSM4JSNJCQA .

leaanthony commented 4 years ago

This is now fixed in the latest pre-release. Update using wails update -pre

jonericcook commented 4 years ago

I did a complete OSX reinstall and the problem was fixed.

On Thu, Nov 28, 2019 at 2:54 AM Lea Anthony notifications@github.com wrote:

Looks like those syscalls are OS specific? Well that sucks. I'll need to fix it with windows specific build tags 🤨

On Thu, 28 Nov 2019, 13:39 Byron, notifications@github.com wrote:

✓ Generating project...

⣷ Building project (this may take a while)...

Wails v0.20.0-pre1 - Building Application

✓ Ensuring frontend dependencies are up to date (This may take a while)

✓ Building frontend...

⣽ Ensuring Dependencies are up to date...go: downloading github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: downloading github.com/abadojack/whatlanggo v1.0.1

go: extracting github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: extracting github.com/abadojack/whatlanggo v1.0.1

go: finding github.com/syossan27/tebata v0.0.0-20180602121909-b283fe4bc5ba

go: finding github.com/abadojack/whatlanggo v1.0.1

github.com/wailsapp/wails

../../go/pkg/mod/github.com/wailsapp/wails@v0.20.0-pre1/app.go:85:20: undefined: syscall.NewLazyDLL

✗ Ensuring Dependencies are up to date...

Error: exit status 2

✗ exit status 2

Error: exit status 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/wailsapp/wails/issues/300?email_source=notifications&email_token=AAO2SYHPX57TK7HKSPHKVMTQV4VO5A5CNFSM4JSNJCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFLIHCA#issuecomment-559317896 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAO2SYHUTYF5HHR4H4N26FTQV4VO5ANCNFSM4JSNJCQA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/300?email_source=notifications&email_token=AEZ45TMDPVRIWOX44JIASW3QV6POLA5CNFSM4JSNJCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFMHNCA#issuecomment-559445640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZ45TIPLGRKIVHTKOSHSVTQV6POLANCNFSM4JSNJCQA .

leaanthony commented 4 years ago

Thanks for letting us know @jonericcook and if you need any Wails support, please feel free to open a new ticket :+1: