User forums > Help

Problem compiling latest version (0304) from SVN

(1/2) > >>

Tactive:
Hello,
after several issues with the compiler bug I tried to compile CodeBlocks with the 4.0.3
compiler but now it fails with this:


--- Quote ---./src/propgrid/custctrl.cpp:312:26: error: commctrl.h: No such file or directory
./src/propgrid/custctrl.cpp: In function 'void wxRendererNative_DrawButton(wxWindow*, wxDC&, const wxRect&, int)':
./src/propgrid/custctrl.cpp:357: error: 'wxUxThemeHandle' was not declared in this scope
./src/propgrid/custctrl.cpp:357: error: expected `;' before 'themeHandle'
./src/propgrid/custctrl.cpp:361: error: 'HTHEME' was not declared in this scope
./src/propgrid/custctrl.cpp:361: error: expected `;' before 'hTheme'
./src/propgrid/custctrl.cpp:367: error: 'hTheme' was not declared in this scope
./src/propgrid/custctrl.cpp:375: error: 'tagRECT' was not declared in this scope
./src/propgrid/custctrl.cpp:375: error: expected `;' before 'trect'
./src/propgrid/custctrl.cpp:376: error: 'trect' was not declared in this scope
./src/propgrid/custctrl.cpp:438: error: 'wxUxThemeEngine' has not been declared
./src/propgrid/custctrl.cpp:438: error: 'Get' was not declared in this scope
./src/propgrid/custctrl.cpp:438: error: 'class wxDC' has no member named 'GetHDC'
make[4]: *** [custctrl.lo] Fehler 1
make[4]: Leaving directory `/home/tactive/Development/compile/CodeBlocks/src/sdk/propgrid'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/tactive/Development/compile/CodeBlocks/src/sdk'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/tactive/Development/compile/CodeBlocks/src/sdk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/tactive/Development/compile/CodeBlocks/src'
make: *** [all-recursive] Fehler 1

--- End quote ---

Seems to have any problems with the wxWidgets library (I'm using wxX11).
Can anyone give me a hint how to fix this?

Tactive:
Ok, by moving from wxX11 to wxGTK it seems that I've passed this error.
Unfornately I now get another strange problem while compile the current cb source from svn (Revisions 2816):


--- Quote ---/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.a when searching for -ldl
/opt/gcc4.0.3/lib/../lib/libstdc++.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libcodeblocks.la] Fehler 1
make[4]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src'
make: *** [all-recursive] Fehler 1

--- End quote ---

What can I do to fix this?

mdelfede:

--- Quote from: Tactive on August 05, 2006, 05:13:40 pm ---Ok, by moving from wxX11 to wxGTK it seems that I've passed this error.
Unfornately I now get another strange problem while compile the current cb source from svn (Revisions 2816):


--- Quote ---/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.a when searching for -ldl
/opt/gcc4.0.3/lib/../lib/libstdc++.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libcodeblocks.la] Fehler 1
make[4]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src/sdk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/tactive/Development/compile/codeblocks-2816/src'
make: *** [all-recursive] Fehler 1

--- End quote ---

What can I do to fix this?


--- End quote ---

It seems to me that you're mixing tools from GCC4.03 and another (maybe the default one) installed in your system.
Did you read (and follow) the wiki for installing gcc4.0.3 and compiling wit it ?
If no, look at it and follow EXACTLY the instructions.... maybe that will help.

the wiki is here : http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

The important thing to do AFTER installing gcc 4.0.3 is :

--- Code: ---export CC=/opt/gcc/4.0.3/gcc403
export CXX=/opt/gcc/4.0.3/g++403
./configure --enable-contrib
make

--- End code ---


Ciao

Max

Tactive:

--- Quote ---Did you read (and follow) the wiki for installing gcc4.0.3 and compiling wit it ?
If no, look at it and follow EXACTLY the instructions.... maybe that will help.

--- End quote ---

Yes, I followed that instructions. Only difference is that the binary files are placed in
/opt/gcc/4.0.3/bin and not directly in /opt/gcc/4.0.3.

mdelfede:

--- Quote from: Tactive on August 07, 2006, 12:18:46 am ---
--- Quote ---Did you read (and follow) the wiki for installing gcc4.0.3 and compiling wit it ?
If no, look at it and follow EXACTLY the instructions.... maybe that will help.

--- End quote ---

Yes, I followed that instructions. Only difference is that the binary files are placed in
/opt/gcc/4.0.3/bin and not directly in /opt/gcc/4.0.3.

--- End quote ---

I think we need to know something more about your environment.... OS, gcc original version, ecc ecc....

Navigation

[0] Message Index

[#] Next page

Go to full version