User forums > Help

How to setup wxwidgets in code::blocks Linux

<< < (5/6) > >>

Pecan:

--- Quote from: Andre on April 26, 2006, 12:04:56 am ---
If i click on Settings-Environment i get an exception and Codeblocks dies. I've put the Debug report here:


--- End quote ---

Is this a source build crash or a .deb package crash or what?

thanks
pecan

Andre:

--- Quote from: Pecan on April 26, 2006, 12:18:42 am ---Is this a source build crash or a .deb package crash or what?

--- End quote ---

Its a .deb package crash. It was a package the user Micheal of this forum provided. Just testetd the new version (rev2377), but this crashes also.

Andre:

--- Quote from: Andre on April 26, 2006, 10:13:20 am ---
--- Quote from: Pecan on April 26, 2006, 12:18:42 am ---Is this a source build crash or a .deb package crash or what?

--- End quote ---

Its a .deb package crash. It was a package the user Micheal of this forum provided. Just testetd the new version (rev2377), but this crashes also.

--- End quote ---

I've build the actual SVN Version for myself and there are the environment settings working. But changing the shell to bash doesn't help. `wx-config --cflags` get not expanded on the command line. But ican compile if i put the wx directory to the compiler directories.

takeshimiya:

--- Quote from: Andre on April 26, 2006, 02:48:28 pm ---I've build the actual SVN Version for myself and there are the environment settings working. But changing the shell to bash doesn't help. `wx-config --cflags` get not expanded on the command line. But ican compile if i put the wx directory to the compiler directories.

--- End quote ---

Could you paste the output produced by wx-config --cflags and wx-config --libs in a command line?
Check also if the --cflags outputs the correct include dir.

And, could you paste your project.cbp to see if everything is ok?

Andre:

--- Quote from: Takeshi Miya on April 26, 2006, 03:25:45 pm ---Could you paste the output produced by wx-config --cflags and wx-config --libs in a command line?
Check also if the --cflags outputs the correct include dir.

And, could you paste your project.cbp to see if everything is ok?

--- End quote ---

wx-config --cflags

--- Code: ---andre@main:~$ wx-config --cflags
-I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA

--- End code ---
The Directories are the right ones.

wx-config --libs

--- Code: ---andre@main:~$ wx-config --libs
-pthread   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6

--- End code ---

The Project file:

--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
        <FileVersion major="1" minor="4" />
        <Project>
                <Option title="wxSmith_project" />
                <Option compiler="gcc" />
                <Build>
                        <Target title="default">
                                <Option output="wxSmith_project" />
                                <Option type="0" />
                                <Option compiler="gcc" />
                                <Option projectResourceIncludeDirsRelation="0" />
                        </Target>
                </Build>
                <Compiler>
                        <Add option="`wx-config --cflags`" />
                </Compiler>
                <Linker>
                        <Add option="`wx-config --libs`" />
                </Linker>
                <Unit filename="app.cpp">
                        <Option compilerVar="CPP" />
                        <Option target="default" />
                </Unit>
                <Unit filename="app.h">
                        <Option compilerVar="CPP" />
                        <Option compile="0" />
                        <Option link="0" />
                        <Option target="default" />
                </Unit>
                <Unit filename="mainframe.cpp">
                        <Option compilerVar="CPP" />
                        <Option target="default" />
                </Unit>
                <Unit filename="mainframe.h">
                        <Option compilerVar="CPP" />
                        <Option compile="0" />
                        <Option link="0" />
                        <Option target="default" />
                </Unit>
                <Unit filename="wx_pch.h">
                        <Option compilerVar="CPP" />
                        <Option link="0" />
                        <Option weight="0" />
                        <Option target="default" />
                </Unit>
                <Unit filename="wxsmith/MainFrame.wxs">
                        <Option compilerVar="CPP" />
                        <Option compile="0" />
                        <Option link="0" />
                        <Option target="default" />
                </Unit>
        </Project>

--- End code ---

But it still doesn't compile. I loos like it doesn't expand the backsticked part to the shell. Here the last Build Log:

--- Code: ----------------- Build: default in wxSmith_project ---------------
g++ `wx-config --cflags`  -I.objs -I- -I.objs -I. -I/usr/include  -c wx_pch.h -o .objs/wx_pch.h.gch
cc1plus: note: obsolete option -I- used, please use -iquote instead
wx_pch.h:9:23: error: wx/wxprec.h: No such file or directory
wx_pch.h:16:20: error: wx/wx.h: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
2 errors, 0 warnings
 
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version