User forums > Using Code::Blocks
problems with cross compiling
rjmyst3:
shadow,
not to be rude, but it seems you need to understand more about normal compiling before you venture into cross-compiling.
wx-config is a build tool that generates the appropriate build flags based on your wxwidgets configuration.
it is invoked by code::blocks via a backticked expression in your build options.
you are using the one for the linux version, you need to find or build one for your cross-compiled wxwidgets libs, or determine what your build flags should be, and put them in the appropriate places instead.
shadow_of__soul:
--- Quote from: rjmyst3 on February 21, 2008, 04:49:36 am ---shadow,
not to be rude, but it seems you need to understand more about normal compiling before you venture into cross-compiling.
wx-config is a build tool that generates the appropriate build flags based on your wxwidgets configuration.
it is invoked by code::blocks via a backticked expression in your build options.
you are using the one for the linux version, you need to find or build one for your cross-compiled wxwidgets libs, or determine what your build flags should be, and put them in the appropriate places instead.
--- End quote ---
Hi,
well, i'm asking that, of course the project have wx-config in the build options, what i dont know how to do it, it's how to use my cross compiled libs in the project and not the linux lib.
if i use what you tell me, i need to change the config of wx-config or add some flag to link the libs what i want, but i dont know how to do it or what flags i need to use :s
Regards,
Shadow.
Jenna:
You should know where your compiled wxWidgets is.
Look in <path_to_your_wxMSW>/lib/wx/config there should be a shell-script for every wxWidgets version you compiled (e.g. unicode / ansi / debug etc.) called something like gtk2-unicode-release-2.8 (that's a wx-config for linux).
Use this with absolute paths instead of wx-config in the cross-compiling target of your project.
Remove the wx-config from your projects build options and put it into your build-targets options, so you can have the linux and the cross-build in one project.
Navigation
[0] Message Index
[*] Previous page
Go to full version