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

Getting TTM_ADDTOOL failed with .exe.manifest (solved) #733

Open
tmzt opened this issue Oct 24, 2020 · 2 comments
Open

Getting TTM_ADDTOOL failed with .exe.manifest (solved) #733

tmzt opened this issue Oct 24, 2020 · 2 comments

Comments

@tmzt
Copy link

tmzt commented Oct 24, 2020

Building using the suggested manifest failed to display any window and MainWindow returned an error with "TTM_ADDTOOL failed".

I used the test manifest verbatim.

I attempted to build the rsrc.syso as suggested in the Walk documentation, which returned an error like:

C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b001\exe\a.out.exe: .rsrc merge failure: corrupt .rsrc section

After researching I found this issue, which suggests that the problem was caused by using TDM 9.2.0:

josephspurrier/goversioninfo#39

The solution was to

go get -u github.com/tc-hib/rsrc

With this I was able to compile the test manifest into the .exe and successfully display a MainWindow.

@tmzt
Copy link
Author

tmzt commented Oct 24, 2020

I would suggest updating the rsrc dependency and/or instructions in the README to use that fork of rsrc instead.

@tc-hib
Copy link

tc-hib commented Mar 5, 2021

Hello, please do not use my fork anymore. It was a quick and dirty fix.
Akavel has properly fixed rsrc and I have developed my own tool too, with more features:
https://github.com/tc-hib/go-winres

I might delete my forks someday.

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