News:

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

Main Menu

MathPlot Plug-in will not install

Started by mechmon, November 16, 2011, 03:16:40 AM

Previous topic - Next topic

mechmon

Hello All,
I cannot install the plugin MathPlot, when I go to plugin manager and add the plug in, the response is "one or more plugins were not successfully installed." I just don't know where to look for the issue.

WIN XP Pro
compiled wxWigets-2.8.12
rebuild Code::Blocks with above.
rebuild all contrib plugins from "Contrib.Workspace"
All from http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows
Everything so far compiles fine, and all tutorials from http://wiki.codeblocks.org/index.php?title=WxSmith_tutorials
compiles and runs just fine.
Followed the "Hello World" Plugin at http://wiki.codeblocks.org/index.php?title=Creating_a_simple_%22Hello_World%22_plugin
Plugin compiled and installed fine.
Follwed the tutorial adding new item to wxSmith at http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_which_adds_new_item_into_wxSmith
using the sources from wxMathPLot at http://wxmathplot.sourceforge.net/
created a new plugin, code compiles fine i.e. no errors or warnings.
But when I go to install, I get the reported error.

I am assuming there is something in my setup which is preventing the plugin from installing. Where can I look?

Regards,
MechMon

Jenna

If you use actual trunk as sources, start the newly created from a console with the "-v" parameter and you will get more debugging output (not all will be related to your issue).
If you have older sources, change the argument for the wxDebugLog (or something similar, don't remember exactly) at the beginning of OnInit() in src/app.cpp to true (same effect, but the older revisions did not have the commandline parameter).

mechmon

Quote from: jens on November 16, 2011, 06:44:05 AM
If you use actual trunk as sources, start the newly created from a console with the "-v" parameter and you will get more debugging output (not all will be related to your issue).
If you have older sources, change the argument for the wxDebugLog (or something similar, don't remember exactly) at the beginning of OnInit() in src/app.cpp to true (same effect, but the older revisions did not have the commandline parameter).

Start the *.dll from the console? - 'wxMathPlot' is not recognized as an internal or external command, operable program or batch file.
In OnInit() in src/app.cpp the only "wxDebug" I can find is in "void CodeBlocksApp::OnFatalException()"

My build log is:

-------------- Build: default in wxMathPlotPlugin ---------------

mingw32-g++.exe  -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -Wall   
-IC:\codeblocks-10.05-release\src\include
-IC:\codeblocks-10.05-release\src\sdk\wxscintilla\include
-IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_dll\mswu
-IC:\codeblocks-10.05-release\src\plugins\contrib\wxSmith
-I"myfilepath\mysql-connector-c-noinstall-6.0.2-win32-vs2005\mysql-connector-c-noinstall-6.0.2-win32-vs2005\include" 
-c "myfilepath\MathPLotPLugIn\wxMathPlot\mathplot.cpp" -o .objs\wxMathPlot\mathplot.o
mingw32-g++.exe -shared   -Wl,--dll
-LC:\codeblocks-10.05-release\src\devel
-LC:\wxWidgets-2.8.12\lib\gcc_dll
-L"myfilepath\mysql-connector-c-noinstall-6.0.2-win32-vs2005\mysql-connector-c-noinstall-6.0.2-win32-vs2005\lib"  .objs\wxMathPlot\mathplot.o   -o wxMathPlot.dll -mthreads  -lwxsmithlib -lcodeblocks -lwxmsw28u C:\WINDOWS\system32\sqlsrv32.dll "C:\Program Files\CodeBlocks\MinGW\lib\libodbc32.a" C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib\libwxmsw28_core.a
Output size is 759.73 KB
Running target post-build steps
zip -j9 wxMathPlot.zip manifest.xml
updating: manifest.xml (164 bytes security) (deflated 53%)
zip -j9 wxMathPlot.cbplugin wxMathPlot.dll wxMathPlot.zip
updating: wxMathPlot.dll
(164 bytes security) (deflated 70%)
updating: wxMathPlot.zip (164 bytes security) (deflated 7%)
Process terminated with status 0 (0 minutes, 6 seconds)
0 errors, 0 warnings


Thanks


Alpha

Quote from: mechmon on November 16, 2011, 07:38:47 AM
Quote from: jens on November 16, 2011, 06:44:05 AM
If you use actual trunk as sources, start the newly created from a console with the "-v" parameter and you will get more debugging output (not all will be related to your issue).
If you have older sources, change the argument for the wxDebugLog (or something similar, don't remember exactly) at the beginning of OnInit() in src/app.cpp to true (same effect, but the older revisions did not have the commandline parameter).

Start the *.dll from the console? - 'wxMathPlot' is not recognized as an internal or external command, operable program or batch file.
That would be Code::Blocks (not the plugin) you should start from the console.

mechmon

That makes sense.

When ran from console I get two CodeBlocks message box's stating unknown option 'v'. I get this from both the release and the debug version.

stahta01

#5
Quote from: mechmon on November 16, 2011, 07:38:47 AM


-------------- Build: default in wxMathPlotPlugin ---------------


-L"myfilepath\mysql-connector-c-noinstall-6.0.2-win32-vs2005\mysql-connector-c-noinstall-6.0.2-win32-vs2005\lib"  .objs\wxMathPlot\mathplot.o   -o wxMathPlot.dll -mthreads  -lwxsmithlib -lcodeblocks -lwxmsw28u C:\WINDOWS\system32\sqlsrv32.dll "C:\Program Files\CodeBlocks\MinGW\lib\libodbc32.a" C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib\libwxmsw28_core.a



C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib\libwxmsw28_core.a


The above link library implies to me that you are using the WRONG wxWidgets Library to build the plugin.

The "gcc_lib" part means static; it has to be dynamic "gcc_dll"
The "msw28_core" part means multilib; unless you self build Code::Blocks it should likely be Monolithic buld instead.

WARNING: The plugin should be linked to the exact same wxWidgets Library version and build options as used in the building of Code::Blocks.

I follow these directions when doing it, myself.
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build

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]

mechmon

I will check on the computer I'm building on tomorrow.

I compiled the wx libraries, code::blocks all as per first post.

mechmon

Quote from: stahta01 on November 19, 2011, 04:54:00 AM



C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib\libwxmsw28_core.a


Tim S.

This was the error, it must have been left over from one of the tutorials. Thank you.