Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

BETA - Image Editor plugin

<< < (9/20) > >>

Jenna:
You should install libwxgtk2.8-dev, this will fetch all other needed packages, except for wx-common which includes wx-config.
After installing wx-common (and libwxgtk2.8-dev), you can create a wxwidgets example with the wizard and see how wx-config can be used.

seb_seb0:
Thank you for the tip !
I have found another solution, using "wx-config" in the command line (copied from Code::Blocks project).

The status is:
  - I have sucessfully compiled Code::Blocks (or I should say, no errors reported). I have not created the "output" directory yet, only "devel"
  - I have successfully compiled my plugin (yeah !!) with one caveat: wxDragImage is deactivated using #if #endif, I have to find another way compatible with wxGTK
    And I cannot load the plugin in code::blocks: I get the error message "this usually happens when plugin & application are built using different versions of SDK", or something like that

Solution I plan to apply:
  - finish the compilation and installation of Code::Blocks (find equivalent of "update.bat" on linux - it is certainly written somewhere on the wiki)
  - use the compiled codeblocks to load my plugin.

Or I may have done something very wrong.

Sebastien

PS: I discovered that linking with wxmsw lib does not work on linux :-)
PS2: I have installed codeblocks 10.05 using the debian packages provided by jens.

ollydbg:

--- Quote from: seb_seb0 on July 12, 2010, 10:34:33 pm ---PS: 1st impression: it is a lot faster than on Vista (same laptop...) Code completions is much more reactive, load time of the codeblocks project took only a few seconds (against 30 seconds approximately on Vista). Do you know why there are so much differences ?

--- End quote ---
I have a similar experience about the parsing time of CodeCompletion. In the same notebook, Windows Vista is much slower than windows XP. To load the codeblocks.cbp, in Vista, it will take more than 1 minutes, but in XP, it is only 20 seconds. I'm not sure why, but surely XP is faster than Vista. Vista is too "bloat". :D

I have never used any linux like OS though.

Jenna:
The equivalent to update.bat is update.
On a console go to the directory, where the main project-file is located and run ./update.
To start your new C::B you can run it through C::B or call the wrapper-script output/run.sh, using the new executable will not work directly.

If you want, I can create a patch tht uses your plugin from inside the contrib-plugins folder and also adds it to the automake system, so you can use the "normal" linux way with ./bootstrap; ./configure [...]; make; sudo make install.
You can use automake to create a test-version of C::B in another folder than the normal C::B is by using a different --prefix when running ./configure (I do this below my homefolder and have several working versions of C::B simultaneously)

seb_seb0:
Hello,

there are some progress:
  - I have found the "update" script and ran it. The output directory was created, as expected
  - I cannot run codeblocks from output (using "./codeblocks" command line), it complains about "libwxscintilla.so cannot be found".
    Probably a PATH equivalent not set correctly. I will try your tip regarding "--prefix" and look around on Internet for more Linux information
   
    Thank you for your proposal for doing a patch using my plugin: I prefer to find the solution to my problem, this is the best way to learn.

 On the good news :
   - I have solved the problem with wxDragImage. Now the plugin compiles without #if #endif on wxGTK
   - I have commited a XPMEditor_unix.cbp project file on the SVN (using SVN command line on Ubuntu !)
   - I have found a way to create an "Images" virtual folder in the project manager (thanks to Morten for pointing me in the good direction. I just had to look in Code::Blocks sources how it was done).
   - I have updated the code when saving and opening a file: now Image handlers are handled dynamically, this is not anymore a stupid algorithm based on hardcoded file extensions alone. This is not yet complete, but in good way.


And now I have to go to sleep. Good night !

Sébastien

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version