User forums > General (but related to Code::Blocks)

wxSmith and Valgrind Pluggin Installation

(1/5) > >>

spflanze:
I installed Code::Blocks from svn 11562 and wxWidgets version 3.0.3 from source according to the instructions at http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux
In Code::Blocks Help => About I see verification that wxWidgets is installed.

After installing Code::Blocks I installed Valgrind and wxSmith with the commands:

--- Code: ---sudo apt-get install codeblocks-contrib
sudo apt-get install valgrind
--- End code ---

I do not see Valgrind in the Code::Blocks's menu bar. And when I attempt to create a wxWidgets frame based  project with wxSmith Preferred GUI Builder I get the error message

--- Quote ---wxSmith is not loaded, can not continue
--- End quote ---

Why would Code::Blocks not recognize that codeblocks-contrib and valgrind are installed?

Miguel Gimenez:
If you install C::B from source you must use the plugins you compiled, not the repository ones. For the contrib plugins to be compiled you must specify --with-contrib-plugins=all when calling configure.

Valgrind is needed to execute the Valgrind plugin, but it is not the plugin itself.

spflanze:
When I executed the command:

--- Code: ---./configure --with-contrib-plugins=all
--- End code ---
I got the error:

--- Quote ---checking for HUNSPELL... no
configure: error: Package requirements (hunspell) were not met:

No package 'hunspell' found

--- End quote ---
I do have a repository installation of hunspell. Now I will have to compile hunspell. How is this done in a way that configure will find it? Would it be sufficient to compile it in a subdirectory of the same ~/devel directory I compiled wxWidgets and Code::Blocks in? (wxWidgets and Code::Blocks were each compiled their own subdirectories of ~/devel).

I attempted to ignore this error regarding hunspell and continued to compile with the make command. I got this warning and error:

--- Quote ---configmanager-revision.cpp:15:25: warning: ../../src/include/sdk_precomp.h.gch: not used because `WXUSINGDLL' not defined [-Winvalid-pch]
 #include "sdk_precomp.h"
                         ^
In file included from ../../src/include/sdk_precomp.h:13:0,
                 from configmanager-revision.cpp:15:
../../src/include/sdk_common.h:37:10: fatal error: wx/wxprec.h: No such file or directory
 #include <wx/wxprec.h>
          ^~~~~~~~~~~~~
compilation terminated.
--- End quote ---

The file wxprec.h does exist in the path:
/opt/wx/3.0/include/wx-3.0/wx/wxprec.h
How can I get make to find it there?

sodev:
configure failed, your source tree is in an undefined state, everything can happen from finding the Holy Grail to starting World War 3, but very unlikely make will do anything useful.

To compile against your system packages you always need to install their dev packages, nothing installs these automatically, you always have to do it yourself.

I never had to compile anything extra for CodeBlocks except wxWidgets. The configure script also has a help switch, its output especially lists the available plugins, if you dont want them all, you can specify only the ones you need.

I usually compile CodeBlocks like this (the excluded plugin requires boost that i dont want to install system wide to prevent problems with my various private ones):


--- Code: ---./configure --with-contrib-plugins=all,-NassiShneiderman
--- End code ---

spflanze:
I executed these commands:

--- Code: ---sudo apt-get install libgamin-dev
sudo apt-get install libhunspell-dev
--- End code ---
after which the command:

--- Code: ---./configure --with-contrib-plugins=all
--- End code ---
completed without error. Thanks :)
However when I attempted to compile with the make command I still got the "wx/wxprec.h: No such file or directory" error. I tried again after executing:

--- Code: ---./configure --with-contrib-plugins=all,-NassiShneiderman
--- End code ---
and got the same result.


Navigation

[0] Message Index

[#] Next page

Go to full version