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

linux : testing a generic plugin

Started by LETARTARE, October 30, 2017, 05:13:37 PM

Previous topic - Next topic

LETARTARE

I am new with LInux !!
I started with Linux (see my signature), with cb-svn11210, wxWidgets-2.8 (ppa:dmoore) , g++-5.4.0.

I try to create a blank generic plugin : 'test.cbp'.  The construction of the target 'default' is correct.
During installation, I get the following error : see picture 'error11210_testplug.png'
I checked the contents of 'test.cblugin'  which contains -> 'libtest.so' and 'test.zip (which contains' manifest.xml').
What is curious is the indication 'File 'test.so' not found', instead of  'File 'libtest.so' not found' ?

To check, I built the same plugin on Vista with the same conditions (cb-svn11210, wxWidgets-2.8, TDM-GCC 4.7.1) and I can install without problem.

Anyone have an idea ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

LETARTARE

thank you for your interest in this problem.

I rename the library 'libtest.so' => 'test.so'. The compilation is correct, but there is another error to load.
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

stahta01

Quote from: LETARTARE on October 30, 2017, 07:07:31 PM
thank you for your interest in this problem.

I rename the library 'libtest.so' => 'test.so'. The compilation is correct, but there is another error to load.

Did you edit the project file as I said or did you just rename the file?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

LETARTARE

I use: 'Project->Properties->Build Target->default' and 'Output filename = test.so' by unchecking 'Auto-generate filename prefix'.
I also corrected 'Build Options->default->PostBuild steps'  for change 'libtest.so'  => 'test.so'.
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Jenna

First: this is clearly a bug in my opinion.
The wizard should not use the prefix, neither in generating the lib, nor in the post-build steps.
Or use it on both places, but this would lead to different behaviour on Windows and Linux and more changes (in the code would be needed). And this should be done by the wizard also, because the project should work as it is.
Did you check the manifest.xml ?
I played with it and changed the plugin-name from "test" to "libtest", and that breaks loading the plugin.
If I just do your changes (output filename and post-build steps) it works as expected.