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

Difficulties building from SVN source or Ubuntu repository

<< < (2/4) > >>

Jenna:

--- Code: ---apt-get install libgtk2.0-dev
--- End code ---

resander:
The svn procedure now completes without errors.

However, the IDE did not work when I tried it. It showed svn=5367 near/on-top of the code::blocks image and when I selected a project from the current-projects-list nothing happened. The IDE just exited. I fumbled around for a while and discovered that:

SVN install:
svn=5367 worked after sudo apt-get purge codeblocks and redoing the svn procedure starting from ./bootstrap step. The executable file was put in usr/local/bin and usr/local/include was updated too.

Jens Ubuntu install:
package svn=5344 for Synaptic package using Jens' Ubuntu install puts the binary in /usr/bin. However, when I ran codeblocks from the menu an alert message popped up saying that one or more plugins were not loaded listing about 20 each ending with .so. The IDE just exited when selecting from the current project list. I tried this in two ways: clicked on the executable icon in /usr/bin and clicked the menu after having put /usr/bin/codeblocks in the menu property item for Code::Blocks in Ubuntu's MainMenu. In both cases the svn reported was 5367, not 5344 as I expected.   

What do I need to do be able to to use SVN and Jens installs interchangeably back and forth with the opening IDE page showing the respective svn numbers and fixing the missing plugin problem?

Jenna:
Do not use standard-prefix ("/usr/local"), because it's in system-PATH before "/usr/bin", that will most likely cause the errors.
I use "~/codeblocks-tmp" as prefix for test-compiles with automake-system.

--- Code: ---./configure --prefix=/home/jens/codeblocks-tmp --with-contrib-plugins=all
--- End code ---

and start codeblocks with full or relative path from console ("~/codeblocks-tmp/bin/codeblocks") without any problems.

You can use any directory you have write and exe-access, of course.

resander:
I tried
./configure --prefix=/home/ken/codeblockstmp --with-contrib-plugins=all
but it did not make any difference (yesterday 31 Dec still missing plugins)

This morning, January 1, received a codeblocks svn5368 update notification when starting Ubuntu. Installed via Synaptic and when starting codeblocks the svn was displayed as svn5367, which is the svn of the SVN build that I installed yesterday. However, the date was displayed as 'Build: Dec 30 2008, 18:32:51 (Linux,unicode)'. Also got svn5357 and same date when clicking About menu in codeblocks.

The date and svn were exactly same as above when invoking yesterday's svn build svn5367.

I could be totally misinterpreting, but it looks as if the svn displayed is the svn of the SVN build and the date is that of the Jens' Ubuntu build.

I thought the lingering effect of the SVN build in some way might be caused by the Code::Blocks menu item, so deleted the latter and reinstalled svn5368 via Synaptic. I expected the install process to create a menu item like it did the first time I installed codeblocks, but it did not.

It's getting weirder and weirder...
To verify, I deleted menuitem and reinstalled via Synaptic. Manually put command /usr/bin/codeblocks (date of executable: 30 Dec 2008, 12:02:21 GMT) into menuitem. When starting, codeblocks displayed 'svn build rev 5367 (2008-12-28 16:47:04) gcc 4.1.2 Linux/unicode'. The date Dec 30 2008, 18:32:51 was displayed when clicking About in codeblocks.

The svn build 5367 might be causing this problem. How do I totally remove it from the system including the Linux equivalent of its registry entries?

Jenna:
I guess you still have C::B in "/usr/local".
If you do a new build, even with other prefix, it is not removed automatically.

To get a clean system, you will have to do some handwork now:
delete the following files:

--- Code: ---/usr/local/bin/codeblocks
/usr/local/bin/codesnippets
/usr/local/bin/cb_console_runner
/usr/local/bin/cb_share_config
/usr/local/lib/libcodeblocks.la
/usr/local/lib/libcodeblocks.so
/usr/local/lib/libcodeblocks.so.0
/usr/local/lib/libcodeblocks.so.0.0.1
/usr/local/lib/libwxsmithlib.la
/usr/local/lib/libwxsmithlib.so
/usr/local/lib/libwxsmithlib.so.0
/usr/local/lib/libwxsmithlib.so.0.0.1
/usr/local/lib/pkgconfig
/usr/local/lib/pkgconfig/codeblocks.pc
/usr/local/lib/pkgconfig/wxsmith.pc
/usr/local/share/applications/codeblocks.desktop
/usr/local/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks-workspace.png
/usr/local/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png
/usr/local/share/man/man1/cb_console_runner.1
/usr/local/share/man/man1/cb_share_config.1
/usr/local/share/man/man1/codeblocks.1
/usr/local/share/man/man1/codesnippets.1
/usr/local/share/mime/packages/codeblocks.xml
/usr/local/share/pixmaps/codeblocks.png
--- End code ---

and the following directories:

--- Code: ---/usr/local/include/codeblocks
/usr/local/include/wxsmith
/usr/local/lib/codeblocks
/usr/local/share/codeblocks
--- End code ---

run
--- Code: ---make uninstall
--- End code ---
inside your build-directory or delete the content of
--- Code: ---/home/ken/codeblockstmp
--- End code ---
manually

purge all C::B-packages via synaptic

make sure there is no C::B-executable left on your hdd

install C::B with synaptic

C::B should start as svn 5368, svn-string (start-page) is
--- Code: ---svn build rev 5368 (2008-12-30 11:05:44) gcc 4.1.2 Linux/unicode
--- End code ---
for 32- and 64-bit and
build-string (about-menu) is
--- Code: ---Build:Dec 30 2008, 12:48:22 - wx2.8.9 (Linux, unicode)
--- End code ---
for 64-bit and
--- Code: ---Build:Dec 30 2008, 11:38:15 - wx2.8.9 (Linux, unicode)
--- End code ---
for 32-bit

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version