Author Topic: cbMakefileGen plugin  (Read 104851 times)

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #30 on: August 08, 2007, 01:18:16 pm »
*
* I does realized alpha version for Win32 with dependencies.
*

Sources saved into cbmakegen/branches/dependencies svn repository on BerliOS (trunk has old release 0.1 now).
You can found binary for Win32 only on my project page on BerliOS (project URL see below).
No configs changed now.

Russian cbmakegen.mo included too.

For example, piece of makefile.gen:
Code: [Select]
..\..\..\.objs\plugins\contrib\cbmakegen\Variable.o: C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Variable.cpp
echo Compiling: C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Variable.cpp
mingw32-g++.exe -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DcbDEBUG  -IC:\Devel\codeblocks\src\include -IC:\Devel\codeblocks\src\include\wxscintilla\include -IC:\Devel\wxWidgets-2.8.4\include -IC:\Devel\wxWidgets-2.8.4\lib\gcc_dll\mswu -IC:\MinGW\include  -c C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Variable.cpp -o ..\..\..\.objs\plugins\contrib\cbmakegen\Variable.o

C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Rule.cpp: Rule.hpp

C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Makefile.cpp: Makefile.hpp

C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Makefile.hpp: Rule.hpp Variable.hpp

C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\cbmakefilecfg.cpp: cbmakefilecfg.h

C:\Devel\codeblocks\src\plugins\contrib\cbmakegen\Variable.cpp: Variable.hpp
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Vorl

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: cbMakefileGen plugin
« Reply #31 on: August 08, 2007, 07:36:05 pm »
It's great !
I'm going to test as soon as possible

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #32 on: August 09, 2007, 07:58:37 am »
Hmm, on Linux, I have no <projectname>.depend file and my plugin don't work.
And absolutely filenames , no good.
I would must think about it.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Vorl

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: cbMakefileGen plugin
« Reply #33 on: August 10, 2007, 10:33:44 pm »
At work I have linux and I think I have the .depend file (I will check monday). Are you sure your arent in custom makefile ?
I have still not test your plugin as importation is complicated at work and I'm not sure how to compile and install it.

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #34 on: August 17, 2007, 08:47:25 am »
Win32 plugin for new SDK version attached. No changes, recompiled only.


[attachment deleted by admin]
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #35 on: August 23, 2007, 01:50:04 pm »
New version released. Features:
 - Dependencies added to makefile if exists <projectname>.depend file.
 - cbmakegen.mo updated (for Russians only)

On BerliOS.de updated a source repository (SVN).
Added bin_Win32.zip with cbMakefileGen.cbplugin file and cbmakegen.mo.
See URL below.
Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #36 on: September 21, 2007, 12:59:32 pm »
New version released (0.3). Features:
 - Can saves makefile for all project targets, or active target only. Configurable.
 - cbmakegen.mo updated (for Russians only)

Alpha testing now. I do wait suggestions and bugreports.

On BerliOS.de updated a source repository (SVN) (branches/alltargets only).
Added "cbMakefileGenVer0_3_Win32.zip" with cbMakefileGen.cbplugin file. Added cbmakegen.mo for Russians only.
For downloads see URL below.
Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline poutsoklis

  • Single posting newcomer
  • *
  • Posts: 6
Re: cbMakefileGen plugin
« Reply #37 on: September 28, 2007, 11:12:36 am »
hi kisoft,

i installed v0.3 w/ CB nightly build 4472 on winxpsp2. my workspace includes projects that build static libraries and a project containing the app that uses these static libs (along with opengl) and builds the executable. i use the gcc compiler (v3.4.2 - mingw) and these projects are in c/c++. the app project has dependancies with the libs. when i choose to generate a makefile for a project, i get an error message ("C::B MakefileGen found errors, saves aborted"). did i forget to configure something in the plug-in?

thx in advance,
poutsoklis

[there are 10 kinds of people - those who understand binary and those who don't]

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #38 on: September 28, 2007, 12:27:01 pm »
i installed v0.3 w/ CB nightly build 4472 on winxpsp2. my workspace includes projects that build static libraries and a project containing the app that uses these static libs (along with opengl) and builds the executable. i use the gcc compiler (v3.4.2 - mingw) and these projects are in c/c++. the app project has dependancies with the libs. when i choose to generate a makefile for a project, i get an error message ("C::B MakefileGen found errors, saves aborted"). did i forget to configure something in the plug-in?
As usually plugin can't required to configure. Mainly you must to open project and choose required target.
You must see additional error message before ("C::B MakefileGen found errors, saves aborted").
If additional message is absent then you found bug.

Thank you for bugreport. I will investigate this problem.
Please, submit bugreport on BerliOS http://developer.berlios.de/bugs/?func=addbug&group_id=8744
Good Luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: cbMakefileGen plugin
« Reply #39 on: September 28, 2007, 04:14:12 pm »
Can't build plugin from SVN. Build process stops with message:
Code: [Select]
D:\GCC\CodeBlocksPlugins\MakefileGen\Makefile.cpp: In member function 'bool cbMGMakefile::SaveMakefile()':
D:\GCC\CodeBlocksPlugins\MakefileGen\Makefile.cpp:181: error: 'ctInvalid' was not declared in this scope

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #40 on: September 28, 2007, 04:44:33 pm »
Can't build plugin from SVN. Build process stops with message:
Code: [Select]
D:\GCC\CodeBlocksPlugins\MakefileGen\Makefile.cpp: In member function 'bool cbMGMakefile::SaveMakefile()':
D:\GCC\CodeBlocksPlugins\MakefileGen\Makefile.cpp:181: error: 'ctInvalid' was not declared in this scope
I update repository today. Fixed Makefile.cpp. This is temporary solution.
checkout repository: /branches/alltargets
trunk repository being content old version 0.2 now.
After will do release 0.3 version (I think it will ver. 0.4), trunk will update.
Thanks for bugreport!
Good Luck!
« Last Edit: September 28, 2007, 04:47:24 pm by kisoft »
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: cbMakefileGen plugin
« Reply #41 on: September 28, 2007, 05:01:29 pm »
Thanks. It compiles now

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9490
Re: cbMakefileGen plugin
« Reply #42 on: October 01, 2007, 02:25:50 pm »
It really seems to work - I tried today another time with another project and it worked from scratch. Well done. Hence one thing I am missing: The plugin does overwrite existing Makefile's without any warning. This is no good. I lost an old Makefile that way. :-( Any chance for an improvement accordingly?! ;-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #43 on: October 01, 2007, 03:06:40 pm »
It really seems to work - I tried today another time with another project and it worked from scratch. Well done. Hence one thing I am missing: The plugin does overwrite existing Makefile's without any warning. This is no good. I lost an old Makefile that way. :-( Any chance for an improvement accordingly?! ;-(

You should do configure the Overwrite option into Settings/Environment/cbMakefileGen dialog.
Overwrite is true by default, hmm. :(

Now I being changed default values to:
Code: [Select]
FileName: "Makefile.gen"
Overwrite: "false"

I will tests and do commit this changes to repository and binary distributive later.

I have idea for add an execution dialog for show options, error messages and other logs.
This dialog would content all options and filename of Makefile and an file existance flag.

Big sorry.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9490
Re: cbMakefileGen plugin
« Reply #44 on: October 02, 2007, 09:32:14 am »
You should do configure the Overwrite option into Settings/Environment/cbMakefileGen dialog.
Overwrite is true by default, hmm. :(
Oh - a config! Sorry - I missed that completely. Well if it's an option than it fine! Thanks! :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ