User forums > Using Code::Blocks
wxWidgets don't work
stahta01:
Please read the Wiki and Post a build log!!! In code tags. http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
EDIT: "Build Log" does NOT mean "Build Messages" Full means do a rebuild instead of build!
I do suggest that you give up; since posting a build log instead of a image is not possible for you; we do NOT want student to swamp this board with off topic questions and if the teacher can NOT figure out how to cut and paste a full build log then that is likely.
Edit2: I will try posting a new zipped project with troubling shooting output because learning to troubleshhot seems to be a forgotten art at most Colleges and other schools.
NOTE: This will NOT help me help you unless you can learn to cut and paste the full build log. So, if you fail after i post the new zipped project I will give up on you as a lost cause!!!!!
Tim S.
PS, I am NOT a CB dev; just someone losing my patience with a doctor who seems to be very smart and stupid at the same time!
stahta01:
This is a build log like I am hoping you post. I broke mine into two part the pre-build steps I added to determine the problem and the normal output of a build log.
Edit2: Added new zipped CB Project.
I ran into an issue that looked like your issue; exiting out of Code::Blocks fixed the cause of my issue.
Tim S.
--- Code: ---Running target pre-build steps
i686-w64-mingw32-g++.exe --version
i686-w64-mingw32-g++.exe (Rev5, Built by MSYS2 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
echo C:\Apps64\MSys2\mingw32\
C:\Apps64\MSys2\mingw32\
echo C:/Apps64/MSys2/mingw32
C:/Apps64/MSys2/mingw32
CMD /C where where
C:\Windows\System32\where.exe
CMD /C where sh.exe
C:\Apps64\MSys2\usr\bin\sh.exe
CMD /C "sh.exe -c 'which sed'"
/usr/bin/sed
CMD /C "sh.exe -c 'which wx-config'"
/mingw32/bin/wx-config
--- End code ---
--- Code: ----------------- Build: Debug in wx30Msys2 (compiler: GNU GCC Compiler MSys2 MinGW64 32 bit)---------------
i686-w64-mingw32-g++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -IC:/Apps64/MSys2/mingw32/lib/wx/include/msw-unicode-3.0 -IC:/Apps64/MSys2/mingw32/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -mthreads -fpermissive -c C:/SourceCode/OpenSourceCode/Apps/IDEs/CodeBlocks/cb_misc-git/Notes/MSys2/wx30Msys2/wx30Msys2App.cpp -o obj/Debug/wx30Msys2App.o
i686-w64-mingw32-g++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -IC:/Apps64/MSys2/mingw32/lib/wx/include/msw-unicode-3.0 -IC:/Apps64/MSys2/mingw32/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -mthreads -fpermissive -c C:/SourceCode/OpenSourceCode/Apps/IDEs/CodeBlocks/cb_misc-git/Notes/MSys2/wx30Msys2/wx30Msys2Main.cpp -o obj/Debug/wx30Msys2Main.o
i686-w64-mingw32-g++.exe -o bin/Debug/wx30Msys2.exe obj/Debug/wx30Msys2App.o obj/Debug/wx30Msys2Main.o -LC:/Apps64/MSys2/mingw32/lib -pipe -Wl,--subsystem,windows -mwindows -lwx_mswu_xrc-3.0 -lwx_mswu_webview-3.0 -lwx_mswu_html-3.0 -lwx_mswu_qa-3.0 -lwx_mswu_adv-3.0 -lwx_mswu_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -mthreads
Output file is bin\Debug\wx30Msys2.exe with size 796.98 KB
Process terminated with status 0 (0 minute(s), 9 second(s))
0 error(s), 0 warning(s) (0 minute(s), 9 second(s))
--- End code ---
Deleted attachment because it is a waste of bandwidth to try to help this person we both speak English; but, we do NOT communicate.
If another person wants the code it is located here the OP never even tried this code; reason unknown, likely failure to communicate. https://github.com/stahta01/cb_misc/tree/master/Notes/MSys2/wx30Msys2
stahta01:
Example of a Bad Build Log; I had to exit out of Code::Blocks
because some changes only take effect after restart of CB.
--- Code: ----------------- Build: Debug in wx30Msys2 (compiler: GNU GCC Compiler)---------------
i686-w64-mingw32-g++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -c C:\SourceCode\OpenSourceCode\VC_Repos\Apps\IDE\Codeblocks\cb_misc-git\Notes\MSys2\wx30Msys2\wx30Msys2App.cpp -o obj\Debug\wx30Msys2App.o
In file included from C:\SourceCode\OpenSourceCode\VC_Repos\Apps\IDE\Codeblocks\cb_misc-git\Notes\MSys2\wx30Msys2\wx30Msys2App.cpp:18:0:
C:\SourceCode\OpenSourceCode\VC_Repos\Apps\IDE\Codeblocks\cb_misc-git\Notes\MSys2\wx30Msys2\wx30Msys2App.h:13:20: fatal error: wx/app.h: No such file or directory
compilation terminated.
--- End code ---
After restarting Code::Blocks; I have been told by CB Devs
that closing the project should be enough to fix this issue; but, it has never worked for me.
The issue is the the value between backticks is never updated in CB.
A Good build log.
--- Code: ----------------- Build: Debug in wx30Msys2 (compiler: GNU GCC Compiler)---------------
i686-w64-mingw32-g++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -IC:/Apps32/MSys2/mingw32/lib/wx/include/msw-unicode-3.0 -IC:/Apps32/MSys2/mingw32/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -mthreads -fpermissive -c C:\SourceCode\OpenSourceCode\VC_Repos\Apps\IDE\Codeblocks\cb_misc-git\Notes\MSys2\wx30Msys2\wx30Msys2App.cpp -o obj\Debug\wx30Msys2App.o
i686-w64-mingw32-g++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -IC:/Apps32/MSys2/mingw32/lib/wx/include/msw-unicode-3.0 -IC:/Apps32/MSys2/mingw32/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -mthreads -fpermissive -c C:\SourceCode\OpenSourceCode\VC_Repos\Apps\IDE\Codeblocks\cb_misc-git\Notes\MSys2\wx30Msys2\wx30Msys2Main.cpp -o obj\Debug\wx30Msys2Main.o
i686-w64-mingw32-g++.exe -o bin\Debug\wx30Msys2.exe obj\Debug\wx30Msys2App.o obj\Debug\wx30Msys2Main.o -LC:/Apps32/MSys2/mingw32/lib -pipe -Wl,--subsystem,windows -mwindows -lwx_mswu_xrc-3.0 -lwx_mswu_webview-3.0 -lwx_mswu_html-3.0 -lwx_mswu_qa-3.0 -lwx_mswu_adv-3.0 -lwx_mswu_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -mthreads
Output file is bin\Debug\wx30Msys2.exe with size 796.98 KB
Process terminated with status 0 (1 minute(s), 39 second(s))
0 error(s), 0 warning(s) (1 minute(s), 39 second(s))
--- End code ---
Tim S.
DrOli:
While we certainly do appreciate your extra effort, I am not sure if this is the best way to go about it.
Once again, and have asked many times, why is it that we can't simply get the "CB specific wx install" as per the CB pages, that accompany the CB tutorial for wx? Why are we still, and ONLY, breaking our heads over a completely different approach via MSys2? It is clear from the CB pages cited, that CB's "special wx make" approach is their required practice, and one that is, in a way, at odds with an MSys2 approach.
... perhaps we should switch to that, or involve somebody who is willing to do so.
Having said so, your last couple of posts are highly inappropriate, and out of line, and I add a comment in the P.S.
As a matter of courtesy, we performed yet another completely from scratch test based on your MSys2 approach just for you. The build log:
-------------- Clean: Debug in wx30Msys2 (compiler: GNU GCC Compiler MSys2)---------------
Cleaned "wx30Msys2 - Debug"
-------------- Build: Debug in wx30Msys2 (compiler: GNU GCC Compiler MSys2)---------------
i686-w64-mingw32-c++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -c E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.cpp -o obj\Debug\wx30Msys2App.o
In file included from E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.cpp:18:0:
E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.h:13:20: fatal error: wx/app.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
If we close CB, re-launch, open project, and re-build, the build log:
-------------- Clean: Debug in wx30Msys2 (compiler: GNU GCC Compiler)---------------
Cleaned "wx30Msys2 - Debug"
-------------- Build: Debug in wx30Msys2 (compiler: GNU GCC Compiler)---------------
i686-w64-mingw32-c++.exe -Wall -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -I/lib/wx/include/msw-unicode-static-3.0 -I/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXMSW__ -c E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.cpp -o obj\Debug\wx30Msys2App.o
In file included from E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.cpp:18:0:
E:\FORTRAN\CodeBlocks\wxHW30_5\wx30Msys2App.h:13:20: fatal error: wx/app.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
... that's it, straight from CB's Build Log window. There is no obvious place in CB that we could find that speaks of "pre build", and it's not on the page you cited either. So, if you would like one of those, please be specific about creating one.
If there is another way to create build logs, please be specific about that, there is certainly nothing more than what we have done on the page you cited.
Finally, while we are happy to test a little more with this MSys2 strategy of yours, we really think that exploring that "CB official/specific" approach is worthy of attention, and wonder if you would speak to that.
P.S. We will let it go this time, but you may wish to take more care before calling people "stupid". We have been doing mathematical modelling and computational mathematics for many decades. I am certain I could find an infinite number of computational problems, such as solving PDE's, stochastic calculus, differential topology, etc etc, where, even though you may have many years of programming experience, and higher education ... you would not stand a chance, at least not without considerable assistance.
We have never seen wx before, we don't know anything about CB's "inards" and scripts etc, this is our very first go at creating a wx gui, and we can't even get CB to start the project, even for the "Hello World Tutorial" on CB's pages, in spite of following the instructions to the letter, and many times.
... we don't think it is unreasonable to be able to get CB to do what it says it can do on its own pages.
... There is a very big difference between stupid, and uninitiated/inexperienced with a narrow/specialised technical subject.
stahta01:
Please download the CB Project that I wasted two hours to add the prebuild steps to.
http://forums.codeblocks.org/index.php/topic,21085.msg144058.html#msg144058
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version