News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to build the wxsmith's plugin in the linux?

Started by hjy82919, April 27, 2008, 03:10:45 PM

Previous topic - Next topic

hjy82919

      Hi, I try to build the wxsmith's plugin in the linux, but there are some errors, so who can tell me where I can get the file named "wxsmith.cbplugin" ? 3Q ! My email is hjy82919@163.com

mhehman

#1
It doesn't look like there's a .cbplugin file anywhere to add it separately.  I was able to get it to build and install by installing the "devel" package for wxGTK2.8 in my package manager and then running make and make install in [source directory]/src/contrib/wxSmith

Once I did that, it added libwxsmith.la and libwxsmith.so to /usr/local/share/codeblocks/plugins. I still had to jump through that extra hoop with all the dependencies installed, and the binary package in my distro's repository didn't include wxSmith either.  Bug report, maybe?

Biplab

There are two ways to do so.

1. Configure as-

./configure --enable-contrib-plugins=wxsmith

Then use make and make install

2. Open the Contrib-plugins.workspace file with C::B and then build wxSmith.
Be a part of the solution, not a part of the problem.

wmaxfield


  When I opened the wsmith project in codeblocks and told it to build, it said it could not find 'ltxml'

  I'm assuming this is an xml library that is needed to be added.  Unfortunately, I haven't found the library or where to get it.   

  Help?

wmaxfield

  ubuntu linux, terminal window, using ./bootstrap ./configure make make install for codeblocks

  I did the C::B make clean then make again with the configure --enable-contrib-plugins=wxsmith then make install. codeblocks runs fine

  I then changed into src/contrib/plugins/wxsmith  and did a make;make install

  now codeblocks says the wxsmith plugin was not loaded because the sdk was wrong.  This is the sdk that came with 8.02.  Is the sdk really wrong?

Jenna

If you run "./configure --with-contrib-plugins=wxsmith" (I recommend to build all contrib-plugins) and then do a "make" and "make install", wxsmith is build and installed automatically.
You don't have to build wxsmith explicitely.

To test your configuration, you can use "--prefix="" to create a codeblocks directory-tree to test it and avoid conflicts with an older installation.

In "<codeblocks_test_dir>" you can type "bin/codeblocks" to start C::B with the newly build libs and plugins.


wmaxfield

  THANKS!!

  I did a make clean, and then a make and a make install after the configuration.  That fixed the problem.  wxsmith is indeed included.   I'm assuming that since I didn't do a make clean before and that is what confused the build process.

   Still, loading wxsmith-unix.cbp in C::B does not build.  It cannot find -ltxml during the

Linking dynamic library: ../../../devel/share/codeblocks/plugins/libwxsmith.so
   
step.

  Do anyone know how to fix that problem?

Jenna

#7
Its the tinyXML-library.
You can get it when you build "CodeBlocks-unix.cbp" at first.

It should be in the right-place to be found by "wxsmith-unix.cbp" then.

wmaxfield

 Thanks!  That appeared to work.  It only compiles one file, though, even after a clean (wxsmithpluginregistrants.cpp)
 
  However, it at least builds part of the project for now without error.