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

Building C::B w/C::B on FreeBSD 6.0 amd64 - wx-config NF || duplidate targets

<< < (2/3) > >>

takeshimiya:

--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---wx-config not found as I would guess that the build system does not *expand* the `wx-config ...`.

--- End quote ---
The expansion is done by the shell, so it should work. I guess you're using Bourne Shell, which supports backticks. (In Windows the expansion is emulated).

To know if the expansion is working, please switch to full command line (see the screenshot), and post it back the build log.




--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---
When I change the Compiler setup to use GMAKE I get duplicate targets...

--- End quote ---
This might be a bug (I don't know what does gmake).


--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---Is it actually possible to build Code::Blocks from within Code::Blocks???

--- End quote ---
Of course. Indeed, it is the build method most commonly used.

janknepper:

--- Quote from: Takeshi Miya on January 31, 2006, 12:24:36 am ---
--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---wx-config not found as I would guess that the build system does not *expand* the `wx-config ...`.

--- End quote ---
The expansion is done by the shell, so it should work. I guess you're using Bourne Shell, which supports backticks. (In Windows the expansion is emulated).

To know if the expansion is working, please switch to full command line (see the screenshot), and post it back the build log.




--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---
When I change the Compiler setup to use GMAKE I get duplicate targets...

--- End quote ---
This might be a bug (I don't know what does gmake).


--- Quote from: janknepper on January 31, 2006, 12:10:37 am ---Is it actually possible to build Code::Blocks from within Code::Blocks???

--- End quote ---
Of course. Indeed, it is the build method most commonly used.

--- End quote ---
Already had "Full command line" shown... I like to see what is happening....
There is the log:
Project   : Code::Blocks - Unix
Compiler  : GNU GCC Compiler (called directly)
Directory : /eng/codeblocks/trunk/src/
--------------------------------------------------------------------------------
Switching to target: AutoRevision
g++     -I/usr/include -c tools/autorevision/autorevision.cpp -o .objs/tools/autorevision/autorevision.o
g++   -L/usr/lib -o tools/autorevision/auto_revision .objs/tools/autorevision/autorevision.o    -s   
Switching to target: ConsoleRunner
g++  -Os    -I/usr/include -c tools/ConsoleRunner/main.cpp -o .objs/tools/ConsoleRunner/main.o
g++   -L/usr/lib -o tools/ConsoleRunner/console_runner .objs/tools/ConsoleRunner/main.o     
Switching to target: tinyXML
g++   -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -DcbDEBUG -DCB_PRECOMP    -Isdk/wxscintilla/include  -I/usr/include -c sdk/tinyxml/tinystr.cpp -o .objs/sdk/tinyxml/tinystr.o
g++: `wx-config: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags`"
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings

Here the same on the shell command line:
$ g++   -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -DcbDEBUG -DCB_PRECOMP    -Isdk/wxscintilla/include  -I/usr/include -c sdk/tinyxml/tinystr.cpp -o .objs/sdk/tinyxml/tinystr.o

No errors or warnings what-so-ever.

My guess is that for what ever reason the build system is *not* expanding the `wx-config --cflags`

Thanks!
Jan
 

mandrav:
In the screenshot posted by Takeshi, do you see the "Shell to run compiler" ?
Change it to a shell in your system that evaluates backtick'd expressions. Try bash for example...

janknepper:

--- Quote from: mandrav on January 31, 2006, 08:36:07 am ---In the screenshot posted by Takeshi, do you see the "Shell to run compiler" ?
Change it to a shell in your system that evaluates backtick'd expressions. Try bash for example...

--- End quote ---

Do not have that particular line, but changed the line "Terminal to run console programs".
The result is exactly the same as I do not think that I actually can set this.
(Code::Blocks Version 1.0 RC2)

Thanks!
Jan

tiwag:

--- 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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version