User forums > Using Code::Blocks

Code::Blocks doesn't compile on Ubuntu Linux with wx 2.5

<< < (5/13) > >>

Funto:

--- Quote ---That's the point: the stable branch, VERSION_1_0, does not use wxDockit. This is only in HEAD...
--- End quote ---
Ok, this explains why I couldn't find any wxDockit ^^


--- Quote ---It seems you have mixed various versions (CVS-HEAD, CVS-VERSION_1_0, source package).
--- End quote ---
But I didn't...I promise you that I've downloaded the source package and run make -f Makefile.unix, and I get these errors. Am I the only one who gets these errors???

rickg22:
You could do a grep for the offending lines in the sourcecode, and publish the snips here to shock everyone. Then we can compare with our own versions.

Funto:
I don't really understand what you mean, and I don't know how to use grep... :oops:

However, I FINALLY got something working : in fact, the file Makefile.unix is NOT up to date; I added the references to sdk/customvars.cpp/.h and sdk/externaldepsdlg.cpp/.h to this *unredeable* Makefile and finally got libcodeblocks.so compiled with some definitions which were missing, and which prevented codeblocks.exe to compile.

So I got codeblocks.exe, but as for the following, libastyle.so doesn't compile because of a missing rule concerning customvars.cpp (in fact there are 2 different customvars.cpp files !)...

Well, I copied the libcodeblocks.so file to /usr/lib and created a CodeBlocks folder with a "share" directory, containing what was in my Win32 installation and finally Code::Blocks launches ! But of course the project templates are those for Win32...etc.
It's not a valuable installation ^^

I think the problem is that you forgot to regenerate the Makefile.unix file from the Code::Blocks project...

So please update this so that Linux users can test it :)

Funto:
I know somebody else who is trying to compile with Mandriva/wxGTK 2.4 ANSi and he gets the same errors ^^

This confirms that the Makefile.unix is not up to date in my opinion ^^

rickg22:
Oh no! :(

Anyway. When you manage to compile, do this:

* Open the codeblocks project under linux.
* Generate the makefile with Codeblocks (I just hope THAT's how Yiannis managed to generate the makefile).
* Upload it here

Ta-da! :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version