User forums > Using Code::Blocks

Hit Snag in Makefile - help -lwx_gtk2_xrc

<< < (2/2)

Anonymous:
Okay I got Code::Blocks to compile on Ubuntu Warty Warthog, but I can't get it to run.

Let me make sure I'm correct here... Code::Blocks has to compile with wxWindows-2.4.2 with is compiled against GTK2, even though wxWindows-2.4.2 is compiled against GTK1 by default? And it doesn't compile with wxWindows-2.5?

I got it compile against 2.4.2 with GTK1, but I haven't got it to run. Do I have to copy libcodeblocks.so to /usr/lib? When I run codeblocks.exe from the devel folder, it says that it can't find Resources.zip or something.

mandrav:
It doesn't run with GTK1, it segfaults (if someone knows why, please share).
This is what I do:

[*]Unpack the wx242 tarball
[*]Run ./configure --enable-gtk2 in its directory
[*]Run make
[*]Run su -c "make install"
[*]Build codeblocks by running make -f Makefile.unix in <codeblocks_sources>/src
[*]Run ./update in <codeblocks_sources>/src
[/list:u]
Then I launch codeblocks using the shell script generated: <codeblocks_sources>/src/output/run.sh
Codeblocks can also be built with wx2.5.x. IIRC no changes are needed, except for the top of the Makefile.unix file.

HTH,
Yiannis.

Anonymous:
Hi,
 is it possible to have binaries for Linux as *.rpm ?

Thanks

mandrav:
Yes, as long as someone provides them that is...

Yiannis.

ilkapo:
I've installed wxGTK with yum on Fedora Core 3 from freshrpms, i create a new yum repository in "/etc/yum.repos.d/" named "freshrpms.repo" with the following lines:


--- Code: ---[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
gpgcheck=0
--- End code ---


than I can install wxGTK


--- Code: ---yum install wxGTK
yum install wxGTK-devel

--- End code ---

Before execute the make command we must change 3 lines in the "Makefile.unix" (changing from gtk2 to gtk):


--- Code: ---LIB_WX=wx_gtk-$(WX_VER)

LIB_WXSTC=wx_gtk_stc-$(WX_VER)

LIB_WXXRC=wx_gtk_xrc-$(WX_VER)
--- End code ---


Now you can run the make command


--- Code: ---make -f Makefile.unix
--- End code ---


before run "make update" yum must use the dos2unix command:


--- Code: ---dos2unix -n update update.unix
./update.unix
--- End code ---


And now yuo can run codeblocks with the "run.sh" script in the "output" directory!

Navigation

[0] Message Index

[*] Previous page

Go to full version