Author Topic: Problème to compile Code::Blocks...  (Read 20637 times)

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Problème to compile Code::Blocks...
« on: November 30, 2011, 11:09:10 am »
Hello!

I have some troubles to compile correctly Code::Blocks with Windows XP.
This is what I've done:

I read the manual here:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

I use the Gcc compiler given with Code::Blocks 10.05 (When I start Code::Blocks, it is displayed: "Release 10.05 rev 6283 (2010-05-27 09:09:13) gcc 4.4.1 Windows/unicode - 32bit").
I downloaded WxWidgets 2.8.12. I downloaded it on : http://www.wxwidgets.org/downloads/ section "wxMSW - installer for Windows, with manual (other formats: zip)" (I downloaded the installer and not the zip file).

I defined the compiler in the path of WindowsXP: "c:\Programmes\CodeBlocks\mingw\bin;c:\Programmes\CodeBlocks\mingw\mingw32\bin"
I restarted my compture to update the path.

I installed WxWigdets in "C:\wxWidgets-2.8.12" and compile it with:

Code
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

Next, I downloaded the last version of CodeBlocks on SVN (rev 7620 on http://svn.berlios.de/svnroot/repos/codeblocks/trunk).

I launched the codeBlock project : CodeBlocks.cbp
I defined the global variables for wxWidgets.

Next I buiilt all. The compilation ran into the end. Next, I entered in the directory "src/devel/" and launched the file "codeblocks.exe".
The CodeBlocks application is starting with "SVN 0" written.
A pop-up appears at the bottom right of the screen with a warning message :

"WARNING
One or more pluginswere not loaded.
This usually happens when a plugin is built for a different version of the Code::Blocks SDK.
Check the application log for more info.

List of failed plugins:

astyle.dll
autosave.dll
... (others .dll)
compiler.dll
... (others .dll)
"

I tryed also to make a release version using the "update.bat" file. I generated an "output" directory. I try to start the application with these files but it is the same problem.

With this warning I can use Code:Blocks, but I can't compile, open project... etc...
When I try to open a project I have the following message:

"Deactivating the compiler plugin is most unwise.
If you intend to open a project, you have to re-activate the compiler plugin first."

So, I tryed to add plugins. I exported all the plugins of my official CodeBlocks 10.05 in .cbplugin format in a directory and tryed to import them in my customized codeBlocks, using section "Plugins/Manage plugins...". I clicked on "Install new", selected the .cbplugin files.
A warning message appears:
"One or more plugins were not installed successfully:
astyle-1.2.cbplugin
...
"


Is anybody have an idea about my problem?

Regards,

Crepuscule

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Problème to compile Code::Blocks...
« Reply #1 on: November 30, 2011, 12:39:37 pm »
Before you start the newly build, you have to run "src/update.bat", to copy the resources.

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #2 on: November 30, 2011, 04:13:47 pm »
Hello!

As I said in my first message, I already start the update.bat script file.
After reading your message, I started the update.bat and next built the project. I launched the software --> same problem like before!
I don't understand...

Crepuscule

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Problème to compile Code::Blocks...
« Reply #3 on: November 30, 2011, 04:37:27 pm »
When you run update.bat, is zip.exe on the path?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Problème to compile Code::Blocks...
« Reply #4 on: November 30, 2011, 04:49:39 pm »
I entered in the directory "src/devel/" and launched the file "codeblocks.exe".

You should be running codeblocks.exe from "src/output/"

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #5 on: November 30, 2011, 04:53:50 pm »
When you run update.bat, is zip.exe on the path?

No, I don't have zip.exe in the path of windows.
Why do we need zip?

Crepuscule

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #6 on: November 30, 2011, 04:54:48 pm »
I entered in the directory "src/devel/" and launched the file "codeblocks.exe".

You should be running codeblocks.exe from "src/output/"

Tim S.

As I said in my first message, I tryed also to run code blocks from the scr/output directory after starting the update.bat script file.

Crepuscule

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Problème to compile Code::Blocks...
« Reply #7 on: November 30, 2011, 05:08:20 pm »
When you run update.bat, is zip.exe on the path?

No, I don't have zip.exe in the path of windows.
Why do we need zip?

Crepuscule

Because the batch file needs it to work.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #8 on: November 30, 2011, 05:16:07 pm »
Ok, I will try to do that.

But I can't access to the link you gave me for zip.exe. Can I take any version of winzip to do that?

Crepuscule

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Problème to compile Code::Blocks...
« Reply #9 on: November 30, 2011, 05:23:40 pm »
But I can't access to the link you gave me for zip.exe.
Oops, sorry (it is an ftp, but I accidentally embedded it as standard hyperlink).

Here is the actual link: zip.exe

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #10 on: December 01, 2011, 08:28:39 am »
The new link you gave doesn't run anymore...

zabzonk

  • Guest
Re: Problème to compile Code::Blocks...
« Reply #11 on: December 01, 2011, 09:49:35 am »
http://gnuwin32.sourceforge.net/packages/zip.htm and did you actually read this page http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows which tells you all about the need for zip, update.bat etc?
« Last Edit: December 01, 2011, 09:51:11 am by Neil Butterworth »

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #12 on: December 01, 2011, 10:36:42 am »
I looked again the manual : http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows
I discovered the part about zip.exe. Because I already installed SVN on my computer, the last time I didn't read the SVN part of the manual. The information about zip.exe was in this part.

So I add zip.exe to minGW and in my PATH...
I did again all the procedure but I still have the same problem.

Anyone else has another idea?

Crepuscule

Offline Crepuscule

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Problème to compile Code::Blocks...
« Reply #13 on: December 01, 2011, 10:43:44 am »
In fact, I already had a zip.exe file in my MinGW/bin folder...

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Problème to compile Code::Blocks...
« Reply #14 on: December 01, 2011, 11:36:29 pm »
Sorry for the bad links. :oops: (That is where I downloaded it from, but maybe my computer is just strange...)