Page 1 of 3

ANN : VersionManager Plugin

Posted: Mon Dec 29, 2008 7:56 pm
by jfouche

Here is the first beta of the VersionManager plugin.
- You can manage your project version by manualy enter version informations
- You can deliver a new version
- You can also get the SVN revision automaticaly
- Lot's of options are available (variables name, namespace, use SVN, SVN path)

Re: ANN : VersionManager Plugin

Posted: Wed Mar 04, 2009 6:09 pm
by RJP Computing
This looks cool, but how do you build? It is giving this error:

Code: Select all

D:/devel/progs/VersionManager/versionmanager.cpp:7:24: error: vm_version.h: No such file or directory
D:/devel/progs/VersionManager/versionmanager.cpp: In function 'PluginInfo GetPluginInfo()':
D:/devel/progs/VersionManager/versionmanager.cpp:187: error: 'version' was not declared in this scope
I got the source from svn. Is that not what you intended?

Re: ANN : VersionManager Plugin

Posted: Wed Mar 04, 2009 9:41 pm
by jfouche
Hi Ryan

Oups, I agree, there is a mistake, the vm_version.h is missing in the repository.
I will add it tonight.

here is the content :

Code: Select all


namespace version {

static const int   MAJOR = 0;
static const int   MINOR = 1;
static const int   RELEASE = 6;
static const int   BUILD = 0;
static const char* STATUS = "Beta";

static const char* VERSION = " Beta";

}; // namespace version

Enjoy, and give me your feedback if you want

Re: ANN : VersionManager Plugin

Posted: Wed Mar 04, 2009 10:15 pm
by RJP Computing
Alright I got it to build. Looks great and I really would like this feature in CodeLite.

Suggestion: Can you make it so that it stores the configuration outside the *.project file. I think this could be a setting. The reason is that I use Premake and it generates the project files for me and erases the UserData settings. Thoughts?

Re: ANN : VersionManager Plugin

Posted: Wed Mar 04, 2009 10:49 pm
by jfouche

Thanks a lot.
Let me think a little bit about your request, I need to find a (good) way to do this. If you have an idea, you can help me.
FYI : I commited vm_version.h

The only solution i found for the moment is to create a <project>.versionmanager file. If this file exists, versionmanager will use it, either, it will use the project file and its user data. Moreover, I have to add another message box to ask if the user want to use project file or external file to store informations. What do you think ?

Re: ANN : VersionManager Plugin

Posted: Sat Mar 07, 2009 5:38 pm
by jfouche

Re: ANN : VersionManager Plugin

Posted: Tue Sep 01, 2009 8:12 pm
by ajaywazir
Can you post a compiled windows DLL?

the reason to ask is that I cannot compile the same on windows XP
I use codelite bundled with mingw and wxwidgets installations.
I downloaded codelite source code and copied all required h files to project directory.
Finally I am now stuck with /wx/wxsqlite3.h missing.
After searching internet, all files compiled.
Now linker has a problem.
See the error log
Please help

Code: Select all

g++ -c  "C:/Download/temp/versionmanager-read-only/src/versionmanager.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.7\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.7\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -O2 -D__WX__ -DWXUSINGDLL -D_WIN32_WINNT=0x501 -DASTYLE_LIB  -o ./WinReleaseUnicode/versionmanager.o "-I." "-I/Interfaces" "-I/CodeLite" "-I/Plugin" "-I/sqlite3" "-I/sdk/wxsqlite3/include" "-I." 

g++ -c  "C:/Download/temp/versionmanager-read-only/src/vm_gui.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.7\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.7\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -O2 -D__WX__ -DWXUSINGDLL -D_WIN32_WINNT=0x501 -DASTYLE_LIB  -o ./WinReleaseUnicode/vm_gui.o "-I." "-I/Interfaces" "-I/CodeLite" "-I/Plugin" "-I/sqlite3" "-I/sdk/wxsqlite3/include" "-I." 

g++ -c  "C:/Download/temp/versionmanager-read-only/src/vm_manager.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.7\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.7\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -O2 -D__WX__ -DWXUSINGDLL -D_WIN32_WINNT=0x501 -DASTYLE_LIB  -o ./WinReleaseUnicode/vm_manager.o "-I." "-I/Interfaces" "-I/CodeLite" "-I/Plugin" "-I/sqlite3" "-I/sdk/wxsqlite3/include" "-I." 

g++ -c  "C:/Download/temp/versionmanager-read-only/src/svn_cmd.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.7\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.7\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -O2 -D__WX__ -DWXUSINGDLL -D_WIN32_WINNT=0x501 -DASTYLE_LIB  -o ./WinReleaseUnicode/svn_cmd.o "-I." "-I/Interfaces" "-I/CodeLite" "-I/Plugin" "-I/sqlite3" "-I/sdk/wxsqlite3/include" "-I." 

g++ -shared -fPIC -o WinReleaseUnicode/VersionManager.dll ./WinReleaseUnicode/versionmanager.o ./WinReleaseUnicode/vm_gui.o ./WinReleaseUnicode/vm_manager.o ./WinReleaseUnicode/svn_cmd.o  "-L/lib/gcc_lib"  -lplugin_sdku -lCodeLiteu -lwxsqlite3u -lsqlite3 -lwxmsw28u  -O2  -mthreads -LC:\wxWidgets-2.8.7\lib\gcc_dll -lwxmsw28u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 

C:\MinGW-3.4.5\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lplugin_sdku
collect2: ld returned 1 exit status
mingw32-make.exe: *** [WinReleaseUnicode/VersionManager.dll] Error 1

Re: ANN : VersionManager Plugin

Posted: Wed Sep 02, 2009 3:54 pm
by jfouche

Thanks for your interest. I think I can't provide you a binary, because I don't use the same wxWidgets version as the one provided with CodeLite installation, so it will not be compatible.

Your problem is that you (probably) did not compile CodeLite yourself : you need to compile the plugin_sdk and CodeLite libraries.
Moreover, you forgot to define the cl environment variable, which must point on you CodeLite sources directory.
Have a try and let me know if you succed or not.
If you have too much difficulties, I can compile it for wxWidgets 2.8.7 during next week end.

Re: ANN : VersionManager Plugin

Posted: Fri Sep 04, 2009 7:17 pm
by eranif
Hi Jeremie!

In the coming release of codelite, it will be built against wx2.8.10 on Windows (and against the distro's default on Linux) and the bundle package will include wx2.8.10 precompiled - so maybe it will make your life easier to provide binaries to people who needs them :)


Re: ANN : VersionManager Plugin

Posted: Mon Sep 14, 2009 7:34 pm
by jfouche
A DLL for Windows is available for download on the web site.
Everybody can have a look, without spending some time trying to compile it.
Enjoy, feedback is welcome.