User forums > Help

Compile CodeBlocks by Cygwin

<< < (4/9) > >>

oBFusCATed:
As far as I know C::B requires unicode builds or at least no one has bothered to fix any ansi-related issues.

PetrPetrov:
Thank you for warning.

I am currently trying:
wxWidgets:
./configure --build=x86_64-pc-cygwin --without-msw  --with-gtk --enable-tooltips --enable-monolithic --enable-dnd --enable-shared --disable-universal

C::B:
./configure --build=x86_64-pc-cygwin

However, my wxWidgets static configuration did not have problem with wxscintilla class (from the box).

stahta01:

--- Quote from: PetrPetrov on November 06, 2013, 12:06:16 am ---However, my wxWidgets static configuration did not have problem with wxscintilla class (from the box).

--- End quote ---

FYI: CB uses a plugin system; this means the plugin must be in DLL in the current design.
For a DLL to use wxWidgets requires wxWidgets be in a DLL, I am not sure this is a Compiler or WxWidgets caused constrain.

So, if you wish to use CB Plugins; do a shared build.

Tim S.

PetrPetrov:
Compiles fine, but I have linking error:

/bin/sh ../../libtool --tag=CXX   --mode=link g++  -O2 -ffast-math -DCB_AUTOCONF  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions   -o codeblocks.exe app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o examinememorydlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o watchesdlg.o -L../sdk -lcodeblocks -L/usr/local/lib    -lwx_gtk2-2.8  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lgio-2.0 -lXfixes -lcairo -lpixman-1 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lpng15 -lharfbuzz -lpango-1.0 -lm -lfontconfig -lexpat -lfreetype -lz -lbz2 -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -liconv -lpcre   -lpthread -ldl
libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o .libs/codeblocks.exe app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o examinememorydlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o watchesdlg.o  -L../sdk /usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a -L/usr/local/lib -lwx_gtk2-2.8 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lgio-2.0 -lXfixes -lcairo -lpixman-1 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lpng15 -lharfbuzz -lpango-1.0 -lfontconfig -lexpat -lfreetype -lz -lbz2 -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -liconv -lpcre -lpthread -ldl
dlgaboutplugin.o: duplicate section `.rdata$_ZTI16wxTopLevelWindow[_ZTI16wxTopLevelWindow]' has different size
/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(infowindow.o): duplicate section `.rdata$_ZTI9wxControl[_ZTI9wxControl]' has different size
/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(cbtreectrl.o): duplicate section `.rdata$_ZTI9wxControl[_ZTI9wxControl]' has different size
/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(projectdepsdlg.o): duplicate section `.rdata$_ZTI16wxTopLevelWindow[_ZTI16wxTopLevelWindow]' has different size/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(configuretoolsdlg.o): duplicate section `.rdata$_ZTI16wxTopLevelWindow[_ZTI16wxTopLevelWindow]' has different size
/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(autodetectcompilers.o): duplicate section `.rdata$_ZTI16wxTopLevelWindow[_ZTI16wxTopLevelWindow]' has different size
/usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a(editkeywordsdlg.o): duplicate section `.rdata$_ZTI16wxTopLevelWindow[_ZTI16wxTopLevelWindow]' has different size
debugger_interface_creator.o:debugger_interface_creator.cpp:(.text+0x1a2): undefined reference to `__imp__ZN11wxScintilla13CallTipActiveEv'
debugger_interface_creator.o:debugger_interface_creator.cpp:(.text+0x1a2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__ZN11wxScintilla13CallTipActiveEv'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: debugger_interface_creator.o: bad reloc address 0x14 in section `.xdata'
collect2: error: ld returned 1 exit status

Any idea?

PetrPetrov:
Current error:

libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -w -o .libs/codeblocks.exe app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o examinememorydlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o watchesdlg.o  -L../sdk /usr/src/codeblocks-12.11release8629/src/sdk/.libs/libcodeblocks.a -L/usr/local/lib -L../sdk/wxscintilla /usr/src/codeblocks-12.11release8629/src/sdk/wxscintilla/.libs/libwxscintilla.a -lwx_gtk2-2.8 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lgio-2.0 -lXfixes -lcairo -lpixman-1 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lpng15 -lharfbuzz -lpango-1.0 -lfontconfig -lexpat -lfreetype -lz -lbz2 -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -liconv -lpcre -lpthread -ldl
debuggermenu.o:debuggermenu.cpp:(.text+0x1245): undefined reference to `__imp__ZN11wxScintilla14GetCurrentLineEv'
debuggermenu.o:debuggermenu.cpp:(.text+0x1245): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__ZN11wxScintilla14GetCurrentLineEv'
debuggermenu.o:debuggermenu.cpp:(.text+0x477e): undefined reference to `__imp__ZN11wxScintilla14GetCurrentLineEv'
debuggermenu.o:debuggermenu.cpp:(.text+0x477e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__ZN11wxScintilla14GetCurrentLineEv'
debuggermenu.o:debuggermenu.cpp:(.text+0x479c): undefined reference to `__imp__ZNK11wxScintilla7GetLineEi'
debuggermenu.o:debuggermenu.cpp:(.text+0x479c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__ZNK11wxScintilla7GetLineEi'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: debuggermenu.o: bad reloc address 0x8 in section `.data'
collect2: error: ld returned 1 exit status

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version