News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

cbMakefileGen plugin

Started by kisoft, June 22, 2007, 10:17:13 AM

Previous topic - Next topic

kisoft

Quote from: gd_on on October 26, 2007, 02:09:01 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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

stahta01

Patch that might help someone using C::B Svn.

Tim S


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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kisoft

Quote from: stahta01 on November 11, 2007, 08:39:12 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.

Quote from: stahta01 on November 11, 2007, 08:39:12 AM

-    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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

kisoft

Quote from: gd_on 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.
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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

phlox81

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?

kisoft

Quote from: phlox81 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?
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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

phlox81

Quote from: kisoft on November 23, 2007, 12:27:37 PM
Quote from: phlox81 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?
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.

kisoft

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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

phlox81

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:


kisoft

Quote from: phlox81 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 :)

Thanks!

Quote from: phlox81 on November 23, 2007, 02:40:29 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.

Quote from: phlox81 on November 23, 2007, 02:40:29 PM
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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

phlox81

Quote from: kisoft on November 23, 2007, 04:39:00 PM
Quote from: phlox81 on November 23, 2007, 02:40:29 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.

Quote from: kisoft on November 23, 2007, 04:39:00 PM
Quote from: phlox81 on November 23, 2007, 02:40:29 PM
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:

kisoft

Quote from: phlox81 on November 23, 2007, 08:08:08 PM
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.

Quote from: phlox81 on November 23, 2007, 02:40:29 PM
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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

kisoft

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:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]