ui icon indicating copy to clipboard operation
ui copied to clipboard

windows7 build fail

Open jicg opened this issue 6 years ago • 7 comments

If the introduction of package "_ "github.com/mattn/go-oci8"", compile error. if removed, it will be compiled.

C:\app\go\goroot\pkg\tool\windows_386\link.exe: running g++ failed: exit status 1
C:/app/mingw-w64/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -loci
collect2.exe: error: ld returned 1 exit status
 

jicg avatar Jan 31 '18 13:01 jicg

You do not have liboci installed. That is a problem with github.com/mattn/go-oci8. not with package ui. Contact them.

andlabs avatar Jan 31 '18 15:01 andlabs

Thank you for your reply. What I mean is that other projects can be compiled when introducing go-oci8, for example: github.com/lxn/walk, github.com/zserge/webview. But when using github.com/andlabs/ui, compile error

jicg avatar Feb 01 '18 03:02 jicg

Okay. In that case, what does go build -x say?

andlabs avatar Feb 01 '18 11:02 andlabs

Prompt this error

WORK=C:\Users\jicg\AppData\Local\Temp\go-build772208886
mkdir -p $WORK\jicg\myuitest\_obj\
mkdir -p $WORK\jicg\myuitest\_obj\exe\
cd C:\app\go\mygo\src\jicg\myuitest
"C:\\app\\go\\goroot\\pkg\\tool\\windows_386\\compile.exe" -o "C:\\Users\\jicg\\AppData\\Local\\Temp\\go-build772208886\\jicg\\myuitest.a" -trimpath "C:\\Users\\jicg\\AppData\\Local\\Temp\\go-build77
2208886" -goversion go1.9rc2 -p main -complete -buildid fce8b751bc5a4e16404db3dab499fcd95481e253 -D _/C_/app/go/mygo/src/jicg/myuitest -I "C:\\Users\\jicg\\AppData\\Local\\Temp\\go-build772208886" -I
 "C:\\app\\go\\gopath\\pkg\\windows_386" -pack "C:\\app\\go\\mygo\\src\\jicg\\myuitest\\main.go"
cd .
"C:\\app\\go\\goroot\\pkg\\tool\\windows_386\\link.exe" -o "C:\\Users\\jicg\\AppData\\Local\\Temp\\go-build772208886\\jicg\\myuitest\\_obj\\exe\\a.out.exe" -L "C:\\Users\\jicg\\AppData\\Local\\Temp\\
go-build772208886" -L "C:\\app\\go\\gopath\\pkg\\windows_386" -extld=g++ -buildmode=exe -buildid=fce8b751bc5a4e16404db3dab499fcd95481e253 "C:\\Users\\jicg\\AppData\\Local\\Temp\\go-build772208886\\ji
cg\\myuitest.a"
# jicg/myuitest
C:\app\go\goroot\pkg\tool\windows_386\link.exe: running g++ failed: exit status 1
C:/app/mingw-w64/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -loci
collect2.exe: error: ld returned 1 exit status

jicg avatar Feb 01 '18 11:02 jicg

Huh, that's odd; go build -x should be saying more than just that... I'll look into why it isn't so we can figure out what's going wrong; stay tuned.

andlabs avatar Feb 01 '18 12:02 andlabs

Oops; sorry about forgetting this.

What does go build -x print for a project where it does work?

andlabs avatar Mar 26 '18 22:03 andlabs

Friendly poke

andlabs avatar Jan 04 '19 17:01 andlabs