Code::Blocks Forums
User forums => Help => Topic started by: proggi on July 08, 2017, 10:14:28 am
-
-------------- Clean: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Cleaned "Code::Blocks wx2.8.x - tinyXML"
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
g++.exe -Wall (invalid) -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -m64 -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -ID:\CodeBlocks\codeblocks\MinGW\bin\g++.exe -c D:\codeblocks-16.01.release\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
g++.exe: error: (invalid): No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-
You have to set the cb_release_type global variable to something, most often -g or -g -O2 if you want a release build. See Settings -> Global variables.
-
I put everything by default from the website. New installation
-------------- Clean: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Cleaned "Code::Blocks wx2.8.x - tinyXML"
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
g++.exe -Wall (invalid) -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -O2 -m64 -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c D:\codeblocks-16.01.release\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
g++.exe: error: (invalid): No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-
Here image of settings.
if to click "Reset default" they not incorrect will be!
-
Here image of settings.
if to click "Reset default" they not incorrect will be!
You have to set the cb_release_type global variable to something, most often -g or -g -O2 if you want a release build. See Settings -> Global variables.
Please read more carefully, if you get hints how to fix this !
Go to "Settings -> Global variables" and edit the value ov "cb_release_type" to any non-empty value, which is valid on your compilers commandline.
If yoiu don't want (or need) a secific switch, just use a space (" ").
-
file \src\plugins\compilergcc\resources\compilers\options_gcc.xml incorrected!
-------------- Clean: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Cleaned "Code::Blocks wx2.8.x - scintilla"
-------------- Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
g++.exe -Wall D:\CodeBlocks\MinGW -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp -o .objs\sdk\wxscintilla\src\PlatWX.o
D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp:8:23: fatal error: wx/wxprec.h: No such file or directory
#include "wx/wxprec.h"
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 7 second(s))
1 error(s), 31 warning(s) (0 minute(s), 7 second(s))
-
I copied wx/setup
Code:: Blocks swears on #include "wx/setup.h"
from D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp:8:
D:/CodeBlocks/MinGW/include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
-
Either add a binary wxWidgets which is compatible to your compiler or use a self-compiled one and fix the global variable "wx".
I never had to copy wx/setup.h manually on a correctly installed wxWidgets on windows.
-
Did you ever read: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#Build_wxWidgets_Support_Library
and probably: http://wiki.codeblocks.org/index.php/WxWindowsQuickRef ?
-
I copied WX now here such errors:
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (2 minute(s), 45 second(s))
2 error(s), 390 warning(s) (2 minute(s), 45 second(s))
-
I mean correctly I understand that this development environment can't be collected from source codes?
You understand, I need the environment which I can itself, compile, finish.
How to me to compile this environment?
-
How did you build wxWidgets?
Post the command you used to build wxWidgets!
Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).
Tim S.
-
How did you build wxWidgets?
Post the command you used to build wxWidgets!
Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).
Tim S.
I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download
https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.
sdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
-
How did you build wxWidgets?
Post the command you used to build wxWidgets!
Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).
Tim S.
I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download
https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.
sdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
You show,that you did not read the links I posted before.
Please stop wasting our time and try to follow the advices you get or we will not be able to help you.
-
How did you build wxWidgets?
Post the command you used to build wxWidgets!
Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).
Tim S.
I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download
https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.
sdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
You show,that you did not read the links I posted before.
Please stop wasting our time and try to follow the advices you get or we will not be able to help you.
As it is possible to extend a platform and to say that she can bring together herself.
Where then it is clarified that in order that to bring together her, it is necessary чтото to download, to set up somewhere....
-
Did you ever read: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#Build_wxWidgets_Support_Library
and probably: http://wiki.codeblocks.org/index.php/WxWindowsQuickRef ?
Edit: Added link(s) to a Wiki page(s) I created that still needs a lot of work.
https://github.com/stahta01/stahta01.github.io/wiki/Flags-to-build-wxWidgets-using-makefile.gcc (https://github.com/stahta01/stahta01.github.io/wiki/Flags-to-build-wxWidgets-using-makefile.gcc)
Tim S.
-
I want
1) http://codeblocks.org/downloads
2) Download the binary release
3) Download the source code
4) Compile codeblocks!
Why me it is impossible?
-
Do you know what a Compiler is?
Do you know what Compiler you are using?
Do you understand C++ name mangling as as it applies to C++ libraries?
If the answer is no to any of the above questions you need to find a website (NOT this one) for your to learn the above information.
Please re-read the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
If you know the above 3 items; then you must be able to understand why you need an wxWidgets binary compiled by the Compiler you are using!
Decide to build wxWidgets or find the wxWidgets binaries that work with your compiler!!!!
Tim S.
-
Do you know what a Compiler is?
Do you know what Compiler you are using?
Do you understand C++ name mangling as as it applies to C++ libraries?
If the answer is no to any of the above questions you need to find a website (NOT this one) for your to learn the above information.
Please re-read the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
If you know the above 3 items; then you must be able to understand why you need an wxWidgets binary compiled by the Compiler you are using!
Decide to build wxWidgets or find the wxWidgets binaries that work with your compiler!!!!
Tim S.
Code:: Blocks a development environment which shall collect itself.
-
@proggi:
So, you either do NOT understand English or you are very very lazy.
Good bye, you are now on my list of people not worth trying to help.
Tim S.
-
@proggi: you should either use a better translation service,
or find a website in your native language, that supports beginners in software development.
Normally there is no need to compile Code::Blocks from source (on windows), we provide actual (nightly) builds and builds from actual release on sourceforge: https://sourceforge.net/projects/codeblocks/files/Binaries/
-
Do you know what a Compiler is?
Do you know what Compiler you are using?
Do you understand C++ name mangling as as it applies to C++ libraries?
If the answer is no to any of the above questions you need to find a website (NOT this one) for your to learn the above information.
Please re-read the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
If you know the above 3 items; then you must be able to understand why you need an wxWidgets binary compiled by the Compiler you are using!
Decide to build wxWidgets or find the wxWidgets binaries that work with your compiler!!!!
Tim S.
Code:: Blocks a development environment which shall collect itself.
I would like to summarize all this:
1) Codeblocks is a IDE, a program that runs on windows linux and mac. To be able to run on all this platforms without writing the user interface code for every target codeblocks uses wxWidgets as GUI framework.
2) WxWidgets is a library for GUI elements
3) If a program, written in c++, uses a external library (like codeblocks uses wxWidgets) both, library and program, have to be compiled with the same compiler. I can not describe here why, but you can look for compiler ABI for more information.
4) If you want to compile codeblocks you have first to compile wxWidgets (or you use a binary source that uses the same compiler as you)
5) Then you can compile codeblocks
6) All this is described in the wiki links posted above
greetings