Author Topic: Building CodeBlocks SVN  (Read 4491 times)

GhostAce

  • Guest
Building CodeBlocks SVN
« on: July 29, 2009, 03:12:49 pm »
I followed all the instructions in the wiki (Installing Code::Blocks from source on Windows) but whenever I build there will be a error with ld.exe. The first time came out Cannot find -lcodeblocks and is somehow fixed after copying the plugins folder from the source to \devel\share\CodeBlocks\ and 8.02 Binary release of Codeblocks to /devel/. Now it comes up a error saying Cannot find -depslib. I found a depslib folder in \plugins\compilergcc\. Both errors have this line in the build log: Linking dynamic library: devel\share\CodeBlocks\plugins\compiler.dll. What do I do now?

Using Windows XP and source is from SVN. Using wxMSW-2.8.10 not wxWidgets-2.8.10 but it shows the same error anyway.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Building CodeBlocks SVN
« Reply #1 on: July 29, 2009, 03:20:55 pm »
Quote
Using Windows XP and source is from SVN. Using wxMSW-2.8.10 not wxWidgets-2.8.10 but it shows the same error anyway.

Did you use MinGW to build CB? Which version of MinGW and GCC?

Did you firstly build the CB then build CB contributed plugins?

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

GhostAce

  • Guest
Re: Building CodeBlocks SVN
« Reply #2 on: July 29, 2009, 03:34:02 pm »
Not sure of the version, comes with codeblocks. I just followed the instructions in the wiki so I probably built the compiler. http://wiki.codeblocks.org/index.php?title=Image:Win_build_target.png

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Building CodeBlocks SVN
« Reply #3 on: July 29, 2009, 04:30:53 pm »
I probably built the compiler. http://wiki.codeblocks.org/index.php?title=Image:Win_build_target.png
That's the problem -> you first need to compile the (base) libs, then the SDK, then the main app and then the plugins. Leave the selection at "all". Everything else usually makes no sense if compiling the first time.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ