User forums > Using Code::Blocks

Compilation troubles with the wxWidgets and Imagemagick scripts

(1/2) > >>

Baluarte:


Hi! I'm a very happy spanish user. Very thanks! The Codeblocks IDE is marvelous. I discovered it by chance a month ago .Now, It is a essential tool for me. The good devcpp days are over unless the codeblocks will be discontinued.
(My god! No!)

However, I have a very big trouble:

I work with MinGW/Msys and I have installed succcesfully the Imagemagick 6.2.5, WxWidgets 2.6.2 , Boost C++ 1.3.3, SDL 1.2.9, Pthreads 2.7.0... "libraries".

Until now I compiled with the GNU Make Option (no "invoked directly" and no Custom Makefile) without problems, but the option has been desactivated in the last CVS... Why? but...don't worry!

When I tried to compile mi code with the direct invocation... the 'canonical' scripts for wxWidgets and ImageMagick are not found.

In this way, I always failed with 


Project   : Plataforma-Modular
Compiler  : GNU GCC Compiler
Directory : C:\Proyectos\Plataforma-Modular\
---------------------------------------------------------------------------------------------
Switching to target: MiEjecutable
g++.exe -Wall `wx-config --cxxflags` `Magick++-config --cxxflags
--cppflags`  -Iinclude -IC:\Coreco\Sapera\Include -IC:\MinGW\include
-IC:\MinGW\include\c++ -IC:\MinGW\include\c++\3.4.4
-IC:\msys\1.0\local\include -IC:\msys\1.0\local\include\wx-2.6
-IC:\Boost\include\boost-1_33_1  -c src\CAdquisicion.cpp -o
.objs\src\CAdquisicion.o
cc1plus.exe: error: unrecognized command line option "-fcxxflags`"
cc1plus.exe: error: unrecognized command line option "-fcxxflags"
cc1plus.exe: error: unrecognized command line option "-fcppflags`"
g++.exe: `wx-config: No such file or directory
g++.exe: `Magick++-config: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

------------------------------------------------------------------------------------------------

Here is my link configuration:


`wx-config --libs`
`Magick++-config --ldflags --libs`
-lpthreadGC2
-lboost_filesystem-gcc-1_33_1
-lboost_date_time-gcc-1_33_1


I repeat: The configuration is valid and perfect! with the GNU Make. Devcpp beats this configuration without mercy. Msys directly execute the GNU make without doubts. CodeBlocks run my code without fear.

I need put in anyway the path: c:\msys\1.0\local\bin (Here is the scripts) But where is the correct place?! Any help? Thank you!


Note One: Before, I configured it in Compiler->Compiler->Programs->Additional Paths: c:\msys\1.0\local\bin & c:\msys\1.0\bin

Note Two: I don't want to move the script files.

thomas:

--- Quote from: Baluarte on December 01, 2005, 11:42:42 pm ---cc1plus.exe: error: unrecognized command line option "-fcxxflags`"
cc1plus.exe: error: unrecognized command line option "-fcxxflags"
cc1plus.exe: error: unrecognized command line option "-fcppflags`"
--- End quote ---

Hmm... this looks like MacrosManager has screwed up here, $cxxflags and $cppflags are not getting replaced... Rick, any idea?

Urxae:
No, the problem is he's using backticks. They're not supported when invoking the compiler directly (It's a make feature).
I would advise replacing the expressions in backticks by the result of executing the quoted commands manually from the command line.
Use compiler or global variables to make it easier to change their value if the library is ever relocated, reconfigured or upgraded.

Baluarte:

I´m very ashamed. I tried thousands of tests... But the solution is right under my very nose...

Thank you Urxae!!! You have been my blue light.

Perhaps, Thomas was confused because I didn´t explain the configuration compiler:

 `wx-config --cxxflags`
 `Magick++-config --cxxflags --cppflag`

Sorry!
Clearly, now, (he, he, he) it´s very different .

However, It is surprising that my "backticks" question was the first one. mmm... Well, I didn't find anyone.

Anyway, Thomas, Urxae, ... thanks for your very very very fast answers
and sorry for my very very very terrible english.
                                                                                                     Baluarte

rickg22:
Perhaps we could emulate the backticks when executing the commands?

Navigation

[0] Message Index

[#] Next page

Go to full version