Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
New plugin: Library finder
MortenMacFly:
--- Quote from: byo on January 04, 2006, 10:28:57 pm ---Big THX :)
--- End quote ---
I have a question: By now I am getting this warning if I try to compile the plugin:
--- Code: ---./pch.h:4:17: warning: E:/Devel/CodeBlocks_Devel/src/sdk/sdk.h.gch: not used because `_MT' not defined
--- End code ---
The plugin still compiles and works but I couldn't find out where this comes from. I can nowhere find the define at all. Any ideas?
With regards, Morten.
Edit: I forgot to add (don't know if it's important): C::B as of revision 1749, wxWidgets 2.6.2 (unicode) under Windows.
mandrav:
Make sure the following are in "Project->Build options->Compiler->Other options":
--- Quote ----pipe
-mthreads
-fmessage-length=0
-fexceptions
-Winvalid-pch
--- End quote ---
MortenMacFly:
--- Quote from: mandrav on January 13, 2006, 07:54:24 pm ---Make sure the following are in "Project->Build options->Compiler->Other options":
[...]
--- End quote ---
...that did the trick. Thanks a lot!
Morten.
byo:
Hi everyone,
After a long time, I've digged out my old lib_finder plugin and added few nice features.
The most important is that I've managed to compile wxWidgets project on both Linux and Windows using only one project file (I was working on few cross-platform projects recently and keeping those project files up-to-date was really a nightmare).
How does the new version work?
Many things are done in the same way - on Plugins menu there's "Library Finder" entry which shows serch dialog. After entering few directories where we think that our libraries are placed, lib_finder will scan those directories in order to detect and configure what's there.
After such scan, each library found have one or more sets of configurations. In project options there's new "Libraries" tab where you can specify which libraries this project use. With small modification of sdk, lib_finder may automatically alter compiler options while the project is compiled so the only thing you need to use library in project is to add it on "Libraries" tab. And it works independently of platform because the configuration of library is stored in c::b settings, not in .cbp file.
I attach patch which allows lib_finder to alter compile options and test project which can be compiled on windows and linux without any modification (of course lib_finder must search for files before the project can be compiled). The patch adds one extra event, so I didn't want to add it myself to SDK.
So question to other developers: is there a chance to apply this patch to main sources ?
Regards
BYO
[attachment deleted by admin]
MortenMacFly:
--- Quote from: byo on December 23, 2007, 01:59:05 am ---So question to other developers: is there a chance to apply this patch to main sources ?
--- End quote ---
To confirm that this did not get lost: I have applied the patch for several days now - I see no issues at all and would vote positively for it's application. I think it's a nice feature. If the other devs agree then (Byo:) Go ahead! :-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version