arch

Linux shell

我的未来我决定 提交于 2019-12-03 06:29:06
// 在桌面菜单(.....)管理出右键 得到桌面设置对话框 //chmod + x ...py 赋予权限 //验证 ssh // /etc/init.d/ssh status // vi /etc/ssh/sshd_config 服务配置 // /etc/init.d/networking restart 重启网络 //安装cmake //wget https://github.com/Kitware/CMake/releases/download/v3.15.0-rc3/cmake-3.15.0-rc3-Linux-x86_64.sh 参考链接:https://jingyan.baidu.com/article/3c343ff7e366820d3679637f.html 重置完之后发现网络适配器显示未托管。 解决办法: leafpad /etc/NetworkManager/NetworkManager.conf 把最后一行的managed=false改为managed=true。 保存重启即可。 // 安装谷歌 // wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb // dpkg -i google-chrome-stable_current_amd64.deb //

crtbegin_so.o missing for android toolchain (custom build)

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have compiled gdc together with gcc using the android build-gcc.sh script, and have included a new stub in build/core/definitions.mk to deal with D language files as a part of the build process. I know things are compiling OK at this point, but my problem is linking: When I build a project, I get this error: ld: crtbegin_so.o: No such file: No such file or directory This is true for regular c-only projects as well. Now I ran a quick find in my build directory, and found that the file (crtbegin_so.o) does exist within the sysroot I

CMake does not find Visual C++ compiler

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After installing Visual Studio 2015 and running CMake on a previous project, cmake errors stating that it could not find the C compiler. The C compiler identification is unknown The CXX compiler identification is unknown CMake Error at CMakeLists.txt:4 (PROJECT): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:4 (PROJECT): No CMAKE_CXX_COMPILER could be found. I went searching for cl.exe in the Visual Studio folder, C:\Program Files\Microsoft Visual Studio 14.0 , and could not find it. How do I set up CMake to work on

How to build OpenSSL as unversioned shared lib for Android?

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to build the latest OpenSSL for Android following Compiling the latest OpenSSL for Android . I manage to build the static libs. However I try to compile the shared libs. To do so I run: ./Configure android-armv7 shared This compiles. Problem is that this creates a versioned lib like libssl.so.1.0.0, which is not supported by Android. Just rename does not do because of SONAME is still pointing to the versioned filename. Different problem I have is when trying to the create the libs for old armeabi platform. When I run: ./Configure

Cross Compiling libevent for Android

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm stuck trying to cross-compile libevent to Android and I'd like to know what I'm doing wrong and get some assistance. The version I'm trying to build is libevent-2.0.19-stable I started following the steps described at http://warpedtimes.wordpress.com/2010/02/03/building-open-source-libraries-with-android-ndk/ and how to rewrite the Makefile into android.mk? The Target Device is a Samsung Galaxy S2 running cyanogenMod 7 After several attempts, the best I did was by running the following steps: 1) Install android NDK and download libevent

Compiling the latest OpenSSL for Android

匿名 (未验证) 提交于 2019-12-03 02:18:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to generate the shared library for the (.so) files of the OpenSSL1.0.1c for the Android. I found that they have added three options for compiling for the Android in the android script. ./Configure android-armv7 (or) ./Configure android-x86 (or) ./Configure android once I configured for the OS and then try to compile, its throwing errors. Currently I am working x86 windows7 and installed Cygwin, Android sdk R20, Android NDK r8 sh-4.1$ make making all in crypto... make[1]: Entering directory `/cygdrive/d/SourceCodes/OpenSSL/openssl

Build OpenCV with CUDA support

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im use CMake to generate visual studio 2013 solution. Next im try to build it, but get follow error: Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/Debug/cuda_compile_generated_gpu_mat.cu.obj nvcc fatal : Unsupported gpu architecture 'compute_11' Im try version 2.10 and 3.0 with cuda 6.5 and 7.0. CUDA_ARCH_BIN set to : 1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5 回答1: Another option. Ubuntu 14.04, GTX Titan X, opencv-2.4.10 cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_TIFF=ON -D BUILD

Python code to read registry

匿名 (未验证) 提交于 2019-12-03 02:13:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: from _winreg import * """print r"*** Reading from SOFTWARE\Microsoft\Windows\CurrentVersion\Run ***" """ aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall") for i in range(1024): try: asubkey=EnumKey(aKey,i) val=QueryValueEx(asubkey, "DisplayName") print val except EnvironmentError: break Could anyone please correct the error...i just want to display the "DisplayName" within the subkeys of the key the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall This is the

Creating iOS Framework for device and Universal configuration with bitcode enable and bitcode disable from Command Line terminal

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: #!/bin/sh UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal # make sure the output directory exists mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" # Step 1. Build Device and Simulator versions xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO \ -configuration ${CONFIGURATION} -sdk iphoneos \ BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} \ -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" \ BUILD_ROOT="${BUILD_ROOT}" clean build #

i have an error when executing “from lxml import etree” in the python command line after successfully installed lxml by pip

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: bash - 3.2 $ pip install lxml - 2.3 . 5.tgz Unpacking ./ lxml - 2.3 . 5.tgz Running setup . py egg_info for package from file : ///Users/apple/workspace/pythonhome/misc/lxml-2.3.5.tgz Building lxml version 2.3 . 5. Building with Cython 0.17 . Using build configuration of libxslt 1.1 . 27 Building against libxml2 / libxslt in the following directory : /usr/ local / lib warning : no previously - included files found matching '*.py' Installing collected packages : lxml Running setup . py install for lxml Building lxml version 2.3 . 5.