User forums > General (but related to Code::Blocks)
Troubles cross compiling a plugin
MadBoat:
--- Quote from: jens on June 12, 2015, 01:31:09 am ---You can try to cross-compile C::B, but I doubt you will be able to use the plugin with natively compiled (windows) builds of Code::Blocks.
--- End quote ---
Yes, this seems obvious in retrospect. I still can't actually perform the cross compile. Perhaps it would be easier to dig up a pre-cross compiled version of libcodeblocks.a? Is it possible to repackage a windows library as a linux library?
--- Quote from: stahta01 on June 12, 2015, 01:38:05 am ---I agree the binary is NOT likely to work; but, I was thinking he just wanted to make sure it compiled and linked; not that he could use the binary.
I was just trying to get CB to cross compile on Linux for that reason two weeks ago.
I decided it was easier to dual boot.
Tim S.
--- End quote ---
No, I would need it to run as well. I'm guessing you also looked and couldn't find instructions to cross compile codeblocks?
stahta01:
--- Quote from: MadBoat on June 12, 2015, 01:55:26 am ---No, I would need it to run as well. I'm guessing you also looked and couldn't find instructions to cross compile codeblocks?
--- End quote ---
I found the old directions and used them to cross compile codeblocks.
Edit: I did NOT try to follow them exactly because they were too old; I had to change a lot to get the cross compile to work.
It took a few hours of effort.
I did NOT try to build the Contrib Plugins using CB projects.
Are you trying the configure/make route or CB project route?
If the CB Project route, I might still have a copy of the main CB project that you can adapt.
I needed to learn how to use WINE to run it.
I did my work on Debian 8.0; so, it differs from your work.
Tim S.
stahta01:
You might wish to read this link. You will have to adapt the directions to using a cross compiler.
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
Tim S.
MadBoat:
--- Quote from: stahta01 on June 12, 2015, 02:51:38 am ---I found the old directions and used them to cross compile codeblocks.
Edit: I did NOT try to follow them exactly because they were too old; I had to change a lot to get the cross compile to work.
It took a few hours of effort.
--- End quote ---
If you have directions, even old ones, for cross compiling code blocks, I'd love to see them.
--- Quote from: stahta01 on June 12, 2015, 02:51:38 am ---I did NOT try to build the Contrib Plugins using CB projects.
Are you trying the configure/make route or CB project route?
--- End quote ---
Not sure what you're asking. I am building my plugin as a CB project. I am trying to cross compile codeblocks via the configure/make method.
--- Quote from: stahta01 on June 12, 2015, 02:51:38 am ---If the CB Project route, I might still have a copy of the main CB project that you can adapt.
I needed to learn how to use WINE to run it.
--- End quote ---
If you've got it on hand, sure. Please don't spend more than 5 minutes screwing around on this though... I don't want to send anyone on a wild goose chase, and I can still resort to a two-system solution if I cant get this to work.
stahta01:
Link to the project; but, it will NOT help do anything but compile Code::Blocks Under Linux.
https://github.com/stahta01/codeblocks-svn2git/blob/devel/cross_compile/src/CodeBlocks_wx28-win32.cbp
I made the cross compiler to be named gcc-win32.
I used the MinGW64 32 bit version of GCC on Debian.
I suggest you read the second third post of mine because the linking to DLL method is what you really need to do!!
Edit2: Quoted that post below
--- Quote from: stahta01 on June 12, 2015, 03:11:04 am ---You might wish to read this link. You will have to adapt the directions to using a cross compiler.
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
Tim S.
--- End quote ---
Tim S.
Navigation
[0] Message Index
[*] Previous page
Go to full version