Hello all. I am new to wxWidgets. I run the sample hello program after installation. Then I compiled it as >>gcc hello.cpp
But I got an error :
In file included from /usr/include/wx/defs.h:21:0,
from /usr/include/wx/wxprec.h:13,
from hello.cpp:3:
/usr/include/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Any help please.
Thanks in advance.
wx/setup.h: No such file or directory compilation terminated
Re: wx/setup.h: No such file or directory compilation termin
¿Where did you downloaded wxWidgets from?
¿How did you installed it?
¿Which version?
¿How did you installed it?
¿Which version?
Re: wx/setup.h: No such file or directory compilation termin
--¿Where did you downloaded wxWidgets from?
I had installed wxWidgets from http://softlayer-sng.dl.sourceforge.net ... 9.0.tar.gz
--¿How did you installed it?
$./configure --enable-unicode && make
$sudo make install
--¿Which version?
That is answered from first answer.
After these, I had followed these .
Now it is working fine
--> Write export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib on the terminal before opening the executable (from the same terminal). To save having to do this each time, add that line to your ~/.bashrc or similar.
--> Give a --rpath /usr/local/lib/ flag to the linker while building (tip: since you generally don't invoke the linker directly, but rather perform linking through GCC, use GCC's syntax to pass along flags to the linker : -Wl,--rpath,/usr/local/lib/)
--> Become root and execute /sbin/ldconfig /usr/local/lib. This will configure dynamic linker runtime bindings, adding all the libraries in /usr/local/lib, so it's not really a very good idea!
I had installed wxWidgets from http://softlayer-sng.dl.sourceforge.net ... 9.0.tar.gz
--¿How did you installed it?
$./configure --enable-unicode && make
$sudo make install
--¿Which version?
That is answered from first answer.
After these, I had followed these .
Now it is working fine
--> Write export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib on the terminal before opening the executable (from the same terminal). To save having to do this each time, add that line to your ~/.bashrc or similar.
--> Give a --rpath /usr/local/lib/ flag to the linker while building (tip: since you generally don't invoke the linker directly, but rather perform linking through GCC, use GCC's syntax to pass along flags to the linker : -Wl,--rpath,/usr/local/lib/)
--> Become root and execute /sbin/ldconfig /usr/local/lib. This will configure dynamic linker runtime bindings, adding all the libraries in /usr/local/lib, so it's not really a very good idea!