Fcitx缘份这东西怎么这么玄开启这东西

博客访问: 4187203
博文数量: 1287
博客积分: 12444
博客等级: 上将
技术积分: 12519
注册时间:
出淤泥而不染,濯清涟而不妖,中通外直,不蔓不枝,香远益清,亭亭净植,可远观而不可亵玩焉。
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: LINUX
1.更新软件源:
修改sources.list文件:
leafpad /etc/apt/sources.list
然后选择添加以下适合自己较快的源(可自由选择,不一定要全部):
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
#激进源,新手不推荐使用这个软件源
deb http://repo.kali.org/kali kali-bleeding-edge main
deb-src http://repo.kali.org/kali kali-bleeding-edge main
#中科大kali源
deb http://mirrors./kali kali main non-free contrib
deb-src http://mirrors./kali kali main non-free contrib
deb http://mirrors./kali-security kali/updates main contrib non-free
#阿里云kali源
deb /kali kali main non-free contrib
deb-src /kali kali main non-free contrib
deb /kali-security kali/updates main contrib non-free
保存之后运行:
apt-get update&&&&& #刷新系统
apt-get dist-upgrade&&&&&&&& #安装更新
2.kali-linux安装中文输入法(以下任意选择一种安装):
& & &apt-get install fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei & & & & & & & & & & & & & & & & #拼音五笔
& & &apt-get install ibus ibus-pinyin&& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & #经典的ibus
& & &apt-get install fcitx&fcitx-googlepinyin & & & & & & & & & & & & & & & & & & & & & & & & & & & && &&&&&& & & && #fcitx拼音 &
注销,重新登录之后才可以使用。
3.kali-linux安装flash player:
& & & & apt-get install flashplugin-nonfree
& & & & update-flashplugin-nonfree --install
或者参看:
又或者单独下载deb安装包:https://wiki.debian.org/FlashPlayer
4.kali-linux安装qq
!!!QQ2012现在无法使用了,可以参照这个
(1)dpkg --add-architecture i386
& & & & &apt-get update
& & & & &apt-get install ia32-libs& libnotify-bin ia32-libs-gtk&& & &&
& & & & &#如果是32位操作系统,这步可以跳过
(2) 下载这个库文件(alsa-lib):
&&&&&&&&&& /share/link?shareid=470635&uk=
&&&&&&&&&& cd到下载目录
&&&&&&&&&& bzip2 -d alsa-lib-1.0.26.tar.bz2 &&&tar -vxf alsa-lib-1.0.26.tar &&&cd alsa-lib-1.0.26/ &&&./configure &&&make && make install &&&make clean
(3)下载安装wineqq2012:&&&&&&&&&&
& & & & & &wget http://www.longene.org/download/WineQQ1-Longene.deb &&&dpkg -i WineQQ1-Longene.deb
5.kali_linux安装最新iceweasel,并汉化
详情参考:http://mozilla.debian.net/
deb http://mozilla.debian.net/ wheezy-backports iceweasel-release & & &#添加这个软件源
apt-get install pkg-mozilla-archive-keyring & & & & & & & & & & & & & & & & & & & & & & & & & #导入PGP KEY
--check-sigs --fingerprint --keyring
/etc/apt/trusted.gpg.d/pkg-mozilla-archive-keyring.gpg --keyring
/usr/share/keyrings/debian-keyring.gpg pkg-mozilla-maintainers & & & & & &#新建钥匙环
apt-get update && apt-get install -t wheezy-backports iceweasel &&&apt-get install iceweasel-l10n-zh-cn
6.安装一些工具(可选):
apt-get install gnome-tweak-tool & & & & & & & & & #安装gnome管理软件
apt-get install synaptic& & & & & & & & & &#安装新立德
apt-get install file-roller& & & & & & & & & &#安装解压缩软件
apt-get install clementine& & & & & & & & & &#clementine音乐播放器
apt-get install smplayer& & & & & & & & & &#安装smplayer视频播放器
apt-get install terminator& & & & & & & & & &#安装多窗口终端
7.开启gnome 3的标准模式:
&gsettings set org.gnome.desktop.session session-name gnome&& & & & & & & & & & & #这个模式比较流畅
&gsettings set org.gnome.desktop.session session-name gnome-fallback & & & & &#还原默认模式
&gnome-shell –replace&&& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & #在默认模式临时开启
经典模式:
8.kali安装chromium或google-chrome浏览器:& & &
apt-get install chromium-browser & & & & #chromium
google-chrome-beta & & & & & & & & & &#beta版chrome
google-chrome-stable & & & & & & & & & #稳定版chrome
google-chrome-unstable & & & & & & & & #不稳定版chrome
chrome需要单独下载deb包。此时可以在应用程序-互联网下面找到chromium,如果是普通用户,可以立即使用,如果当前是root账户登录的
系统,打开chromium/google-chrome提示Chromium can not be run as root:
解决linux下root账户无法打开chromium/google-chrome的方法:右键桌面chromium图标,选属性;或打开主菜单,找到chromium,点属性:
往命令框之后添加一个空格,然后再添加--user-data-dir&$HOME,close&
这是完整命令:&/usr/bin/chromium %U --user-data-dir $HOME,close&&&
google-chrome也是一样的:
也可以把--user-data-dir 写入/usr/bin/chromiun文件的尾部,这样彻底些
同样,google-chrome也是一样的(/usr/bin/google-chrome)
关闭之后就可以打开了!
9.Kali-linux设置vpn代理:
依次执行以下命令之后就可以陪置vpn了(可以根据自己的需要,安装某一种或几种类型的vpn配置软件,不一定要全部):
apt-get install network-manager-openvpn-gnome apt-get install network-manager-pptp apt-get install network-manager-pptp-gnome apt-get install network-manager-strongswan apt-get install network-manager-vpnc apt-get install network-manager-vpnc-gnome /etc/init.d/network-manager restart
有些vpn无法连接的情况请参照下图设置,更详细方法请参照文尾推荐阅读的《》。
10. 安装VMware和VirtualBox
&链接:http://xiao106347./blog/static//
11.运行 Metasploit Framework( 转,原文地址:)
依照kali linux网络服务策略,Kali没有自动启动的网络服务,包括数据库服务在内。所以为了让metasploit以支持数据库的方式运行有些必要的步骤。
启动Kali的PostgreSQL服务:Metasploit 使用PostgreSQL作为数据库,所以必须先运行它。
service postgresql start
可以用&ss -ant &的输出来检验PostgreSQL是否在运行,然后确认5432端口处于listening状态。
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 :::22 :::*8
LISTEN 0 128 *:22 *:*3
LISTEN 0 128 127.0.0.1:5432 *:*4
LISTEN 0 128 ::1:5432 :::*
启动Kali的Metasploit服务:随着PostgreSQL的启动和运行,接着我们要运行Metasploit服务。第一次运行服务会创建一个msf3数据库用户和一个叫msf3的数据库。还会运行Metasploit RPC和它需要的WEB 服务端。
service metasploit start
在Kali运行msfconsole:现在PostgreSQL 和 Metasploit服务都运行了,可以运行 msfconsole,然后用 db_status 命令检验数据库的连通性。
msf & db_status
[*] postgresql connected to msf3
配置Metasploit随系统启动运行:如果你想PostgreSQL和Metasploit在开机时运行,你可以使用update-rc.d启用服务。
update-rc.d postgresql enable
update-rc.d metasploit enable
12.kali_linux安装java
apt-get install icedtea-7-plugin
阅读(11522) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。大家平时用什么工具画架构图?
大家平时用什么工具画架构图?推荐一个好点的画架构图的工具
visio, powerpoint
linux下用啥?
其实,和你美术功底有关。我看到很多精美的架构图都是viso画的,而我就画不出来来
dia的中文输入是硬伤。。。
--- 共有 3 条评论 ---
: 可以的呀。挺好用的dia轻巧,visio庞大多了
: 我是linux+fcitx,设置了也木效果
在菜单上设置输入法为“简单”,默认为“系统 windows IME”.GTK开发的跨平台软件都有这个毛病
引用来自“kiwivip”的答案我就用的dia,装起来方便~
嗯不错,轻便喜欢,不喜欢visio
有没有mac的
强烈推荐亿图图示专家
引用来自“少秋”的答案强烈推荐亿图图示专家嗯,这个读书的时候老师就让我们用这个,不错。。。
引用来自“jack cheng”的答案excel嗯 这东西画折线图比较好,呵呵linux(44)
Ubuntu(11)
以下内容参考或转载自
http://blog.csdn.net/flfihpv259/article/details/
参考了网上一堆的文章,还是出现了一堆的问题,一句话能用apt-get install安装的千万别自己下源码编译,没有新版本就GOOGLE 关键字+PPA找到新版本源,用add-apt-repository命令添加,然后update下,再apt-get install试试有没有,如果要学习另当别论。
一 原因分析:
根据网上和自己的编译经验分析觉得QT5.6之所以无法切换fcitx的输入法是因为qt5的库文件和插件都没有加入fcitx输入法管理工具的相关支持,可能能用ibus,因为我在platforminputcontexts目录中看到有,如此的话,那么要想使之支持fcitx就要自己添加这些库文件和插件了。这里是我编译好的文件,你可以直接下载用。&访问密码
使用方法如下两步
1.先进入QT5.6的目录,寻找“platforminputcontexts”这个输入法插件目录(如下),
anzyelay@ubuntu:Qt5.6.0$ find . -name platforminputcontexts
./Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
./5.6/gcc_64/plugins/platforminputcontexts
anzyelay@ubuntu:Qt5.6.0$ ls ./Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
libcomposeplatforminputcontextplugin.so
libibusplatforminputcontextplugin.so1234512345
你可以看到两个目录里面现有的插件是不是都有IBUS呢,把我压缩包里的*libfcitxplatforminputcontextplugin.so拷到这两个目录下就行。
2.再把压缩包中剩下的那6个库文件都放到“Qt5.6.0/Tools/QtCreator/lib/qtcreator”目录下或“Qt5.6.0/5.6/gcc_64/lib”目录下,我试过放一个就行,最好两个都放吧,可能有别的用处呢。。这两个目录都是库文件目录,其它版本的可参考找寻。
3.重启qtcreator程序,切换下输入法试试,不行就重启下机子,可能输入法的快捷切换键跟QT有冲突,可以试着改下看看。&
二 获得插件的方法
1. 使用apt-get安装
首先寻找了下自己电脑,一般在/usr/lib/x86_64--gnu/目录下,看看有没有qt5,可能只有qt4,于是只能安装fcitx-frontend-qt5,如果安装成功会在其下有个plugin目录,我们要的libfcitxplatforminputcontextplugin.so就有这里,你可以搜索下。&
一般安装会出如下问题,没有可用包,这时就要自己去找源更新后在安装了。反正我是找到了也一堆的依赖包缺失,没办法版本是12.04的。怎么弄都不行,用方法二了。
anzyelay@ubuntu:build$ sudo apt-get install fcitx-frontend-qt5
[sudo] password for anzyelay:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package fcitx-frontend-qt5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'fcitx-frontend-qt5' has no installation candidate
12345678910111234567891011
2.自己编译fcitx-qt5安装
编译的前提条件:
首先说明,编译fcitx-qt5要用cmake来生成Makefile编译文件,所以要先安装cmake程序。&
再来直接看cmake成功后的提示如下:
anzyelay@ubuntu:build$ cmake ..
-- checking for module 'fcitx-utils'
found fcitx-utils, version 4.2.0
-- checking for module 'fcitx-config'
found fcitx-config, version 4.2.0
-- The following OPTIONAL packages have been found:
* PkgConfig
-- The following REQUIRED packages have been found:
* ECM (required version &= 1.4.0)
* Qt5Widgets
* Qt5 (required version &= 5.1.0)
* Qt5Gui (required version &= 5.1.0)
* XKBCommon (required version &= 0.5.0) , Keyboard handling library using XKB data , &http://xkbcommon.org&
-- Configuring done
-- Generating done
-- Build files have been written to: /home/anzyelay/Downloads/fcitx-qt5/build
anzyelay@ubuntu:build$
1234567891011121314151617181920212223242512345678910111213141516171819202122232425
上面说明了要编译fcitx-qt5需要的依赖包有:ECM,XKBCommon,Qt5DBus,Qt5Widgets,Qt5,Qt5Gui,Qt5Core以及fcitx-utils 模块,Qt5这几个应该安装Qt5后就会有不用担心,fcitx-utils ,ECM,XKBCommon可能要自己安装。&
还有一点要说明,这个插件的编译要用到11的支持。如果你的GCC/G++版本低于4.8,那你必须先升级,以前的版本可能还可以屏蔽了C++11的支持,但这个版本的经我验证不行。
fcitx-qt5编译
假设你上述条件都有满足了,安装很容易,下载-&配置-&cmake-&make-&make intsall(这步可以不要,但有了新版不把QT4换了你忍得了)
1. 下载fcitx-qt5源码
anzyelay@ubuntu:Downloads$ git clone https:
anzyelay@ubuntu:Downloads$ cd fcitx-qt5/1212
2. 设置qmake的环境变量
qmake在你安装的QT的bin目录下,也可以在cmake时指定:
anzyelay@ubuntu:Downloads$ export PATH=/home/anzyelay/Qt5.6.0/5.6/gcc_64/bin/:$PATH11
如果不设置好像后面cmake时会出错如下:
CMake Error at CMakeLists.txt:29 (find_package):
Could not find a package configuration file provided by &Qt5& (requested
version 5.1.0) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
12345671234567
生成Makefile等相关编译配置,类似于./configure,你可以新建一个目录,在里面cmake使生成的配置都在新建目录里,这要错了也好清除。如下:
anzyelay@ubuntu:build$ mkdir build
anzyelay@ubuntu:build$ cd build
anzyelay@ubuntu:build$ cmake ..
cmake后面的“..”是说要用上层目录中的CMakeLists.txt文件来配置,你只要指明目录,它会自行去寻找CMakeLists.txt文件的。&
在这一步你会遇到很多问题,一般都是因为我上面说的几个编译前提条件造成的。我在下面罗列了些自己遇到的,还有别的自行百度之
4. make 和make install
5. copy编译好的插件和库到QT里面,具体参看我原因分析里说的方法。
cmake编译安装:
fcitx-qt5.需要的cmake版本必须是&2.8.12的,所以使用源码安装,你也可以试试直接安装,如果版本太低可以指定如下:
sudo apt-get instsll cmake=2.8.1211
实在不行了就老实编译吧。
有两种编译方法:&
先查看下cmake --version
anzyelay@ubuntu:Downloads$ cd cmake-2.8.12.2/
anzyelay@ubuntu:cmake-2.8.12.2$ cmake .
anzyelay@ubuntu:cmake-2.8.12.2$
anzyelay@ubuntu:cmake-2.8.12.2$ make install
anzyelay@ubuntu:cmake-2.8.12.2$ cmake --version
cmake version 2.8.12.2
12345671234567
没有旧版:
./bootstrap
sudo make install123123
ECM编译安装:
安装它主要是为了获得ECMConfig.cmake这个东西。方法通用的编译安装如下:
anzyelay@ubuntu:build$ wget https://launchpadlibrarian.net//extra-cmake-modules_1.4.0.orig.tar.xz
anzyelay@ubuntu:build$ ls
extra-cmake-modules_1.4.0.orig.tar.xz123123
anzyelay@ubuntu:build$ tar -Jxf extra-cmake-modules_1.4.0.orig.tar.xz
anzyelay@ubuntu:build$ cd extra-cmake-modules-1.4.0
anzyelay@ubuntu:extra-cmake-modules-1.4.0$ cmake .123123
anzyelay@ubuntu:extra-cmake-modules-1.4.0$ make
anzyelay@ubuntu:extra-cmake-modules-1.4.0$ sudo make install1212
编译后就得到了我们要的文件ECMConfig.cmake如下:
anzyelay@ubuntu:build$ find . -name ECMConfig.cmake
./extra-cmake-modules-1.4.0/ECMConfig.cmake1212
libxkbcommon编译安装
libxkbcommon的编译要用到yacc这条命令,先yacc -v或其它命令查看有没有yacc,没有就安装
anzyelay@ubuntu:Qt5.6.0$ which yacc
anzyelay@ubuntu:Qt5.6.0$ sudo apt-get install bison
anzyelay@ubuntu:Qt5.6.0$ which yacc
/usr/bin/yacc12341234
然后开始编译libxkbcommon,
anzyelay@ubuntu:libxkbcommon-0.5.0$ wget http:
anzyelay@ubuntu:libxkbcommon-0.5.0$ tar -Jxf libxkbcommon-0.5.0.tar.xz
anzyelay@ubuntu:libxkbcommon-0.5.0$ cd libxkbcommon-0.5.0/
anzyelay@ubuntu:libxkbcommon-0.5.0$ ./configure
anzyelay@ubuntu:libxkbcommon-0.5.0$ ./configure --disable-x11
anzyelay@ubuntu:libxkbcommon-0.5.0$ make
anzyelay@ubuntu:libxkbcommon-0.5.0$ sudo make install
1234567812345678
cmake 错误:
1. CMake 2.8.12 or higher is required. You are running version 2.8.7
我创建安装目录,进入后执行 cmake +上层目录(如果是在fcitx-qt5/目录下直接cmake . 就行)后出现版本低的错误如下
anzyelay@ubuntu:Downloads$ cd fcitx-qt5/
anzyelay@ubuntu:build$ cmake ..
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 2.8.12 or higher is required.
You are running version 2.8.7
-- Configuring incomplete, errors occurred!
anzyelay@ubuntu:build$ sudo apt-get install cmake=2.8.12
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.8.12' for 'cmake' was not found
1234567891011121312345678910111213
安装高版本的cmake,具体见上面的cmake编译安装
2. Could not find a package configuration file provided by “ECM”
anzyelay@ubuntu:build$ cmake ..
CMake Error at CMakeLists.txt:8 (find_package):
Could not find a package configuration file provided by &ECM& (requested
version 1.4.0) with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of &ECM& to CMAKE_PREFIX_PATH or set &ECM_DIR&
to a directory containing one of the above files.
If &ECM& provides a
separate development package or SDK, be sure it has been installed.
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeOutput.log&.
12345678910111213141516171819202122232425261234567891011121314151617181920212223242526
出错提示大意是缺少ECM提供的ECMConfig.cmake,ecm-config.cmake两个文件中的任意一个,去下载获得ECM源码,然后解压出来编译安装就行(具体见上面的ECM编译安装),错误提示也说了只要有两个文件中的一个就行了.如果没安装可以用ECM_DIR指明文件路径
3. need c++ 11 compatible compiler to compile
anzyelay@ubuntu:build$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test SUPPORT_CXX11
-- Performing Test SUPPORT_CXX11 - Failed
CMake Error at CMakeLists.txt:24 (message):
need c++ 11 compatible compiler to compile
-- Configuring incomplete, errors occurred!
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeOutput.log&.
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeError.log&.
123456789101112131415161718192021123456789101112131415161718192021
网上有的直接修改CMakeLists.txt文件,把检查CXX11的语句屏了,虽然CMAKE可行通过了,可后面make时会出问题,毕竟很多函数还是用到了C++11特性的.你也可以试试,或者把-std=c++11改为&-std=c++0x
21 #check_cxx_compiler_flag(“-std=c++11” SUPPORT_CXX11)&
23 #if(NOT SUPPORT_CXX11)&
24 # message(FATAL_ERROR “need c++ 11 compatible compiler to compile”)&
25 #endif()&
27 #set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -std=c++11 -Wall”)
如果出现未定义之类的错误还是升级GCC版本吧.&
有必要说明下,gcc升级到4.8之后,gdb也有必要升级到7.6之后,不然在调试时会出错(eclipse下出No source available,无法断点等错误),注意的是此文里有个重点没说,就是配置时要加上–with-,不然无法正常调试
4.Could NOT find XKBCommon_XKBCommon:
anzyelay@ubuntu:build$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version &0.26&)
-- Could NOT find XKBCommon_XKBCommon (missing:
XKBCommon_XKBCommon_LIBRARY XKBCommon_XKBCommon_INCLUDE_DIR)
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find XKBCommon (missing: XKBCommon_LIBRARIES XKBCommon) (Required
is at least version &0.5.0&)
Call Stack (most recent call first):
cmake/FindXKBCommon.cmake:30 (find_package_handle_standard_args)
CMakeLists.txt:31 (find_package)
-- Configuring incomplete, errors occurred!
123456789101112131415161718192021222324123456789101112131415161718192021222324
见上面安装libxkbcommon
5.package ‘fcitx-utils’ not found, package ‘fcitx-config’ not found
anzyelay@ubuntu:build$ cmake ..
-- checking for module 'fcitx-utils'
package 'fcitx-utils' not found
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
A required package was not found
Call Stack (most recent call first):
CMakeLists.txt:32 (pkg_check_modules)
-- checking for module 'fcitx-config'
package 'fcitx-config' not found
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
A required package was not found
Call Stack (most recent call first):
CMakeLists.txt:33 (pkg_check_modules)
-- The following OPTIONAL packages have been found:
* PkgConfig
-- The following REQUIRED packages have been found:
* ECM (required version &= 1.4.0)
* Qt5Widgets
* Qt5 (required version &= 5.1.0)
* Qt5Gui (required version &= 5.1.0)
* XKBCommon (required version &= 0.5.0) , Keyboard handling library using XKB data , &http://xkbcommon.org&
-- Configuring incomplete, errors occurred!
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeOutput.log&.
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeError.log&.1234567891011121314151617181920212223242526272829303132333435363712345678910111213141516171819202122232425262728293031323334353637
解决办法就是安装fcitx-libs-dev
sudo apt-get install fcitx-libs-dev 11
如果安装了还是出这个错误,那看看PkgConfig是不是用的arm 里的版本,”Found PkgConfig: /usr/local/arm/4.9.3/usr/bin/pkg-config (found version “0.28”)”,你可能弄到arm版 的pkg-config里去了,先把PATH里的交叉编译器的路径去掉试试
6.Could not find a package configuration file provided by “Qt5”
anzyelay@ubuntu:build$ cmake ..
CMake Error at CMakeLists.txt:29 (find_package):
Could not find a package configuration file provided by &Qt5& (requested
version 5.1.0) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of &Qt5& to CMAKE_PREFIX_PATH or set &Qt5_DIR&
to a directory containing one of the above files.
If &Qt5& provides a
separate development package or SDK, be sure it has been installed.
See also &/home/anzyelay/Downloads/fcitx-qt5/build/CMakeFiles/CMakeOutput.log&.123456789101112131415161718192021222324252627123456789101112131415161718192021222324252627
解决办法是指明路径,或export PATH下,不行就都试试吧
anzyelay@ubuntu:build$ cmake -DQt5_DIR=/home/anzyelay/Qt5.6.0/5.6/gcc_64/lib/cmake/Qt5 ..11
make出错:
1.error: ‘fcitx_utils_get_fcitx_path’ was not declared in this scope
Generating moc_fcitxqtconfiguiwidget.cpp
Generating moc_fcitxqtkeysequencewidget_p.cpp
[ 45%] Built target FcitxQt5WidgetsAddons_automoc
Scanning dependencies of target FcitxQt5WidgetsAddons
[ 50%] Building CXX object widgetsaddons/CMakeFiles/FcitxQt5WidgetsAddons.dir/fcitxqtconfiguifactory.cpp.o
/home/anzyelay/Downloads/fcitx-qt5/widgetsaddons/fcitxqtconfiguifactory.cpp: In member function ‘FcitxQtConfigUIWidget* FcitxQtConfigUIFactory::create(const QString&)’:
/home/anzyelay/Downloads/fcitx-qt5/widgetsaddons/fcitxqtconfiguifactory.cpp:59:62: error: ‘fcitx_utils_get_fcitx_path’ was not declared in this scope
/home/anzyelay/Downloads/fcitx-qt5/widgetsaddons/fcitxqtconfiguifactory.cpp: In member function ‘void FcitxQtConfigUIFactoryPrivate::scan()’:
/home/anzyelay/Downloads/fcitx-qt5/widgetsaddons/fcitxqtconfiguifactory.cpp:77:42: error: ‘FcitxXDGGetLibPath’ was not declared in this scope
make[2]: *** [widgetsaddons/CMakeFiles/FcitxQt5WidgetsAddons.dir/fcitxqtconfiguifactory.cpp.o] Error 1
make[1]: *** [widgetsaddons/CMakeFiles/FcitxQt5WidgetsAddons.dir/all] Error 2
make: *** [all] Error 2
anzyelay@ubuntu:fcitx-qt5$ grep
./widgetsaddons/fcitxqtconfiguifactory.cpp:
char* localepath = fcitx_utils_get_fcitx_path(&localedir&);
anzyelay@ubuntu:fcitx-qt5$ 1234567891011121314151612345678910111213141516
查了下fcitx_utils_get_fcitx_path没有譔定义,网上找了下发现在fcitx-libs-dev库中.&
fcitx-libs-dev包涵下面三个包,其中FcitxXDGGetLibPath在 fcitx-config/xdg.h中定义,低版本也没有该定义,安装个高版本的fcitx-libs-dev.&
* libfcitx-core - core functions of Fcitx&
* libfcitx-config - support library for Fcitx configurations&
* libfcitx-utils - utility support library for Fcitx
在安装时可能出错,要删除fcitx-frontend-qt5才能安装,因为我前面试着安装过fcitx-frontend-qt5但当时包没找到没安装成功,我还以为没关系,结果影响大大的,今后安装软件时如果不成功最好还是remove –purge下它省得出乱七八槽的事.如下出现的错误,及解决方法
anzyelay@ubuntu:build$ sudo apt-get install fcitx-libs-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fcitx-frontend-qt5 : Depends: fcitx-libs-qt5 but it is not installable
Depends: libqt5core5a (&= 5.2.0) but it is not installable
Depends: libqt5dbus5 (&= 5.0.2) but it is not installable
Depends: libqt5gui5 (&= 5.0.2) but it is not installable or
libqt5gui5-gles (&= 5.0.2) but it is not installable
Depends: qtbase-abi-5-3-0
fcitx-libs-dev : Depends: fcitx-bin (= 1:4.2.8.5-2~precise2) but 1:4.2.0-1 is to be installed
Depends: fcitx-libs (= 1:4.2.8.5-2~precise2) but 1:4.2.0-1 is to be installed
Depends: fcitx-libs-gclient (= 1:4.2.8.5-2~precise2) but it is not going to be installed
Depends: fcitx-libs-qt (= 1:4.2.8.5-2~precise2) but it is not going to be installed
Breaks: fcitx (& 1:4.2.8.5) but 1:4.2.0-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).123456789101112131415161718123456789101112131415161718anzyelay@ubuntu:build$ sudo apt-get remove fcitx-frontend-qt5 --purge
anzyelay@ubuntu:build$ sudo apt-get install fcitx-libs-dev 123123
注:重新装了下QT,发现输入法插件被我删了,到自己网盘下下来居然少了libfcitxplatforminputcontextplugin.so这个插件 ,打算再重新编译一次,结果又死在这个地方了,这次安装了也不行.我看了下我电脑上的/usr/include/fcitx-config/xdg.h文件果然是不对,没有FcitxXDGGetLibPath的定义,但看是有的,应该是fcitx-libs-dev版本不对,自己编译fcitx吧也是烦得要死,放弃了,还好只是缺个插件,我直接到插件目录make下绕过widgetsaddons库是可行的,重新打包上传了下.自己编译超级麻烦.
2.&/usr/include/c++/4.7/bits/stl_pair.h:126:45: error: use of deleted function ‘FcitxQtICData::FcitxQtICData(const FcitxQtICData&)
Scanning dependencies of target fcitxplatforminputcontextplugin
[ 81%] Building CXX object platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin.dir/qfcitxplatforminputcontext.cpp.o
In file included from /usr/include/c++/4.7/utility:72:0,
from /home/anzyelay/Qt5.6.0/5.6/gcc_64/include/QtCore/qcompilerdetection.h:928,
from /home/anzyelay/Qt5.6.0/5.6/gcc_64/include/QtCore/qglobal.h:74,
from /home/anzyelay/Qt5.6.0/5.6/gcc_64/include/QtGui/qwindowdefs.h:37,
from /home/anzyelay/Qt5.6.0/5.6/gcc_64/include/QtGui/qevent.h:37,
from /home/anzyelay/Qt5.6.0/5.6/gcc_64/include/QtGui/QKeyEvent:1,
from /home/anzyelay/Downloads/fcitx-qt5-1.0.5/platforminputcontext/qfcitxplatforminputcontext.cpp:20:
/usr/include/c++/4.7/bits/stl_pair.h: In instantiation of ‘constexpr std::pair&_T1, _T2&::pair(_U1&&, const _T2&) [with _U1 = long long unsigned int; &template-parameter-2-2& = void; _T1 = long long unsigned int; _T2 = FcitxQtICData]’:
/usr/include/c++/4.7/bits/stl_pair.h:273:72:
required from ‘constexpr std::pair&typename std::__decay_and_strip&_Tp&::__type, typename std::__decay_and_strip&_T2&::__type& std::make_pair(_T1&&, _T2&&) [with _T1 = long long unsigned int; _T2 = FcitxQtICD typename std::__decay_and_strip&_T2&::__type = FcitxQtICD typename std::__decay_and_strip&_Tp&::__type = long long unsigned int]’
/usr/include/c++/4.7/bits/hashtable_policy.h:462:24:
required from ‘std::__detail::_Map_base&_Key, _Pair, std::_Select1st&_Pair&, true, _Hashtable&::mapped_type& std::__detail::_Map_base&_Key, _Pair, std::_Select1st&_Pair&, true, _Hashtable&::operator[](_Key&&) [with _Key = long long unsigned int; _Pair = std::pair&const long long unsigned int, FcitxQtICData&; _Hashtable = std::_Hashtable&long long unsigned int, std::pair&const long long unsigned int, FcitxQtICData&, std::allocator&std::pair&const long long unsigned int, FcitxQtICData& &, std::_Select1st&std::pair&const long long unsigned int, FcitxQtICData& &, std::equal_to&long long unsigned int&, std::hash&long long unsigned int&, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, false, false, true&; std::__detail::_Map_base&_Key, _Pair, std::_Select1st&_Pair&, true, _Hashtable&::mapped_type = FcitxQtICData]’
/home/anzyelay/Downloads/fcitx-qt5-1.0.5/platforminputcontext/qfcitxplatforminputcontext.cpp:195:41:
required from here
/usr/include/c++/4.7/bits/stl_pair.h:126:45: error: use of deleted function ‘FcitxQtICData::FcitxQtICData(const FcitxQtICData&)’
In file included from /home/anzyelay/Downloads/fcitx-qt5-1.0.5/platforminputcontext/qfcitxplatforminputcontext.cpp:37:0:
/home/anzyelay/Downloads/fcitx-qt5-1.0.5/platforminputcontext/qfcitxplatforminputcontext.h:113:5: error: declared here
12345678910111213141516171234567891011121314151617
怀疑是GCC4.7版本不行.更新到4.9的版本,再次编译OK了,注意在编译前先把原来的配置和编译的清理下.
编译后拷贝出错
1.原来可以切换输入法了,但清理完编译后的文件后,又无法切换了
原因是相关的库没有COPY过去,解决方法:&
把fcitx-qt5-1.0.5文件夹下的dbusaddons 与 widgetsaddons中的动态库全拷贝到&
Qt5.6.0/Tools/QtCreator/lib/qtcreator或者Qt5.6.0/5.6/gcc_64/lib下。&
两个选一个就行.
2.插件和库都移过去了还是不能切换,甚至于其它软件也不能切换了
重启机子 吧,检查下fcitx开启了没,配置下切换快捷键。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:4339次
排名:千里之外
原创:37篇
转载:50篇
(16)(6)(24)(29)(8)(2)

我要回帖

更多关于 缘分这东西怎么说 的文章

 

随机推荐