有人尝试过在windows平台下编译codeblocks源代码吗
codeblocks吧
全部回复
仅看楼主
level 6
石水2 楼主
这里有个老外写到详细步骤,但是版本貌似比较老了,这篇文章大概是他在2011-02-28写的
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows
代码我已经下好了,用svn更新的,codeblocks也装好了,但是还不清楚怎么编译这个codeblocks的源代码,希望有过来人能够指点一二。
图1 CodeBlocks源代码
2013年08月22日 15点08分 1
level 6
石水2 楼主
自己顶一下
2013年08月23日 08点08分 2
level 6
石水2 楼主
再顶
2013年08月23日 15点08分 3
level 6
石水2 楼主
CodeBlocks源代码里面经常看到这类以wx大头的库文件。
就像这样的:
#include <wx/filename.h>
#include <wx/msgdlg.h>
#include <wx/stream.h>
#include <wx/wfstream.h>
#include <wx/txtstrm.h>
#include <wx/regex.h> // used in QUICK hack at line 574
可是我搜索整个工程都找不到这些头文件。。。
2013年08月24日 02点08分 5
看来是“要先编译wxWidget库”,编译好后怎么调用也是个问题啊。。。啊啊啊
2013年08月24日 02点08分
level 6
石水2 楼主
我觉得看下工程的“build options”,尤其是其中的“Search directories”,对编译源代码这个问题会有所帮助。
图1 CodeBlocks_wx29.c
bp
的“build options”
2013年08月24日 03点08分 7
level 6
石水2 楼主
sdk\wxscintilla\include
include\tinyxml
在工程文件里已经有了
关键问题是
$(#WX29.include)
$(#WX29.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
代表了什么
已知的变量有WX_SUFFIX,WX_VERSION,WX_CFG(这个算是知道吗,没有值啊)
图2 CodeBlocks_wx29.cbp的“build options”里的“Custom variables”
2013年08月24日 03点08分 8
level 6
石水2 楼主
还有个需要注意的问题是,双击打开CodeBlocks_wx29.cbp时会让我们设置3个变量psdk,wx,wx29
图3 CodeBlocks_wx29.cbp要求设置的3个全局变量
2013年08月24日 03点08分 9
level 6
石水2 楼主
我预感把这些变量都填满了的时候,也就是编译通过的时候。啊哈哈哈。。。
2013年08月24日 03点08分 10
level 6
石水2 楼主
编译wxWidgets库的时候,那个老外写的环境变量有问题,至少在我的电脑上出了问题,一直提示“No such file or directory”(出现这个问题的人貌似还挺多的!!)。
而实际上只要把“%PATH%”加到他环境变量上就可以了。
我的是这样的:
set path=%PATH%;"C:\Program Files\CodeBlocks\MinGW\bin";"C:\Program Files\CodeBlocks\MinGW\mingw32\bin";"C:\Program Files\CodeBlocks\MinGW\libexec\gcc\mingw32\4.7.1"
(%PATH% 放到后面会不会更好,以减小干扰,还没有尝试)
已经一个小时过去了,wxWidgets库编译正常,撒花!~
2013年08月26日 18点08分 12
level 6
石水2 楼主
遇到问题还是官方比较靠谱啊msdn,manual,datasheet...
2013年08月26日 19点08分 14
level 9
GCC WxWidgets都编译过 CodeBlock没有编译过
2013年09月26日 06点09分 15
level 9
These notes are for developers wishing to build Code::Blocks from source.
The only external library needed to build Code::Blocks is wxWidgets.You must compile wxWidgets as a monolithic DLL. Refer to the build documentation in the wxWidgets sources on how to do it.
Win32 build instructions:-------------------------To build these sources, you must have a recent Code::Blocks nightly build installed (http://www.codeblocks.org/nightly).Open the src/CodeBlocks.cbp and hit "Build". This should build the IDE and the core plugins.Close the project now and open src/ContribPlugins.workspace. Hit "Build". This builds all the contributed plugins.
When you 're done with the above, close Code::Blocks and run src/update.bat. This creates a working environment for Code::Blocks, by copying needed files under folders "devel" and "output".
Unix build instructions:------------------------You need a working autotools environment (autoconf, automake, libtool, make, etc).In a terminal, go to the top level folder.If you fetched the sources from SVN, you need to bootstrap the program first. So type:
./bootstrap
This will adapt the project's configuration file to your environment. This only needs to be done once: the first time you checkout the SVN version.
After this, type the following:
./configure --with-contrib-plugins=allmakemake install
For the last step you must be root.That's it.
or:
./configure --prefix=/usr --with-contrib-plugins=all,-helpmakemake install
"all" compiles all contrib plugins"all,-help" compiles all contrib plugins except the help pluginBy default, no contrib plugins are compiledPlugin names are: AutoVersioning, BrowseTracker,byogames,Cccc,CppCheck,cbkoders,codesnippets, codestat, copystrings, Cscope, DoxyBlocks, dragscroll, EditorConfig, EditorTweaks, envvars, FileManager, headerfixup, help, hexeditor, incsearch, keybinder, libfinder, MouseSap, NassiShneiderman, profiler, regex, ReopenEditor, exporter, symtab, ThreadSearch, ToolsPlus, Valgrind, wxsmith, wxsmithcontrib,wxsmithaui
Working on Code::Blocks sources from within Code::Blocks!---------------------------------------------------------The following apply for all platforms where you have Code::Blocks installed and working.
These two folders will contain the same files and directory structure and you can use the IDE from either of these two directories. This structure has been created so that you can work in Code::Blocks while editing Code::Blocks' sources ;).Basically, you 'll be using the "output/CodeBlocks.exe" executable. Code::Blocks' project settings are such that all output goes under "devel". So you can edit Code::Blocks' sources inside Code::Blocks and, when pressing "Run", it will run the "devel/CodeBlocks.exe" executable ;). This way, you can't ruin the main executable you 're using (under "output"). When your changes satisfy you and all works well, quit Code::Blocks, run "make update" from command line and re-launch "output/CodeBlocks.exe". You 'll be working on your brand new IDE!
2013年09月26日 06点09分 16
3q
2013年09月27日 09点09分
level 1
可以给我发份源代码吗 谢谢
2014年11月07日 02点11分 17
level 9
我的绿色便携版中专门做了一个 CodeBlocks svn 编译配置,在绿色便携版的 tools 目录中。
CodeBlocks 默认的编译器配置会显示一大堆 log,导致编译速度显著下降( CB 的人有提到过,但是有没有修正我没注意到)。
2014年11月07日 07点11分 18
level 11
我成功编译过,wx是2.8的,需要编译成单一动态库
2014年11月08日 02点11分 19
如果是分散的动态库,codeblock能编译过么
2017年08月01日 03点08分
一直提示"ld.exe cannot find -lwxmsw30u", 说找不到这个库
2017年08月01日 06点08分
1