Author Topic: wxsmith plugin, where is it?  (Read 2717 times)

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
wxsmith plugin, where is it?
« on: February 09, 2019, 10:36:54 pm »
Hi,

I'm running Peppermint 9 Linux. I have built codeblocks 17.12 from source I downloaded from sourceforge and successfully installed it on my system and have been using it ever since without issue. Lately, I have become interested in wxwidgets, but when I create a new project, there is no form wizard. If I select the radio button for wxsmith and hit the "next" button, I get "wxsmith plugin not loaded, cannot continue". What gives? Shouldn't wxsmith be included in the source or is there some other download I have to get?

Thanks,
JJ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11821
    • Travis build status
Re: wxsmith plugin, where is it?
« Reply #1 on: February 09, 2019, 11:33:08 pm »
You have to enable it at configure time see --help or the --with-contrib-plugins option.

Generally the best option is to just build packages. Your distro is debian based, so it should be relatively easy.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #2 on: February 10, 2019, 04:24:31 pm »
You have to enable it at configure time see --help or the --with-contrib-plugins option.

Generally the best option is to just build packages. Your distro is debian based, so it should be relatively easy.

Okay, I tried again using ./configure --with-contrib-plugins switch. A lot of checking takes place followed by the following error:

configure: error: Package requirements (hunspell) were not met

No package 'hunspell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables HUNSPELL_CFLAGS
and HUNSPELL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
« Last Edit: February 10, 2019, 04:41:05 pm by jjenson »

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #3 on: February 11, 2019, 12:22:55 am »
You have to enable it at configure time see --help or the --with-contrib-plugins option.

Generally the best option is to just build packages. Your distro is debian based, so it should be relatively easy.

Okay, I tried again using ./configure --with-contrib-plugins switch. A lot of checking takes place followed by the following error:

configure: error: Package requirements (hunspell) were not met

No package 'hunspell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables HUNSPELL_CFLAGS
and HUNSPELL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

IS anyone going to answer this?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6548
    • My Best Post
Re: wxsmith plugin, where is it?
« Reply #4 on: February 11, 2019, 01:16:07 am »
Quote
No package 'hunspell' found

Install the hunspell development package
« Last Edit: February 11, 2019, 01:59:48 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5220
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxsmith plugin, where is it?
« Reply #5 on: February 11, 2019, 02:39:24 am »
This post may help you.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6548
    • My Best Post
Re: wxsmith plugin, where is it?
« Reply #6 on: February 11, 2019, 02:56:09 am »
This post http://forums.codeblocks.org/index.php/topic,23096.0.html is more likely to help you than ollydbg post.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #7 on: February 11, 2019, 03:59:58 pm »
I built and installed hunspell and did the configure again.

It complained that I needed gamin.

I installed gamin

did the config again

it completed successfully. I ran make and i get the following:

collect2: error: ld returned 1 exit status
Makefile:838: recipe for target 'libcodeblocks.la' failed
make[3]: *** [libcodeblocks.la] Error 1
make[3]: Leaving directory '/home/JJ/Downloads/codeblocks-17.12/src/sdk'
Makefile:998: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/JJ/Downloads/codeblocks-17.12/src/sdk'
Makefile:527: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/JJ/Downloads/codeblocks-17.12/src'
Makefile:660: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


What now?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11821
    • Travis build status
Re: wxsmith plugin, where is it?
« Reply #8 on: February 11, 2019, 06:38:07 pm »
...
What now?
Post the actual error message. The part of the error you've posted is not enough.

Also I guess you've ignored my post, so I have to repeat it:

Generally the best option is to just build packages. Your distro is debian based, so it should be relatively easy.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #9 on: February 11, 2019, 07:22:37 pm »

Post the actual error message. The part of the error you've posted is not enough.

Also I guess you've ignored my post, so I have to repeat it:

Generally the best option is to just build packages. Your distro is debian based, so it should be relatively easy.

Oh, but I didn't ignore your post.

I've been building everything I could.

I built the hunspell package. The gamin package I didn't have to build; I just installed it.

After that it configured nicely, but then when I went to make it, I got what you just saw.

The dump is too big for me to post here; it's even too big to put in an attachment (217kb).

What is this error supposed to look like? I did a grep for "err" ignoring case and all I got was what I posted. There are a lot of undefined references; as if it just can't find something.

Some of them are "undefined reference to" wxTrap(), wxTranslations(), wxBaseArrayInt(), wxCommandEvent(), etc.
« Last Edit: February 11, 2019, 07:32:48 pm by jjenson »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11821
    • Travis build status
Re: wxsmith plugin, where is it?
« Reply #10 on: February 11, 2019, 07:39:03 pm »
Oh, but I didn't ignore your post.

I've been building everything I could.
I see. You have not understood it.

Here is a link you could use: https://www.debian.org/doc/manuals/maint-guide/build.en.html

But I'm not sure you'll be able to clean up your messed up system...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #11 on: February 11, 2019, 08:40:50 pm »

But I'm not sure you'll be able to clean up your messed up system...

How is my system messed up?

When I do a dpkg-buildpackage -us -uc I get the following:

dpkg-buildpackage: info: source package codeblocks
dpkg-buildpackage: info: source version 17.12
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jens Lody <jens@odeblocks.org>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build codeblocks-17.12
dpkg-checkbuilddeps: error: Unmet build dependencies: cdbs libbz2-dev libhunspell-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
« Last Edit: February 11, 2019, 08:48:26 pm by jjenson »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11821
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #13 on: February 11, 2019, 10:40:31 pm »
I used mk-build-deps debian/control

it generated ./codeblocks-build-deps_17.12_all.deb

This package is supposed to install all dependencies. So I installed it.

After that I ran: sudo dpkg-buildpackage -us -uc

it rolled for over 12 minutes and settled in with the errors:

dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libwx_gtk2u_core-3.1.so.2 (used by debian/codeblocks/usr/bin/cb_share_config)
Hint: check if the library actually comes from a package.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/codeblocks.substvars debian/codeblocks/usr/lib/codeblocks/plugins/libdefaultmimehandler.so debian/codeblocks/usr/lib/codeblocks/plugins/libabbreviations.so debian/codeblocks/usr/lib/codeblocks/plugins/libopenfileslist.so debian/codeblocks/usr/lib/codeblocks/plugins/libautosave.so debian/codeblocks/usr/lib/codeblocks/plugins/liboccurrenceshighlighting.so debian/codeblocks/usr/lib/codeblocks/plugins/libcodecompletion.so debian/codeblocks/usr/lib/codeblocks/plugins/libtodo.so debian/codeblocks/usr/lib/codeblocks/plugins/libprojectsimporter.so debian/codeblocks/usr/lib/codeblocks/plugins/libscriptedwizard.so debian/codeblocks/usr/lib/codeblocks/plugins/libclasswizard.so debian/codeblocks/usr/lib/codeblocks/plugins/libdebugger.so debian/codeblocks/usr/lib/codeblocks/plugins/libAstyle.so debian/codeblocks/usr/lib/codeblocks/plugins/libcompiler.so debian/codeblocks/usr/bin/cb_share_config debian/codeblocks/usr/bin/cb_console_runner debian/codeblocks/usr/bin/codeblocks returned exit code 255
dh_shlibdeps: Aborting due to earlier error
/usr/share/cdbs/1/rules/debhelper.mk:335: recipe for target 'binary-predeb-IMPL/codeblocks' failed
make: *** [binary-predeb-IMPL/codeblocks] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I'm not sure what to make of this.  Can you help?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6548
    • My Best Post
Re: wxsmith plugin, where is it?
« Reply #14 on: February 11, 2019, 10:49:52 pm »
You need to uninstall the manually installed libraries this build method complains about.

This is what I had to do when I tried this method about 2 to 4 years, ago.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org