No Target!

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mike44
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Mar 04, 2017 7:04 am

No Target!

Post by mike44 »

Hi
I want to use only the clipboard on win/mac/linux.
http://docs.wxwidgets.org/trunk/classwx_clipboard.html
But after including the header and sample code I get:

home/michael/Downloads/wxWidgets-3.0.2/include/wx/defs.h:46:13: error: #error "No Target! You should use wx-config program for compilation flags!"
Ubuntu/Eclipse
What to do? Thanks

--------

michael@michael-ubuntu:~/Downloads/wxWidgets-3.0.2$ wx-config --list

Default config is gtk2-unicode-3.0

Default config will be used for output

Alternate matches:
base-unicode-3.0

michael@michael-ubuntu:~/Downloads/wxWidgets-3.0.2$ wx-config --libs all
-L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_webview-3.0 -lwx_gtk2u_stc-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_ribbon-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_aui-3.0 -lwx_gtk2u_gl-3.0 -lwx_gtk2u_media-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0
michael@michael-ubuntu:~/Downloads/wxWidgets-3.0.2$ wx-config --libs
-L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0
michael@michael-ubuntu:~/Downloads/wxWidgets-3.0.2$
mike44
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Mar 04, 2017 7:04 am

Re: No Target!

Post by mike44 »

ok got it compiled but now I get:

'GDK_IS_SCREEN (screen)' failed

can i use the clipboard with my opengl app or how to use that?
Thanks
Post Reply