Author Topic: cbMakefileGen plugin  (Read 165542 times)

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #60 on: October 26, 2007, 02:18:38 pm »
I think I have found a key for the problem.
I have 3 different fortran compilers on my PC : g77, g95 and gfortran.
After loading a fortran project, I open Project/Build Options.
...
You'll find effectively in my Fortran project (Motor2.cbp) I sent you a few days ago, that both "<Option compiler=" lines are not the same. First one contains gnu_g95_compiler, and the second one contains gnu_g77_compiler. Normally it is this second one I wanted to use here. The first one should be probably ignored !

I will think about. I saw 2 compilers into Motor2.cbp. I being used this project like a template for testing.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: cbMakefileGen plugin
« Reply #61 on: November 11, 2007, 08:39:12 am »
Patch that might help someone using C::B Svn.

Tim S

Code
Index: cbMakefileGen.cpp
===================================================================
--- cbMakefileGen.cpp (revision 17)
+++ cbMakefileGen.cpp (working copy)
@@ -6,7 +6,7 @@
 #include "cbmakefilecfg.h"
 #include <cbproject.h>
 #include <projectmanager.h>
-#include <messagemanager.h>
+#include <logmanager.h>
 #include <configmanager.h>
 
 int MakefileGenId = wxNewId();
@@ -120,7 +120,7 @@
         msg = _("You need to open a project\nbefore using the plugin!\n"
                 "C::B MakefileGen could not complete the operation.");
         cbMessageBox(msg, _("Error"), wxICON_ERROR | wxOK, Manager::Get()->GetAppWindow());
-        Manager::Get()->GetMessageManager()->DebugLog(msg);
+        Manager::Get()->GetLogManager()->DebugLog(msg);
         return;
     }
 
Index: Makefile.cpp
===================================================================
--- Makefile.cpp (revision 17)
+++ Makefile.cpp (working copy)
@@ -2,7 +2,7 @@
 #include <wx/textfile.h>
 #include "Makefile.hpp"
 #include <globals.h>
-#include <messagemanager.h>
+#include <logmanager.h>
 #include <compiler.h>
 #include <compilerfactory.h>
 #include <macrosmanager.h>
@@ -104,7 +104,7 @@
         wxString l_Msg = _( "Can't found an active target!\n"
                             "C::B MakefileGen could not complete the operation." );
         cbMessageBox( l_Msg, _( "Error" ), wxICON_ERROR | wxOK, (wxWindow *)Manager::Get()->GetAppWindow() );
-        Manager::Get()->GetMessageManager()->DebugLog( l_Msg );
+        Manager::Get()->GetLogManager()->DebugLog( l_Msg );
         return l_Ret;
     }
 
@@ -178,7 +178,7 @@
     l_Rule.SetPrerequisites( objs );
 
     wxString kind_of_output = _T( "unknown" );
-    CommandType ct = ctInvalid; // get rid of compiler warning
+    CommandType ct = ctCount; // ctInvalid; // get rid of compiler warning
     switch ( l_pTarget->GetTargetType() )
     {
     case ttConsoleOnly:
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #62 on: November 12, 2007, 08:55:39 am »
Patch that might help someone using C::B Svn.

Tim S

Thank you for patch. I understand your idea. This piece of code was copied from other plugins.

Code
-    CommandType ct = ctInvalid; // get rid of compiler warning
+    CommandType ct = ctCount; // ctInvalid; // get rid of compiler warning

I think about it. This piece of code must be review.

I does migrate to a new computer and I have a lot job now. I am very busy now.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline gd_on

  • Lives here!
  • ****
  • Posts: 800
Re: cbMakefileGen plugin
« Reply #63 on: November 15, 2007, 04:07:36 pm »
CbMakefileGen does not work (install) with nightly 4630 (Windows 2000). When C::B is started I have a message telling me that the dll was compiled with an old SDK.

Hope you'll find some time to update the windows binary on berlios.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #64 on: November 15, 2007, 04:56:02 pm »
CbMakefileGen does not work (install) with nightly 4630 (Windows 2000). When C::B is started I have a message telling me that the dll was compiled with an old SDK.

Hope you'll find some time to update the windows binary on berlios.
I released cbMakefileGen ver 0.3.11.11. Binary and sources updated.
History:
 - changed messagemanager on logmanager (thanks stahta01)
 - linker cmd formed for known types now

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: cbMakefileGen plugin
« Reply #65 on: November 23, 2007, 11:43:48 am »
I'm using the nightly build from 26. Oct. and the plugin isn't running.
C::B isn't loading it at startup, and installation also fails.

Does this plugin run with this nightly?

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #66 on: November 23, 2007, 12:27:37 pm »
I'm using the nightly build from 26. Oct. and the plugin isn't running.
C::B isn't loading it at startup, and installation also fails.

Does this plugin run with this nightly?
C::B 26 Oct. == rev. 4564. You can't used my plugin 0.3.11.11 (0.3.11.11 can used with C::B rev. 4630+ only).
You can try my plugin ver.0.3.11.10 or more early versions only.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: cbMakefileGen plugin
« Reply #67 on: November 23, 2007, 01:48:48 pm »
I'm using the nightly build from 26. Oct. and the plugin isn't running.
C::B isn't loading it at startup, and installation also fails.

Does this plugin run with this nightly?
C::B 26 Oct. == rev. 4564. You can't used my plugin 0.3.11.11 (0.3.11.11 can used with C::B rev. 4630+ only).
You can try my plugin ver.0.3.11.10 or more early versions only.

Good luck!

cbMakefileGenVer_0_3_11_10_Win32.rar
This file is not anymore at berlios, I getting a file not found error, when I'm trying to download it.

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #68 on: November 23, 2007, 02:05:36 pm »
Ok. I does delete this file, I think.
I does update binary file, try again, please.
bMakefileGenVer_0_3_11_10_Win32.rar

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: cbMakefileGen plugin
« Reply #69 on: November 23, 2007, 02:40:29 pm »
Ok, just some feedback:

I'm planing to use your plugin to export makefiles in Windows for Linux.
Good tool :)
Some feedback:
So, would be nice if I could choose the platform somewhere, or make some config dialog, that would be nice.
Also I tend to use / instead of \ in programming (but C::B uses \ for includes under Windows -.-), but thats an easy replace call.

And its I do, you do, he does  ;) :lol:


Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #70 on: November 23, 2007, 04:39:00 pm »
Ok, just some feedback:

I'm planing to use your plugin to export makefiles in Windows for Linux.
Good tool :)

Thanks!

Some feedback:
So, would be nice if I could choose the platform somewhere, or make some config dialog, that would be nice.

CommandLine for saved makefile I load from C::B. Can I get linux commandline from Windows? I will look to C::B sources.

Also I tend to use / instead of \ in programming (but C::B uses \ for includes under Windows -.-), but thats an easy replace call.

I will look.

I have a lot work. I will investigate later.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: cbMakefileGen plugin
« Reply #71 on: November 23, 2007, 08:08:08 pm »
Some feedback:
So, would be nice if I could choose the platform somewhere, or make some config dialog, that would be nice.

CommandLine for saved makefile I load from C::B. Can I get linux commandline from Windows? I will look to C::B sources.
Oh, I thought the plugin would generate this.
That also explains why you specifiy CPP but don't use it within the makefile.

Also I tend to use / instead of \ in programming (but C::B uses \ for includes under Windows -.-), but thats an easy replace call.

I will look.
I have a lot work. I will investigate later.

Well, most things I could handle now with search & replace, that could even be automated, if I need it more often.
But a little bit of configuration possiblities would be great. :)

Lot of work? me too :lol:

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #72 on: November 26, 2007, 08:12:03 am »
Oh, I thought the plugin would generate this.
That also explains why you specifiy CPP but don't use it within the makefile.

Yes, you right.
My plugin is a simple makefile generator only. You can use other generators for more seriously functions.
You can use generated makefile for the base, and being modified this file as your wish.

Well, most things I could handle now with search & replace, that could even be automated, if I need it more often.
But a little bit of configuration possiblities would be great. :)

I think now. The solve will going to my head with times.
As the saying goes: look before you leap.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline gd_on

  • Lives here!
  • ****
  • Posts: 800
Re: cbMakefileGen plugin
« Reply #73 on: December 02, 2007, 12:50:27 pm »
Hi,
I wanted to compile cbMakefileGen plugin to introduce it in my whole workspace build of C::B.
But I have an error during compilation : messagemanager.h is missing (and 2 other errors).
Looking though this post, it seems that it has been replaced by logmanager.h and some other differences ....
I have updated the sources through SVN, but it seems that those changes have not been introduced there.
You said that stahta01 patches have been introduced, but i don't see that in the souces.
Are you sure that sources on berlios have been all correctly updated ?

Thanks for your work.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: cbMakefileGen plugin
« Reply #74 on: December 03, 2007, 06:34:42 am »
You must use: /branches/alltargets (/trunk - old version and not actual now)
Ok, I will doing merge alltargets to trunk today.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen