Message boards :
Questions and problems :
wxWidget Icon (boinc_xpm was not declared in this scope)
Message board moderation
Author | Message |
---|---|
Send message Joined: 7 Sep 17 Posts: 21 |
Hello, Recently I am compiling the Boinc Client. I want to replace the original BOINC ICON with my own ICON. However, when i edit the source code, for example 'SkinManager.cpp', the wxWidget icon can not be changed when i just replace the xpm image in 'res folder'. The error messages are: SkinManager.cpp:648:59: error: ‘boinc_1_xpm’ was not declared in this scope m_iconApplicationIcon.SetDefaults(wxT("application"), boinc_1_xpm, boinc32_1_xpm); ^ SkinManager.cpp:648:72: error: ‘boinc32_1_xpm’ was not declared in this scope m_iconApplicationIcon.SetDefaults(wxT("application"), boinc_1_xpm, boinc32_1_xpm); ^ In file included from SkinManager.cpp:44:0: res/boinc_1.xpm: At global scope: res/boinc_1.xpm:2:14: warning: ‘_7201e5ba97d45c9c1e2132b7c869491’ defined but not used [-Wunused-variable] static char *_7201e5ba97d45c9c1e2132b7c869491[] = { ^ In file included from SkinManager.cpp:45:0: res/boinc32_1.xpm:2:14: warning: ‘a68973a85c2d4d5efbd568b28836d576’ defined but not used [-Wunused-variable] static char *a68973a85c2d4d5efbd568b28836d576[] = { This is the first time i use wxWIdget. My opinion is maybe i need to add resource file for that? But i really don't know what i should do. Do you know that happened to the wxWidgets, what should I do to change the icon? Really thanks for your help. Kangning Li. |
Send message Joined: 20 Nov 12 Posts: 801 |
I'm guessing you need to change the identifiers in the XPM files. res/boinc_1.xpm: static char *boinc_1_xpm] = { res/boinc32_1.xpm: static char *boinc32_1_xpm[] = { |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.