Home > Article > Backend Development > Resource links
php editor Strawberry provides you with a selection of resource links so that you can quickly and easily obtain the resources you need. Whether you want to learn programming or are looking for development tools and frameworks, these resource links can help you solve your problems in one place. Not only that, we also provide a variety of technical documentation, tutorials, and video courses to help you gain an in-depth understanding of various programming languages and technologies. Whether you are a beginner or an experienced developer, these resource links can meet your needs and make your learning and development journey smoother. Come check out these curated resource links to improve your technical skills!
It looks like there are tons of web pages and questions about so on the internet, but after hours of searching I still can't get it to work.
I cross compiled from linux to windows by setting cc/cxx to x86-64 mingw-w64. Compilation does work and the exe runs fine on windows.
Using file
I get the following output:
PE32+ executable (GUI) x86-64 (stripped to external PDB), for MS Windows
I have two resource files (a windows *.ico
file and a *.res
ascii file, which contains attributes such as versioninfo
).
Use mingw's windres
tool to convert these two resource files into *.o
files. They now look like coff files. This is all I can get.
What I want to do is link these two resources into the exe.
I didn't find any way to instruct the go linker to include these files during linking (I ran go build
, not go tool
). I've also tried adding with objcopy
following links to various online pages and resources for other so questions... but to no avail.
All I want is for windows to recognize these two resources (icon and info) so that the executable behaves like any other resource on windows.
If I should instruct the go linker (go tools
instead of go build
), then how do I tell it which files to link? I have "simple" *.go
files and then the c dependencies (glfw and opengl) which I link against cgo.
How to accomplish this on linux command line? I'd like to add these steps to a broader ci/cd (build workflow/asset pipeline). windows gui tools or similar won't be of much help.
Thanks!
I don't know if you use Fyne, but this sounds like what the "fyne package" does (embed icons and metadata).
If you're in the Fyne area then you can use their tools, if not maybe check out the source code and see for yourself how it's done? https://www.php.cn/link/9806b902e654c2ddd3b611099436037a" com/fyne-io/fyne/blob/master/cmd/fyne/internal/commands/package-windows.go
The above is the detailed content of Resource links. For more information, please follow other related articles on the PHP Chinese website!