Author Topic: MathPlot Plug-in will not install  (Read 7089 times)

Offline mechmon

  • Single posting newcomer
  • *
  • Posts: 8
MathPlot Plug-in will not install
« on: November 16, 2011, 03:16:40 am »
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: MathPlot Plug-in will not install
« Reply #1 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).

Offline mechmon

  • Single posting newcomer
  • *
  • Posts: 8
Re: MathPlot Plug-in will not install
« Reply #2 on: November 16, 2011, 07:38:47 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:
Code
-------------- 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


Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: MathPlot Plug-in will not install
« Reply #3 on: November 18, 2011, 03:53:42 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.

Offline mechmon

  • Single posting newcomer
  • *
  • Posts: 8
Re: MathPlot Plug-in will not install
« Reply #4 on: November 18, 2011, 06:32:06 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: MathPlot Plug-in will not install
« Reply #5 on: November 19, 2011, 04:54:00 am »

Code
-------------- 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

Code
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.
« Last Edit: November 19, 2011, 06:17:01 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mechmon

  • Single posting newcomer
  • *
  • Posts: 8
Re: MathPlot Plug-in will not install
« Reply #6 on: November 20, 2011, 04:24:37 pm »
I will check on the computer I'm building on tomorrow.

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

Offline mechmon

  • Single posting newcomer
  • *
  • Posts: 8
Re: MathPlot Plug-in will not install
« Reply #7 on: November 22, 2011, 11:44:40 am »


Code
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.