Author Topic: Code:: Blocks isn't compiled  (Read 532 times)

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Code:: Blocks isn't compiled
« 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))
 

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10054
Re: Code:: Blocks isn't compiled
« Reply #1 on: July 08, 2017, 10:33:06 am »
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.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #2 on: July 08, 2017, 10:51:58 am »
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))

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #3 on: July 08, 2017, 11:00:50 am »
Here image of settings.
 if to click "Reset default" they not incorrect will be!

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7177
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Code:: Blocks isn't compiled
« Reply #4 on: July 08, 2017, 11:07:44 am »
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 (" ").

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #5 on: July 08, 2017, 11:18:52 am »
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))

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #6 on: July 08, 2017, 11:33:28 am »
I copied wx/setup
Code:: Blocks swears on #include "wx/setup.h"

 
Quote
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

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7177
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Code:: Blocks isn't compiled
« Reply #7 on: July 08, 2017, 11:58:55 am »
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.


Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #9 on: July 08, 2017, 01:01:43 pm »
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))

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #10 on: July 08, 2017, 01:56:23 pm »
  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?
« Last Edit: July 08, 2017, 04:59:49 pm by proggi »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5835
    • My Best Post
Re: Code:: Blocks isn't compiled
« Reply #11 on: July 08, 2017, 05:08:20 pm »
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.
« Last Edit: July 08, 2017, 05:20:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #12 on: July 08, 2017, 05:35:47 pm »
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.

Quote
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
« Last Edit: July 08, 2017, 05:38:57 pm by proggi »

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7177
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Code:: Blocks isn't compiled
« Reply #13 on: July 08, 2017, 05:44:26 pm »
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.

Quote
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.

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #14 on: July 08, 2017, 06:28:07 pm »
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.

Quote
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....

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5835
    • My Best Post
« Last Edit: July 08, 2017, 06:33:31 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #16 on: July 08, 2017, 06:35:47 pm »
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5835
    • My Best Post
Re: Code:: Blocks isn't compiled
« Reply #17 on: July 08, 2017, 06:42:46 pm »
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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline proggi

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code:: Blocks isn't compiled
« Reply #18 on: July 08, 2017, 07:08:20 pm »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5835
    • My Best Post
Re: Code:: Blocks isn't compiled
« Reply #19 on: July 08, 2017, 07:22:33 pm »
@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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7177
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Code:: Blocks isn't compiled
« Reply #20 on: July 08, 2017, 07:31:18 pm »
@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/

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1370
Re: Code:: Blocks isn't compiled
« Reply #21 on: July 09, 2017, 10:00:41 pm »
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