[英]gtk3 can not be compiled with vte
我試圖在我的Gtk3
應用程序上集成一個終端,但是當我編譯該應用程序時,出現了該錯誤。
(csimpleide:9858): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap (core dumped)
因為vte
lib使用gtk2
。
我使用此命令進行編譯。
gcc -o test test.c `pkg-config --cflags --libs gtk+-3.0 vte`
我該如何解決?
您應該在我的Ubuntu 14.04 PC上定義基於gtk3
的VTE庫版本,適當的vte
版本是2.90
,因此編譯命令將是:
gcc -o test test.c `pkg-config --cflags --libs gtk+-3.0 vte-2.90`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.