User forums > Help
questions about wxsmith in CB
BlueHazzard:
--- Quote ---You are asking for error mesages produced by compiler, right?
--- End quote ---
yes. BUT you should read the link he posted... Your image is useless. Please follow exactly the steps in the link. And if you have no luck, follow EXACTLY the last step:
--- Quote ---f you have no luck, you can try to ask in the forum, but read first "How do I report a compilation problem on the forums"
--- End quote ---
--- Quote ---Just wan to make one thing clear, have no problem with embading icon into exe, the problem is only with the icon for the frame.
--- End quote ---
By embedding i mean to build into the exe, so you don't have to ship a .ico file, but it is packed into the exe
Have you tried the relative paths?
stahta01:
--- Quote from: gtafan on April 19, 2017, 01:32:48 pm ---
--- Quote from: stahta01 on April 19, 2017, 12:10:08 am ---If you post a full build log, someone might see the cause of your issue!
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
--- End quote ---
You are asking for error mesages produced by compiler, right?
If I am using wxSmith to add icon to frame, there is no error mesages, but geting runtime erors on every other PC. The reason for that runtime errors is known, so no need to diskus it, as such solution is useles for me.
when I try your solution from that thread the error mesage looks like that:
Line 30 in that .cpp file looks like this:
--- Code: ---Frame->SetIcon(wxIcon(aaaa));
--- End code ---
in the .rc file there is a line like this:
--- Code: ---aaaa ICON "myicon.ico"
--- End code ---
Sorry if I misunderstood you again.
--- End quote ---
You need to post the full build log in code tags; NOT an image of the build message.
Anyone, know of a site that translates the CB FAQs to multiple languages?
Tim S.
gtafan:
--- Quote from: BlueHazzard on April 19, 2017, 04:12:44 pm ---
--- Quote ---You are asking for error mesages produced by compiler, right?
--- End quote ---
yes. BUT you should read the link he posted... Your image is useless. Please follow exactly the steps in the link. And if you have no luck, follow EXACTLY the last step:
--- Quote ---f you have no luck, you can try to ask in the forum, but read first "How do I report a compilation problem on the forums"
--- End quote ---
--- Quote ---Just wan to make one thing clear, have no problem with embading icon into exe, the problem is only with the icon for the frame.
--- End quote ---
By embedding i mean to build into the exe, so you don't have to ship a .ico file, but it is packed into the exe
Have you tried the relative paths?
--- End quote ---
Not really familiar with that build stuff, so this was already a problem in previous discusion with Tim, and even googletranslator is not helpfull in this case.
I haven´t tried your code with relative path, but have just tried to edit the code line to:
--- Code: ---FrameIcon.CopyFromBitmap(wxBitmap(wxImage(_T("myicon.ico"))));
--- End code ---
The icon is in the prject folder, so it worcked, but with this solution I still need to destribute the icon with the exe and this is something I don´t want to do. wxDev has put the frame icon into the exe to and after looking exactlly at the code produced by wxDev, looks like it is using something similar, or may be exactly the same, to xpm. So looks like I have to generate .xpm file from the icon and than include somehow that .xpm file.
Also I read in the documentation something about windows handels, no idea if this could be a solution, as im worcking only on Windows and this is the only target OS.
gtafan:
--- Quote from: stahta01 on April 19, 2017, 04:13:09 pm ---
--- Quote from: gtafan on April 19, 2017, 01:32:48 pm ---
--- Quote from: stahta01 on April 19, 2017, 12:10:08 am ---If you post a full build log, someone might see the cause of your issue!
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
--- End quote ---
You are asking for error mesages produced by compiler, right?
If I am using wxSmith to add icon to frame, there is no error mesages, but geting runtime erors on every other PC. The reason for that runtime errors is known, so no need to diskus it, as such solution is useles for me.
when I try your solution from that thread the error mesage looks like that:
Line 30 in that .cpp file looks like this:
--- Code: ---Frame->SetIcon(wxIcon(aaaa));
--- End code ---
in the .rc file there is a line like this:
--- Code: ---aaaa ICON "myicon.ico"
--- End code ---
Sorry if I misunderstood you again.
--- End quote ---
You need to post the full build log in code tags; NOT an image of the build message.
Anyone, know of a site that translates the CB FAQs to multiple languages?
Tim S.
--- End quote ---
I read the link you posted here, but like I said I am not familiar with all that comandline stuff, so it a bit dificult to understand even after translating into my own language. I can compile a .c/.cpp file with g++ but that all my knowledge about comandline, everithing going over that is not compatible with my skills. I was really not joking when saing, that it took me 1,5 month to build wxWidgets.
The image, I posted is everithing I can see after the compilation is finished, no meter succesfull or not. During the compilation, I can see all that comands, mentioned in that FAQ, but they are away after compiler has finished.
Also for me personally the error mesage make sence, as "aaaa" wasn´t really declared, exept in the .rc file, but that file seems not to be conected to the sources.
BlueHazzard:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
--- Quote ---Also for me personally the error mesage make sence, as "aaaa" wasn´t really declared, exept in the .rc file, but that file seems not to be conected to the sources.
--- End quote ---
yes... the compiler needs to know where to find the resource file, but we don't know where the compiler searches. This is all displayed in the compiler command line and the command line is posted in the "build log" tab and not in the "build message" tab. You posted the later and this has no usefull information for us.
We told you 100 times to read ALL the faq... Sometimes you simply have to follow ALL instructions and don't complain, or think this is not related to you...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version