User forums > Help

Building Code::Blocks in Ubuntu

(1/3) > >>

ordak:
Hi,

According to BUILD file in Code::Blocks SVN, I tried:


--- Code: ---./bootstrap
--- End code ---

then

--- Code: ---./configure --with-contrib-plugins=all
make
make install
--- End code ---

But the process was interrupted several times due to packages that were not installed. Now after efforts to run I get:


--- Code: ---mehdi@mehdi-X556UQK:~$ codeblocks
codeblocks: symbol lookup error: codeblocks: undefined symbol: cbDEFAULT_OPEN_FOLDER_CMD

--- End code ---

What should I do ?

blauzahn:
Please try a rebuild. Installing things midway through the build might break that.


--- Code: ---make clean
./configure --with-contrib-plugins=all
make
sudo make install

--- End code ---

Depending on your CPU and RAM you might want to try running make in parallel:


--- Code: ---make -j 4

--- End code ---

Please be aware, that compiling some of the files needs a lot memory.

stahta01:
For those wondering where "cbDEFAULT_OPEN_FOLDER_CMD" is defined.

From file sdk/globals.cpp

--- Code: ---#if defined __WXMSW__
const wxString cbDEFAULT_OPEN_FOLDER_CMD = _T("explorer.exe /select,");
#elif defined __WXMAC__
const wxString cbDEFAULT_OPEN_FOLDER_CMD = _T("open -R");
#else
const wxString cbDEFAULT_OPEN_FOLDER_CMD = _T("xdg-open");
#endif

--- End code ---

Tim S.

ordak:

--- Quote from: blauzahn on September 03, 2017, 07:40:09 pm ---Please try a rebuild. Installing things midway through the build might break that.


--- Code: ---make clean
./configure --with-contrib-plugins=all
make
sudo make install

--- End code ---

--- End quote ---

[...]

I ran the commands on revision 11157 and build went on without seemingly any error. But I get this again :


--- Code: ---mehdi@mehdi-X556UQK:~$ codeblocks
codeblocks: symbol lookup error: codeblocks: undefined symbol: cbDEFAULT_OPEN_FOLDER_CMD

--- End code ---

Note that previously I was using a Launchpad link for Ubuntu :

https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks

Jenna:
Run "which codeblocks" in the console and see if you run the self-build version, you can also try "ldd [/path/to/your/]codeblocks" to see if it uses the correct libraries, not the libraries from damien's version.
The securest way would be to completeley remove the "other" codeblocks and only keep yours.
You might also try to install it to a folder below your home folder with the "--prefix="-option when running configure.
This works on Fedora without clashing with the system-wide installed codeblocks.

Navigation

[0] Message Index

[#] Next page

Go to full version