User forums > Help

SOLVED:installing wxWidgets2.9.1 on CB

<< < (2/3) > >>

ubuntix:
if i look in the log window i have:



--- Code: ---
g++ -Wall -DWX_PRECOMP  -g  -pg -g -Wunused-variable -Wno-deprecated -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread    -I/usr/include/mysql  -c /home/moi/aMule-SVN-r10490/MyAmulePrj/wx_pch.h -o wx_pch.h.gch/Debug_wx_pch_h_gch

g++ -Wall -DWX_PRECOMP  -g  -pg -g -Wunused-variable -Wno-deprecated -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread    -I/usr/include/mysql  -c /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.cpp -o obj/Debug/GUIFrame.o


--- End code ---


No wx2.9
in the build options of the project,  compiler->other options : nothing
linker settings : all empty
search directories : all empty
all options specific to the project are empty exept WX_PRECOMP  
in the global settings , my other optons of the compiler are:


--- Code: ---Wunused-variable
-Wno-deprecated
`wx-config --cflags`

--- End code ---


in search direct. i: /usr/include/mysql

if I change the global setting wx-config to wxKonfig the log change to this


--- Code: ---g++ -Wall -DWX_PRECOMP  -O2  -pg -g -Wunused-variable -Wno-deprecated    -I/usr/include/mysql  -c /home/moi/aMule-SVN-r10490/MyAmulePrj/wx_pch.h -o wx_pch.h.gch/Release_wx_pch_h_gch

--- End code ---

wx-Konfig is unknown so wx-config in the global settings is the command actually executed.

But, under CodeBlocks wc-config gives : -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8

and in a console it gives : -I/usr/local/lib/wx/include/gtk2-unicode-static-2.9 -I/usr/local/include/wx-2.9

In settings, neither for  global nor project i have nothing relating to wx2.8, except in Header fixup configuration where i have all headers files for wx2.8 and 2.6 but they are only filemanes, without path.


if insteed of wx-config --cflagfs i type wx-config --version=2.9 -cflags , command is not executed, i have no include in the compiler command line.

I have no environment variables defined.
Should I ?

thank
 

Jenna:

--- Quote from: ubuntix on March 15, 2011, 03:24:03 pm ---I have no environment variables defined.
Should I ?

--- End quote ---

Do you have environment variables that are related to wxWidgets in your console ?

What's the output of wx-config --list ?

If you use --version or whatever parameters to specify the wxWidgets libs to use, the configuration-script needs to have either release or debug in the name to be found by wx-config (in fact wx-config is a symlink to one of the scripts).
Yours is most likely called /usr/local/lib/wx/config/gtk2-unicode-static-2.9.
You can either use it directly (instead of wx-config) or create a symlink to /usr/lo cal/lib/wx/config/gtk2-unicode-release-static-2.9 (instead of release use debug, if it is a debug-build).
If that does not work, try to put the symlink into /usr/lib/wx/config/ .

ubuntix:
I already tried to add --version=2.9 like this wx-config -cflags --version=2.9. Codeblocks don't accept it but it works in a console. With version=2.8, same result.


--- Code: ---:~$ wx-config --list

    Default config is gtk2-unicode-static-2.9

  Default config will be used for output

  Alternate matches:
    gtk2-unicode-2.9

  Also available in /usr/local:
    gtk2-ansi-debug-2.8
    gtk2-ansi-debug-2.9
    gtk2-ansi-release-2.8
    gtk2-ansi-release-2.9
    gtk2-unicode-debug-2.9
    gtk2-unicode-release-2.8
    gtk2-unicode-release-2.9


--- End code ---
in console, env gives a lot of things with noting to do with widgets.

I don't understand this


--- Quote ---create a symlink to /usr/local/lib/wx/config/gtk2-unicode-release-static-2.9

--- End quote ---

I have no problem to link, i just can't compile with the good headers. and anyway, i usually add the libs in the buils options.
I noticed somethng else:
wx-config in console returns /usr/locale/include/.....
but in codeblocks log i have /usr/include.....
see my previous post
 
and in fact, if i rename /usr/include/wx-2.8 to wx2.8a codeblocks don't find any header.

And something strange too in my log.


--- Code: ---g++ -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP  -g  -pg -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wunused-variable -Wno-deprecated   -I/usr/local/include/wx-2.9 -I/usr/include/mysql  -c /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.cpp -o obj/Debug/GUIFrame.o
cc1plus: warning: ./wx_pch.h.gch/Release_wx_pch_h_gch: not used because `__OPTIMIZE__' not defined
In file included from /usr/local/include/wx-2.9/wx/platform.h:711,
                 from /usr/local/include/wx-2.9/wx/defs.h:26,
                 from /usr/local/include/wx-2.9/wx/wx.h:15,
                 from /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.h:19,
                 from /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.cpp:19:
/usr/local/include/wx-2.9/wx/chkconf.h:94:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
/usr/local/include/wx-2.9/wx/chkconf.h:102:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."

../.. and so on
 

--- End code ---

As you can see, it seem that wx-config is called AFTER something else as i have include path of wx2.9 ( result of wx-config) after wx2.8.

what i made now: i made a small bath called sdcc installed in the right directory. Of course i don't have this compiler ( sdcc ).
This batch is just :

echo param for icc==>

because at first i wanted to do it for icc ...

 and now my log is


--- Code: ---sdcc -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP  -g    -I/usr/local/include/wx-2.9  -c GUIFrame.cpp -o obj/Debug/GUIFrame.o
param for icc==>
sdcc -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP  -g    -I/usr/local/include/wx-2.9  -c MyAmulePrjApp.cpp -o obj/Debug/MyAmulePrjApp.o
param for icc==>

--- End code ---

I don't have any wx-2.8 in the path. It seem's i have a something defined for g++, called previously to wx-config and "hidden".
Now back to g++. If i erase every wx-config or additionnal search path for global or project setting ( what a mess) , the log still show a call to wx-2.8.
i removed all the headers of my project and the precomp headers=> same thing wx-2.8 still there

As i told you, i still have in Settings->Environement>Header-fixup configuration ( see attachment ) a lot of stuff about the old versions of widgets ( 2.8, 2.6 ) and codeblocks.
I wonder if it can't have something to see with. 


reg.
 

Jenna:
Do you have anything set in  "Settings -> Compiler and debugger -> Global compler settings -> [the compiler you use]" ?
Especially in "Search directories"  an other compiler/linker options ?
Try wx-config with additional parameter --prefix=/usr/local:

--- Code: ---wx-config --prefix=/usr/local --version=2.9 --unicode --cxxflags
--- End code ---

ubuntix:
Now i just have:

for global settings
in compiler -> search directories : /usr/include/mysql
in compiler->compiler settings : nothing
""                linker                : nothing
""             -> toolchain          : g++, gcc, gdb, ...,  without parameters

everything is void.

btw, codeblocks version is: 7015 SVN

if I "grep -i -r wx-2.8" all the ini files in the .codeblocks dir * I have nothing,
if I "grep -i -r wx-2.8" in my project dir i have all dependencies of headers files in .depend
same thing with grep wx-2.9
and nowhere something looking like a single path.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version