Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Building C::B w/C::B on FreeBSD 6.0 amd64 - wx-config NF || duplidate targets
janknepper:
--- Quote from: tiwag on January 31, 2006, 01:34:05 pm ---
--- Quote from: janknepper on January 31, 2006, 01:15:49 pm ---(Code::Blocks Version 1.0 RC2)
--- End quote ---
that's the problem,
you need to check out a recent svn version and build that using the autotools
try it, it's not very difficult, ( when you have all necessary tools installed...)
./bootstrap
./configure
make
make install
with this generated version the `wx-config` works well,
then you can use this version in order to build
CodeBlocks with codeblock-unix.cbp
(before building delete the precompiled header *.gch)
and you get a new CodeBlocks version in src/devel
then run
src/update
and you have a working version of codeblocks installed in src/output
which you run with the ./run.sh
copy this version to your preferred ~/usr/bin or whereever you like
and use it as your working version from now on (dont forget to edit the run.sh there )
you may consider to uninstall the autotools generated version,
as you'll not need it anymore from this point on.
--- End quote ---
OK... I have been battling with this since the last post for a couple of hours.
I am running FreeBSD 6.0-STABLE amd64
A couple of things I have come across...
* /usr/include/malloc.h is included which according to FreeBSD now should be /usr/include/stdlib.h
* wx-config does exist as wxgtk2-2.6config in /usr/X11R6/bin. A symlink will solve that problem
* Before running ./bootstrap I had to make sure to prepend PATH with /usr/local/gnu-autotools/bin: setenv PATH /usr/local/gnu-autotools/bin:$PATH
* Make sure wxwin.m4 can be found: setenv ACLOCAL_FLAGS "-I /usr/X11R6/share/aclocal
After that (from the top of my head) ./bootstrap and ./configure run.
Make failed on me 2 times so far. In both cases I had to add -fPIC to the Makefile for tinyxml and wxscintilla. I realize that this should be done in the autoconf/automake stuff, but I am a programmer not a build expert.. :-( sorry...
Oh... The build system refers to /usr/local/lib/libcodeblocks.so instead of the libcodeblocks.so generated by the build. The newly build one of course is not being copied to the proper location until after successful build.
Currently I am stuck with a couple of unresolved externals from from AngelScript (as) library which seems to be a relatively new addition to Code::Blocks. The problem here seems to be that the build is conditional whether i386 is pre-defined or not, which does not seem to be the case for amd64 builds. I have not been able to find a solution for this problem yet.
If anyone has any idea's I sure would like to know.
Hope these comments help anyone else here making Code::Blocks better.
Thanks!
Jan
takeshimiya:
--- Quote from: janknepper on February 03, 2006, 03:42:47 pm ---Currently I am stuck with a couple of unresolved externals from from AngelScript (as) library which seems to be a relatively new addition to Code::Blocks. The problem here seems to be that the build is conditional whether i386 is pre-defined or not, which does not seem to be the case for amd64 builds. I have not been able to find a solution for this problem yet.
If anyone has any idea's I sure would like to know.
--- End quote ---
Define AS_MAX_PORTABILITY in as_config.h.
You might want to read here: http://forums.codeblocks.org/index.php?topic=2096.0
janknepper:
--- Quote from: Takeshi Miya on February 03, 2006, 09:16:03 pm ---
--- Quote from: janknepper on February 03, 2006, 03:42:47 pm ---Currently I am stuck with a couple of unresolved externals from from AngelScript (as) library which seems to be a relatively new addition to Code::Blocks. The problem here seems to be that the build is conditional whether i386 is pre-defined or not, which does not seem to be the case for amd64 builds. I have not been able to find a solution for this problem yet.
If anyone has any idea's I sure would like to know.
--- End quote ---
Define AS_MAX_PORTABILITY in as_config.h.
You might want to read here: http://forums.codeblocks.org/index.php?topic=2096.0
--- End quote ---
Yep! That seems to fix the build problem...
However, now when I install and than start codeblocks, it comes up with the compiler selection and than asserts with:
Assertion failed (r>=0), function RegisterAnyObject, file ./source/as_anyobject.cpp, line 138.
Funny enough line 138 is in a #ifndef AS_MAX_PORTABILITY / #endif block so I suspect it really is line 122.
Any idea's?
Thanks!
Jan
takeshimiya:
For a quick "it'll work but it's not the good way" remove all the Assertions (r>=0) in the src\sdk\as\bindings.
janknepper:
--- Quote from: Takeshi Miya on February 06, 2006, 07:11:32 pm ---For a quick "it'll work but it's not the good way" remove all the Assertions (r>=0) in the src\sdk\as\bindings.
--- End quote ---
;-) I know that is the Q&D way... (Quick and Dirty)...
And I will try to do that for now. However, I figured it would be good to have a record of this here in the forum.
Thanks!
Jan
Navigation
[0] Message Index
[*] Previous page
Go to full version