Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Building Code::Blocks on Win 64
stahta01:
--- Quote from: billyonthemountain link=topic=11567.msg78977#msg78977 ---
As for Squirrel, it can be compiled with GCC for Linux 64-bit but is it know to compile for a Win 64 platform ?
--- End quote ---
The most recent Squirrel is supposed to be Windows 64-bit; but, the wrapper code we use is NOT 64-bit Windows ready. IIRC, SqPlus is the wrapper CB uses.
http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/SqPlus.html
Tim S.
Biplab:
--- Quote from: billyonthemountain on November 25, 2009, 01:32:21 pm ---Hello everyone,
Trying to build code:blocks using the Mingw64/msys based WPG-System64 build environmental on Windows 7 64-bits, I get the same error as pointed out in this thread (this one was on Linux) ie.
--- Code: ---||=== Code::Blocks, AutoRevision ===|
||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|
||=== Code::Blocks, Squirrel ===|
include\scripting\squirrel\sqtable.h||In function 'SQHash HashObj(const SQObjectPtr&)':|
include\scripting\squirrel\sqtable.h|21|erreur: cast from 'SQRefCounted*' to 'SQInteger' loses precision|
||=== Build finished: 1 errors, 1 warnings ===|
--- End code ---
Defining _SQ64 doesn't help. I guess this won't be the only problem I will encounter, so I was wondering if anyone had experience in building code::blocks in a native 64-bits environment on Windows.
--- End quote ---
You can use the following patch. This will help you compile Squirrel and SqPlus without any error. Please note that the patch is a partial one (means it doesn't include patch for other part of C::B). I had to edit the patch manually. So if you can't use patch tool to apply the same, you need to manully patch the source code.
Edit 1: An updated patch is available at the following post-
--- Quote ---http://forums.codeblocks.org/index.php/topic,11567.msg79095.html#msg79095
--- End quote ---
I've tried to make sure the patch doesn't break Linux build. However I can't test it at the moment as I don't have access to a 64-bit Linux machine.
You'll also need to define _WIN64 to root of Code::Blocks project options. As Tim said above, you need to use wx-2.9 to compile it correctly. So you need to manually edit the project file to include wx-2.9 libs.
At the moment I'm working on a 64-bit windows port of Code::Blocks. I'll commit the patch after some more testing and code cleanup.
Hope this helps. :)
Jenna:
--- Quote from: Biplab on December 03, 2009, 05:02:06 pm ---I've tried to make sure the patch doesn't break Linux build. However I can't test it at the moment as I don't have access to a 64-bit Linux machine.
--- End quote ---
I just give it a quick try on debian 64-bit:
squirrel.h had to be patched manually (as you mentioned), no errors while building.
I tested scripting with the make_dist.script and everything seems to work.
Biplab:
--- Quote from: jens on December 03, 2009, 05:40:34 pm ---
--- Quote from: Biplab on December 03, 2009, 05:02:06 pm ---I've tried to make sure the patch doesn't break Linux build. However I can't test it at the moment as I don't have access to a 64-bit Linux machine.
--- End quote ---
I just give it a quick try on debian 64-bit:
squirrel.h had to be patched manually (as you mentioned), no errors while building.
I tested scripting with the make_dist.script and everything seems to work.
--- End quote ---
Thanks a lot for testing. :)
I'll come up with more patches as the work progresses.
MortenMacFly:
--- Quote from: Biplab on December 04, 2009, 12:28:12 am ---I'll come up with more patches as the work progresses.
--- End quote ---
Good to hear and it works here (in my VM), too!
Hence I'd like to state that the squirrel development has continued, too. The new squirrel libraries are 64 bit compatible to my knowledge. I already tried an update of squirrel but an aweful lot has changed (including the interface etc...) However, I think we should still consider updating squirrel instead of patching our old branch a lot more. Because I believe most of the work is already done. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version