Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building CodeBlocks source

<< < (2/10) > >>

sorinev:
wxWidgets seems to have built successfully this time.

Building codeblocks failed again. The error is the same as before. The page says just open codeblocks.cbp and hit compile, so I did that. The error is:


--- Code: ---
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

mingw32-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   -Wall -fno-strict-aliasing -Wno-write-strings   -iquote.objs\include -I.objs\include -I. -IC:\Users\Sorinev\Desktop\wxMSW-2.8.12\include -IC:\Users\Sorinev\Desktop\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml  -c C:\CodeBlocksSVNSource\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
mingw32-g++.exe: error: (invalid): No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
 

--- End code ---

Every build target fails instantly. This is the error when having "all" selected. Other build targets fail immediately with different specific, but generally similar errors.

Is there more to it than just hitting build, as the page says to do?

stahta01:
A important thing to keep in mind is using the same exact version of MinGW GCC to build both wxWidgets and CB.

I suggest posting the source (MinGW Std, TDM) and version number of the MinGW GCC you are using?

Also, re-post the exact wxWidgets build command you used? And post wxWidgets version?

And, remember if doing a second make of wxWidgets, that you MUST clean the prior build every time you change the build options.

Ans, remember when you change from Monolithic to non-Monolithic  you MUST clean out all the object and library files because the objects and library are NOT safe to be built in the same folder.

List Folders I delete before doing a major wxWidgets build option change (Should be done when changing Monolithic setting).

* build/msw
* lib/gcc_dll*
* lib/gcc_lib*
Tim S.

stahta01:
You are missing or wrong setting for the cb_release_type.

Tim S.

Jenna:
You need at least a global variable cb, where the base points to the root-folder of the sources and global variable cb_release_type, where the base is e.g. -g for debug-build or -O2 (or whatever) for release-build.
By the way C::B should have asked for the content of both variables on first run and asked you for confirmation whether you want to save an invalid content.
If you don't want to put anything in cb_release_type you need at least to put a space here.

sorinev:
Jesus, I've never seen such fast replies to my forum posts in all of the years I've been tooling around on the internet. Haha. Thanks for the very fast and very helpful replies.

My command line for the [successful] wxWidgets build this time was exactly as in golgepapaz's post:

--- Code: ---mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=1 MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport"

--- End code ---

I seem to have mingw 4.6.2. It uses the same one for both the command line wxwidgets build and the codeblocks ide [attempted] build.

It seems like it's obviously more than just a


--- Code: ---Open the project file CodeBlocks.cbp. You will be prompted to define the global variable $(#wx). Enter the location where you unpacked wxWidgets. Hit the blue gear and lean back.

--- End code ---

needing to go on here. So how about we just skip that wiki page altogether and just start me fresh here with an idiots guide, from steps 0 to n. Every detail, no matter how small and trivial. I have mingw installed, it's in C:\MinGW. Is my repository right? TortoiseSVN shows that I'm at 9214. And what's the most recent download for the wxWidgets material? Any other materials I need to download?

Again, I really appreciate the speedy and helpful replies. I'll update to the latest nightly in the meantime. Currently running 12.11.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version