User forums > Using Code::Blocks
Building CodeBlock
raph:
For core plugins:
Either build target "all" or choose your plugin as build target.
For contributed plugins:
Open ContribPlugins.workspace, point global variable "cb" to your codeblocks\src dir and hit Build->Build workspace.
puneet_m:
I did build target "all", but it seems like that plugins are not getting built properly.
The build log is as follows -
-------------- Build: Compiler depslib in Code::Blocks ---------------
WARNING: Can't read file's timestamp: C:\codeblocks-1.0svn4360.tar\src\plugins\compilergcc\depslib\src\main.c
Linking static library: plugins\compilergcc\depslib\libdepslib.a
ar.exe: .objs\plugins\compilergcc\depslib\src\main.o: No such file or directory
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings
puneet_m:
The build log for depslib is
Build: Compiler depslib in Code::Blocks ---------------
Compiling: plugins\compilergcc\depslib\src\alloc.c
Compiling: plugins\compilergcc\depslib\src\cache.c
Compiling: plugins\compilergcc\depslib\src\depslib.c
Compiling: plugins\compilergcc\depslib\src\filent.c
Compiling: plugins\compilergcc\depslib\src\fileunix.c
Compiling: plugins\compilergcc\depslib\src\hash.c
Compiling: plugins\compilergcc\depslib\src\headers.c
Compiling: plugins\compilergcc\depslib\src\lists.c
WARNING: Can't read file's timestamp: C:\codeblocks-1.0svn4360.tar\src\plugins\compilergcc\depslib\src\main.c
Compiling: plugins\compilergcc\depslib\src\newstr.c
Compiling: plugins\compilergcc\depslib\src\pathsplit.c
Compiling: plugins\compilergcc\depslib\src\pathunix.c
Compiling: plugins\compilergcc\depslib\src\regexp.c
Compiling: plugins\compilergcc\depslib\src\search.c
Compiling: plugins\compilergcc\depslib\src\timestamp.c
Linking static library: plugins\compilergcc\depslib\libdepslib.a
ar.exe: creating plugins\compilergcc\depslib\libdepslib.a
ar.exe: .objs\plugins\compilergcc\depslib\src\main.o: No such file or directory
Process terminated with status 1 (11 minutes, 4 seconds)
0 errors, 0 warnings
Why is it looking for main.o, when there is no main.c defined in plugins\compilergcc\depslib\src??
Ceniza:
--- Quote ---Why is it looking for main.o, when there is no main.c defined in plugins\compilergcc\depslib\src??
--- End quote ---
That's the way the plugin was designed. If it cannot read the timestamp, it'll try to link the .o file anyway, even if it doesn't exist. I modified that section of the plugin by adding a check for file existence. If the file exists it forces compilation, if it doesn't then it continues with the old behavior, and the svn version you're trying to compile has that change already (it was introduced in revision 4326).
Please find that main.c in the project tree and delete it. If you say it doesn't exist in that directory, it should be in the project tree with a different icon. If it doesn't even show up in the project tree then something strange is going on with the .cbp file. If that's the case, please upload the project file so we can check it.
puneet_m:
Attached is the depslib folder which is giving errors. Please suggest me suitable changes to be made.
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version