Author Topic: Codeblock plugin project  (Read 12442 times)

Offline anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Codeblock plugin project
« on: February 05, 2017, 09:16:00 am »
Hi,

I am trying to make a helloWorld Plugin. But on compiling, i am getting errors in files wx/buffer.h and wx/strings.h
Some more errors occurred in prep.h, sdk_events.h
Please help, i am a newbie in this field.

Note: I am using codeblocks 16.01, wxwidget2.8.12(UNICODE=1, MONOLITHIC=1, SHARED=1) configuration. I have also setup the global variables corresponding to cb and wx
« Last Edit: February 05, 2017, 11:04:25 am by anandamu16 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblock plugin project
« Reply #1 on: February 05, 2017, 11:30:11 am »
Try adding these -std=c++11 or -std=gnu++11 compiler options.
(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 anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: Codeblock plugin project
« Reply #2 on: February 05, 2017, 12:13:01 pm »
yeah... it worked thanks.

Can you please give me some idea, why it worked.?
Moreover, after compilation I got this error too, as attached here.
"ld.exe||cannot find -lcodeblocks|"

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Codeblock plugin project
« Reply #3 on: February 05, 2017, 12:22:07 pm »
yeah... it worked thanks.

Can you please give me some idea, why it worked.?
Moreover, after compilation I got this error too, as attached here.
"ld.exe||cannot find -lcodeblocks|"

The 'nullptr' keyword in your error is a keyword only supported from C++11 onwards.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Codeblock plugin project
« Reply #4 on: February 05, 2017, 12:25:39 pm »
yeah... it worked thanks.

Can you please give me some idea, why it worked.?
Moreover, after compilation I got this error too, as attached here.
"ld.exe||cannot find -lcodeblocks|"

ld.exe is your linker that 'links' all the compiled objects into 1 final object and the option "-lcodeblocks" means it wants to link with the library codeblocks.dll, libcodeblocks.dll or codeblocks.lib but it cannot find that file. Make sure you have the path in the library search path or fix the issue why it's not in your library search path. Normally you should have a cb-config.exe (or something similar I don't know the exact name on Windows) that returns these values.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: Codeblock plugin project
« Reply #5 on: February 05, 2017, 12:43:39 pm »
oh..okey. Thanks a lot. I searched about that error over whole internet but still I was not able to find the solution

i referred this article "http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build" and this thread too "http://forums.codeblocks.org/index.php?topic=18244.0". Still I am not able to get rid of this error.

I am actually working on the already modified version of codeblocks called as axCodeblocks. It doesn't have any codeblocks.dll/codeblocks.lib but it has "libaxcodeblocks-0.dll". I have gave this address to linker settings. Still problem remais persist

I have added the screenshot of installation directory. Pls check
« Last Edit: February 06, 2017, 05:15:07 am by anandamu16 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Codeblock plugin project
« Reply #6 on: February 05, 2017, 01:15:42 pm »
Why the generated file name has some prefix "ax", and suffix "-0"? How do you build wx and cb?
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 anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: Codeblock plugin project
« Reply #7 on: February 05, 2017, 01:27:12 pm »
This is the customized version of codeblocks namely "Axcodeblocks" so developer have made the changes within all files. I have no knowledge how its done but I have to make plugin on this.

For wx, i downloaded wxwidget2.8.12 and build it setting 1 to all SHARED,MONOLITHIC AND UNICODE parameters.
For cb, I dont have any idea, although i am having the source code of it

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Codeblock plugin project
« Reply #8 on: February 05, 2017, 01:51:46 pm »
didn't know that onsemi has a codeblocks derivation xD

As i told you in a other thread already we need the full build logs in text format to help you...

Also please don't open 100 threads with compiling problems... You want to develop one plugin and open 20 threads with compiling problems. Where should we know what you actual problem is. Use one thread and update him accordingly.

We can't give support for a cb derivative from a other developer. You have to ask them for support. But i can tell you that you have to reset the name of the library to the corresponding libraryname in your file system. You have to adjust Project->Build options-> Linker->Link libraries

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblock plugin project
« Reply #9 on: February 05, 2017, 04:08:47 pm »
This is the customized version of codeblocks namely "Axcodeblocks" so developer have made the changes within all files. I have no knowledge how its done but I have to make plugin on this.
Keep in mind that here we don't support modified versions of codeblocks!
We support only the original.

BTW: Do you have the source code of the fork? If not the axcodeblocks developer is violating our license.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Codeblock plugin project
« Reply #10 on: February 05, 2017, 05:36:09 pm »
This is the customized version of codeblocks namely "Axcodeblocks" so developer have made the changes within all files. I have no knowledge how its done but I have to make plugin on this.
Keep in mind that here we don't support modified versions of codeblocks!
We support only the original.

BTW: Do you have the source code of the fork? If not the axcodeblocks developer is violating our license.


I have found this AppNote link http://www.onsemi.com/pub_link/Collateral/AND9371-D.PDF
I am now downloading exe and source for an AX8052 IDE that I am guessing is based on Code::Blocks.
They appeared to have written a Debugger plugin and a MCU program loader.
And, likely added a Scripted Wizard for their chip (Note onsemi seems to have purchased the Company that did the adapting of Code::Blocks IDE)

Edit: Link to source code http://www.onsemi.com/pub/Collateral/AX8052-IDE%20SOFTWARE%20PACKAGE%20(SOURCE%20RPMS%20UNDER%20GNU%20PUBLIC%20LICENSE).ZIP


Edit2: They included at least some source-code of their debuggeraxs work.

Edit3: They used the folder name of axcodeblocks-16.01svn10778

Edit4:

Quote
Welcome to AxCode::Blocks 1.17 (16.01)!
AxCode::Blocks is a full-featured IDE (Integrated Development Environment) aiming to make the individual developer (and the development team) work in a nice programming environment offering everything he/they would ever need from a program of that kind.
Its pluggable architecture allows you, the developer, to add any kind of functionality to the core program, through the use of plugins...
AxCode::Blocks differs from standard Code::Blocks through the addition of the Axsem axs_debugger plugin.

Does NOT seem to be any GPL Violation. Might be a image copyright issues.

Tim S.
 
« Last Edit: February 05, 2017, 05:55:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblock plugin project
« Reply #11 on: February 05, 2017, 06:33:58 pm »
Does NOT seem to be any GPL Violation. Might be a image copyright issues.
Cool, one of the few that do this (most of the other clones violate gpl without bothering).
Strangely that they've not talked to us about this and they've not submitted patches for their changes.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Codeblock plugin project
« Reply #12 on: February 06, 2017, 02:05:13 am »
oh..okey. Thanks a lot. I searched about that error over whole internet but still I was not able to find the solution

i referred this article "http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build" and this thread too "http://forums.codeblocks.org/index.php?topic=18244.0". Still I am not able to get rid of this error.

I am actually working on the already modified version of codeblocks called as axCodeblocks. It doesn't have any codeblocks.dll/codeblocks.lib but it has "libaxcodeblocks-0.dll". I have gave this address to linker settings. Still problem remais persist

To build an Plugin for CB or a fork of CB you need to use the same C++ Compiler as was used to build the CB or Forked CB!
(likely GCC version 5.2.0 in this case)
NOTE: The axCodeblocks I downloaded used Multilib wxWidgets instead of Monolithic wxWidgets like CB does.
And, I would guess that they cross built axCodeblocks on a non windows computer.

Edit: You also need the same SDK source code was was used to build the forked CB.

Tim S.
« Last Edit: February 06, 2017, 02:07:09 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Codeblock plugin project
« Reply #13 on: February 06, 2017, 02:10:34 am »
I created an Git Repo with most of the Source Code from the zip I linked to in it.

https://github.com/stahta01/axcodeblocks

I would NOT mind having a CB Debugger that works with SDCC compiler. I have NOT really looked at the code; but, plan to do so in the future.

Tim S.
« Last Edit: February 06, 2017, 02:14:08 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org