Skip to content

Commit

Permalink
Fix: LoadLibrary liblcl ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Oct 2, 2024
1 parent a2ae99f commit ef9aba3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cef/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ import (
)

// GlobalInit 全局初始化
// 需要手动调用的函数,在main函数中调用
// 参数:
// libs 内置到应用程序的类库
// resources 内置到应用程序的资源文件
// MacOSX环境, goland、ide等开发环境需配置命令行参数[energy_env=dev]以保证应用正常运行
//
// 需要手动调用的函数,在main函数中调用
// 参数:
// libs 内置到应用程序的类库
// resources 内置到应用程序的资源文件
// MacOSX环境, goland、ide等开发环境需配置命令行参数[energy_env=dev]以保证应用正常运行
func GlobalInit(libs emfs.IEmbedFS, resources emfs.IEmbedFS) {
if IsDarwin() {
macapp.MacApp.IsCEF(true)
Expand Down Expand Up @@ -76,6 +77,9 @@ func GlobalInit(libs emfs.IEmbedFS, resources emfs.IEmbedFS) {
liblcl, err = dllimports.NewDLL(libname.LibName)
}
if liblcl == 0 {
if err != nil {
println("LoadLibrary liblcl ERROR:", err.Error())
}
panic(`Hint:
Golcl dependency library liblcl was not found
Please check whether liblcl exists locally
Expand Down

0 comments on commit ef9aba3

Please sign in to comment.