News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

AutoVersioning Plugin

Started by JGM, June 27, 2007, 08:18:25 PM

Previous topic - Next topic

PsYhLo

#45
ok i compile it but it wouldn't start
Ubuntu 7.04 my own compile version of codeblocks witg wx2.8.4

Edit:
ERROR: /home/psyhlo/.codeblocks/share/codeblocks/plugins/autoversioning.so: not loaded (missing symbols?)

[attachment deleted by admin]
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

JGM

Quote from: PsYhLo on July 20, 2007, 06:31:59 PM

ok i compile it but it wouldn't start

Ubuntu 7.04 my own compile version of codeblocks witg wx2.8.4



Edit:

ERROR: /home/psyhlo/.codeblocks/share/codeblocks/plugins/autoversioning.so: not loaded (missing symbols?)




Thats the problem that I reported on the first post in the unix project. This is the text that I wrote.



Quote from: JGM on June 27, 2007, 08:18:25 PM

Edit: Some little mistake in the unix project of autoversioning-contrib.7z on the post-build steps.



This line: zip -j9 ..\..\..\devel\share\codeblocks\autoversioning.zip manifest.xml



should read: zip -j9 ../../../devel/share/codeblocks/autoversioning.zip manifest.xml



thats all.



I have already tested the plugin on ubuntu and it works fine. The tool tips are so smooth...  :D






The problem is that no autoversioning.zip with the manifest is been copied to the codeblocks directory. After changing to the correct path described above it will work just fine. Sorry for that mistake on mines.



That is if you are using the autoversioning-contrib.7z file that has the unix project. If not, then maybe you are running a version of codeblocks that is not compatible with the sdk that you are compiling to. I attached a screen shot of the plugin working on ubuntu.

[attachment deleted by admin]

PsYhLo

i compile your plugin after compilation of codeblocks rev 4281
and installed with Manage Plugins
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

JGM

#48
Quote from: PsYhLo on July 21, 2007, 09:36:51 AM
i compile your plugin after compilation of codeblocks rev 4281
and installed with Manage Plugins

How do you compiled codeblocks?
./bootstrap
./configure
./make
./make install

or  :?:

using a compiled codeblocks to compile the sources using the cobeblocks-unix project :?:

I hadn't created a Makefile.am and the first method will not work (only project files work for now).

Also, maybe can be that your $(#CB) global variable is pointing to a directory with an old compilation that is not actual with the version of codeblocks that you are using (in the case that you are using the project file, and it should be the case since you installed it from "Manage Plugins"). So the libcodeblocks.so that you're compiling to is different from the one used by codeblocks. And thats the error while loading symbols.

But, I'm just making conclusions, the problem can be another one. :?
I compiled it again today with the actual revision 4285 and is working fine.

Steps for compiling plugins:

  1. With a precompiled version of codeblocks open the CodeBlocks-unix.cbp and compile it.
  2. Set the global variable "CB" to point the /trunk/src folder of your svn download.
  3. Then open the ContribPlugins-unix.workspace and hit "Build Workspace" from the "Build menu"
  4. Run the /trunk/src/update script that will create a folder named output with the correct binaries.
  5. And for contributed plugins like autoversioning download the correct sources, in this case AutoVersioning.7z
  6. Open the project file and hit the build button.

Important points:

  1. Install the plugin to the codeblocks that you just compiled. (else symbols error)
  2. Set the "CB"  global variable to point to the correct compilation and sources. (else symbols error)

PsYhLo

Quote from: JGM on July 21, 2007, 08:27:55 PM
How do you compiled codeblocks?
./bootstrap
./configure
./make
./make install
this is my way i have only one codeblocks source dir so it is compiled with right sdk version
also i used this ./configure --prefix=/usr --with-contrib-plugins=all instead of ./configure
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

darthdespotism

I may be wrong but is it not --with-contrib=all (without plugin)?

PsYhLo

type ./configure --help and will see ;)
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

JGM

#52
Quote from: PsYhLo on July 21, 2007, 08:49:13 PM
this is my way i have only one codeblocks source dir so it is compiled with right sdk version
also i used this ./configure --prefix=/usr --with-contrib-plugins=all instead of ./configure

Ok, I made it like you except that in the prefix parameter I put /etc/codeblocks, but that was my choice. After compiling the plugin I got the same problem that you had.

I saw some errors in the linux project file, (what a moron I'm) well I just corrected the project file using the default unix template of codeblocks from the plugin project. Now the plugin loaded fine after compilation with the new settings!

Now you have to set the $(#CB) to point /usr/include/codeblocks or /usr/local/include/codeblocks, I think that for you is the first path.

Well here is the linux project file attached and corrected. (try it out and let me know) :)

[attachment deleted by admin]

PsYhLo

it works!
even compile process complete without any warning

it is such a good plug-in 10x keep the good work
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

JGM

Quote from: PsYhLo on July 22, 2007, 07:54:30 PM
it works!
even compile process complete without any warning

it is such a good plug-in 10x keep the good work

Thanks! :D Is for me a pleasure to know that is useful

I will add now the option to generate a CHANGES file every time that a commit changes is executed.

Quote from: JGM on July 18, 2007, 04:21:10 PM


Changes File

v0.3.4a
  - blah blah
  - blah blah

v0.3.3a
  - Some fixes
  - new features


Like I wrote in that post.

I think this will be useful after all, for us to keep our work organized more easily.

Well I will start working on this, it should be simple, I think :?

JaredR26

I cannot get this to compile.  I have MinGW 5.1.3, July 22/23 nightly build of CodeBlocks, wxWidgets 2.8.4, WinXP SP2.

wxWidgets has been compiled, CodeBlocks has been compiled.

It cannot find tinyxml:

:: === AutoVersioning, default ===
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:8: tinyxml/tinyxml.h: No such file or directory
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:: In function `bool QuerySvn(const wxString&, wxString&, wxString&)':
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: `TiXmlDocument' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: expected `;' before "doc"
src\src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:30: error: `doc' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `TiXmlElement' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `e' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:39: error: `d' undeclared (first use this function)
:: === Build finished: 8 errors, 0 warnings ===

TDragon

You also need to check out the Code::Blocks source from SVN and build it.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

JaredR26

I did, unless I missed something, still wont work.  Checked out the code from the SVN, ran the nightly pre-compiled codeblocks and compiled the SVN source.

JGM

Quote from: JaredR26 on July 24, 2007, 04:06:28 AM
It cannot find tinyxml:

:: === AutoVersioning, default ===
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:8: tinyxml/tinyxml.h: No such file or directory
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:: In function `bool QuerySvn(const wxString&, wxString&, wxString&)':
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: `TiXmlDocument' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: expected `;' before "doc"
src\src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:30: error: `doc' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `TiXmlElement' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `e' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:39: error: `d' undeclared (first use this function)
:: === Build finished: 8 errors, 0 warnings ===


Does the $(#CB) Global variable is pointing to "codeblocks-head\trunk\src"? Else try changing this "$(#CB.INCLUDE)" to "$(#CB)\include"

If the problem keeps on, then try to specified all the steps that you made to compile the plugin, and also the file structure (the routes for the codeblocks sources). Some one else had the same problem I think, what could be :? :?:

JaredR26

Quote from: JGM on July 24, 2007, 08:04:27 AM
Quote from: JaredR26 on July 24, 2007, 04:06:28 AM
It cannot find tinyxml:

:: === AutoVersioning, default ===
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:8: tinyxml/tinyxml.h: No such file or directory
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:: In function `bool QuerySvn(const wxString&, wxString&, wxString&)':
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: `TiXmlDocument' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:29: error: expected `;' before "doc"
src\src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:30: error: `doc' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `TiXmlElement' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:35: error: `e' undeclared (first use this function)
src\plugins\contrib\AutoVersioning\avSvnRevision.cpp:39: error: `d' undeclared (first use this function)
:: === Build finished: 8 errors, 0 warnings ===


Does the $(#CB) Global variable is pointing to "codeblocks-head\trunk\src"? Else try changing this "$(#CB.INCLUDE)" to "$(#CB)\include"

My file structure is:
C:\Installed\CodeBlocks\
and inside that is src\, which contains everything i get from the SVN.
So the CodeBlocks source is C:\Installed\CodeBlocks\src\src and the autoversioning plugin is in that + \plugins\contrib\AutoVersioning

I tried both the AutoVersioning and the autoversioning-contrib files, both give the same error.

my cb global variable points to C:\Installed\CodeBlocks\src, but I tried pointing it to C:\Installed\CodeBlocks\src\src, and pointing the include variable to C:\Installed\CodeBlocks\src\src\include

I even tried defining a tinyxml variable pointing directly to the tinyxml folder containing the .h file.

Quote
If the problem keeps on, then try to specified all the steps that you made to compile the plugin, and also the file structure (the routes for the codeblocks sources). Some one else had the same problem I think, what could be :? :?:

I added this to the workspace file:
      <Project filename="plugins\contrib\AutoVersioning\AutoVersioning-Windows.cbp" />
and added the folder to that location (contrib).  I tried this with AutoVersioning and autoversioning-contrib.
And loaded up code blocks.  Tried compiling all workspaces and the autoversioning itself.  Code::Blocks itself and wxWidgets have been compiled successfully(0 errors).