energye / energy

Energy is a framework developed by Go language based on CEF (Chromium Embedded Framework) for developing cross-platform desktop applications for Windows, Mac OS X, and Linux
https://energye.github.io
Apache License 2.0
377 stars 28 forks source link

maybe a bug? #14

Closed JSchmidt63 closed 1 year ago

JSchmidt63 commented 1 year ago
  1. first create a clean energy by downloaded energy_cmd_windows64
  2. windows -> cmd/energy.exe install . finally: Automatically configure the CEF and Energy framework SUCCESS Version: latest
  3. go mod init simple
  4. go mod tidy
  5. create the simple.go from examples/simple
  6. go run simple.go
  7. i get some error
    PS C:\Users\js\Desktop\AntD\a_broiler\project\energy2> go run simple.go  
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    The specified procedure could not be found.
    PS C:\Users\js\Desktop\AntD\a_broiler\project\energy2> 

    Cheers

package main

import (
    "github.com/energye/energy/v2/cef"
)

func main() {
    //Global initialization must be called by every application
    cef.GlobalInit(nil, nil)
    //Create application
    cefApp := cef.NewApplication()
    //Set URL
    cef.BrowserWindow.Config.Url = "https://energy.yanghy.cn"
    //Run App
    cef.Run(cefApp)
}
module simple

go 1.20

require github.com/energye/energy/v2 v2.0.2

require (
    github.com/energye/golcl v0.0.0-20230607072628-c317d3f83490 // indirect
    github.com/godbus/dbus/v5 v5.1.0 // indirect
    github.com/json-iterator/go v1.1.12 // indirect
    github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
    github.com/modern-go/reflect2 v1.0.2 // indirect
    github.com/tevino/abool v0.0.0-20220530134649-2bfc934cb23c // indirect
    golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
)
sxmxta commented 1 year ago

There are no issues with the installation steps for your environment

The problem lies in the framework of energy dependency (liblcl)

You may have chosen a lower version during installation, but the liblcl that Energy relies on is a higher version

You can reinstall or manually install the latest version of lbilcl

Install the latest version

energy install .
JSchmidt63 commented 1 year ago

i checked you mentions. and i try: energy install .

now is it perfect :-) Cheers

sxmxta commented 1 year ago

latest version is complete

If you still have this problem, check the liblcl Dynamic-link library under the environment variable 'ENERGY_HOME'

You can delete this environment variable and reconfigure it, manually configure it, or reinstall it using the command line after deletion

sxmxta commented 1 year ago

You should be a previous version that has not been successfully upgraded and updated

sxmxta commented 1 year ago

This issue has been fixed in v2.1.0