Author Topic: Code:: Blocks isn't compiled  (Read 9342 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))
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
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.
(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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
« Last Edit: July 08, 2017, 05:42:31 pm by jens »

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: 7590
    • 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 64 bit.
--
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
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....