Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows7 build fail #265

Open
jicg opened this issue Jan 31, 2018 · 7 comments
Open

windows7 build fail #265

jicg opened this issue Jan 31, 2018 · 7 comments

Comments

@jicg
Copy link

jicg commented Jan 31, 2018

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
 
@andlabs
Copy link
Owner

andlabs commented Jan 31, 2018

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

@andlabs andlabs closed this as completed Jan 31, 2018
@jicg
Copy link
Author

jicg commented Feb 1, 2018

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

@andlabs andlabs reopened this Feb 1, 2018
@andlabs
Copy link
Owner

andlabs commented Feb 1, 2018

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

@jicg
Copy link
Author

jicg commented Feb 1, 2018

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

@andlabs
Copy link
Owner

andlabs commented Feb 1, 2018

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
Copy link
Owner

andlabs commented Mar 26, 2018

Oops; sorry about forgetting this.

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

@andlabs
Copy link
Owner

andlabs commented Jan 4, 2019

Friendly poke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants