wx/setup.h: No such file or directory compilation terminated

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
nooty
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Sep 13, 2014 5:05 am

wx/setup.h: No such file or directory compilation terminated

Post by nooty »

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.
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: wx/setup.h: No such file or directory compilation termin

Post by Manolo »

¿Where did you downloaded wxWidgets from?
¿How did you installed it?
¿Which version?
nooty
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Sep 13, 2014 5:05 am

Re: wx/setup.h: No such file or directory compilation termin

Post by nooty »

--¿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!
Post Reply