cmake编译错误"recompile with -fPIC"

使用cmake首先编译了一个静态库,这个静态库链接其他的动态库(log4cpuls.so)。
然后在编译另外一个动态库的时候遇到如下链接错误:

 Linking CXX shared library libfcnetwork.so
/usr/bin/ld: ../ssqhelper/libssqhelper.a(cpu_binder.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
../ssqhelper/libssqhelper.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [fcnetwork/libfcnetwork.so] Error 1
make[1]: *** [fcnetwork/CMakeFiles/fcnetwork.dir/all] Error 2

我已经在cmake文件里加了
SET(CMAKE_CXX_FLAGS "-fPIC")
SET(CMAKE_C_FLAGS "-fPIC")
但还是报这个错误,请问是哪里需要修改吗?报错中提到了cpu_binder.cpp,这个文件里引用了sys/sysinfo.h sched.h pthread.h vector unordered_map 几个头文件。
以下是动态库的cmakelists

 PROJECT(fcnetwork)

SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -fPIC -ggdb ")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -fPIC")

SET(CMAKE_CXX_FLAGS "-fPIC")
SET(CMAKE_C_FLAGS "-fPIC")


ADD_DEFINITIONS(-std=c++11)

INCLUDE_DIRECTORIES(../3rd/log4cplus_1_2_1/include ../3rd/libevent_2_1_8/include include)

LINK_DIRECTORIES(../3rd/libevent_2_1_8/debug ../3rd/log4cplus_1_2_1/debug ./ssqhelper)

AUX_SOURCE_DIRECTORY(src DIR_SRC)

ADD_LIBRARY(${PROJECT_NAME} SHARED ${DIR_SRC})

TARGET_LINK_LIBRARIES(${PROJECT_NAME} ssqhelper log4cplus event-2.1 event_core-2.1 event_extra-2.1 event_pthreads-2.1 pthread ld)

下面是静态库的cmakelists

 cmake_minimum_required(VERSION 2.8)

PROJECT(ssqhelper)

SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb ")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

ADD_DEFINITIONS(-std=c++11)

INCLUDE_DIRECTORIES(../3rd/log4cplus_1_2_1/include)

LINK_DIRECTORIES(../3rd/log4cplus_1_2_1/debug)

INCLUDE_DIRECTORIES(include)

AUX_SOURCE_DIRECTORY(src DIR_SRC)

ADD_LIBRARY(ssqhelper STATIC ${DIR_SRC})

TARGET_LINK_LIBRARIES(${PROJECT_NAME} log4cplus)

1个回答

你这个先试试Make clean 下,再进行Make.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
error MSB3073: 命令“setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_
错误 1 error MSB3073: 命令“setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd”已退出,代码为 1。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 INSTALL 在编译osg出现的,大佬这是啥子错误???没搞明白
Unknown CMake command "add_clang_library".
CMake Error at clang-apply-replacements/CMakeLists.txt:5 (add_clang_library): Unknown CMake command "add_clang_library". 这个该怎解决?
cmake编译opencv出错:求指导
编译opencv时候,出现如下提示: CMake Error at calib3d/CMakeLists.txt:1 (define_opencv_module): Unknown CMake command "define_opencv_module". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.4) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. 为什么说define_opencv_module没有这个命令呢?我用的opencv2.3.1 我看了所有的cmakelist.txt,除了第一个androidcamera文件夹下是 IF(NOT ANDROID) MESSAGE( FATAL_ERROR "This project is for ANDROID only" ) ENDIF() if (BUILD_ANDROID_CAMERA_WRAPPER) add_subdirectory(camera_wrapper) endif() ........ 其他的都是以define_opencv_module开始的,请问该怎么弄呢? 另外有没有什么其他的可以快速查看opencv函数定义的方法呀?
跪求cmake交叉编译出错原因!!!
Linking CXX shared library ../../lib/libopencv_core.so /opt/EmbedSky/4.4.6/lib/gcc/arm-embedsky-linux-gnueabi/4.4.6/../../../../arm-embedsky-linux-gnueabi/bin/ld: ../../3rdparty/lib/libzlib.a(inflate.c.obj): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../../3rdparty/lib/libzlib.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [lib/libopencv_core.so] 错误 1 make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] 错误 2 make: *** [all] 错误 2 请问这是什么错误啊? opencv路径及版本:/usr/local/ Opencv2.4.1 cmake路径及版本:/usr/local/ cmake-2.8.12.2-Linux-i386 用户:root
请问一下在vscode里面调试的时候一旦遇到stl库函数都会跳转到那些库函数的源文件里面
开发环境是linux 调试器是GDB 已经尝试过开启pretty-printer,无效,依旧会跳转 就像图片里这样 ![图片说明](https://img-ask.csdn.net/upload/201905/25/1558718571_267295.png) 在GDB命令行下是这样的 ![图片说明](https://img-ask.csdn.net/upload/201905/25/1558718598_910562.png) 附上我的launch.json ``` { "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", // Resolved by CMake Tools: "program": "${command:cmake.launchTargetPath}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true }, { "text": "handle SIGPIPE nostop noprint pass", "description": "ignore SIGPIPE", "ignoreFailures": true } ] } ] } ```
android studio3.1.4 建C++新项目时cmake报的问题
Build command failed. Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app\.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja} -- Configuring incomplete, errors occurred! Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-". Open File Build command failed. Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app\.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja} -- Configuring incomplete, errors occurred! Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-". Open File
求熟悉Node.JS/MSBuild/Speedy.JS中任何一个的大神来答
最近在配置一个叫speedy.js的东西,需要用Node.JS执行 npm install --save-dev speedyjs-compiler MichaReiser/TypeScript#2.3.3-with-int 这条指令,运行中出以下一下的错误: Execute 'cmake -E chdir "D:\SpeedyJS\node\_modules\speedyjs-compiler\tools\binaryen" cmake --build . -- -j4' MSBUILD : error MSB1001: 未知开关。 开关:-j4 之前遇到类似的错误,好像是MSBUILD不识别-- -jx这条子命令。之前遇到教程上的代码有类似的句子直接把后面删掉就行了,现在是自动执行中出现了这么一句,好像在内存中,我就不知道去哪删了,求大神解答,有什么办法让MSBUILD识别这一句吗?我是在windows上跑的,听人说 -jx这种指令是linux里面的,难道只能装虚拟机吗? ![cmd报错](https://img-ask.csdn.net/upload/201712/05/1512457419_413478.png)
openpose cmake gui 编译报错caffe lib?
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: Caffe_LIB linked by target "openpose" in directory E:/openpose-1.5.1/src/openpose linked by target "Calibration" in directory E:/openpose-1.5.1/examples/calibration linked by target "OpenPoseDemo" in directory E:/openpose-1.5.1/examples/openpose linked by target "1_custom_post_processing" in directory E:/openpose-1.5.1/examples/tutorial_add_module linked by target "01_body_from_image_default" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "02_whole_body_from_image_default" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "09_keypoints_from_heatmaps" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "08_heatmaps_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "03_keypoints_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "12_asynchronous_custom_input_output_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "05_keypoints_from_images_multi_gpu" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "04_keypoints_from_images" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "06_face_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "07_hand_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "10_asynchronous_custom_input" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "11_asynchronous_custom_output" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "13_synchronous_custom_input" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "17_synchronous_custom_all_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "14_synchronous_custom_preprocessing" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "15_synchronous_custom_postprocessing" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "16_synchronous_custom_output" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "1_thread_user_processing_function" in directory E:/openpose-1.5.1/examples/tutorial_api_thread linked by target "2_thread_user_input_processing_output_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_thread Caffe_Proto_LIB linked by target "openpose" in directory E:/openpose-1.5.1/src/openpose linked by target "Calibration" in directory E:/openpose-1.5.1/examples/calibration linked by target "OpenPoseDemo" in directory E:/openpose-1.5.1/examples/openpose linked by target "1_custom_post_processing" in directory E:/openpose-1.5.1/examples/tutorial_add_module linked by target "01_body_from_image_default" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "02_whole_body_from_image_default" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "09_keypoints_from_heatmaps" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "08_heatmaps_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "03_keypoints_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "12_asynchronous_custom_input_output_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "05_keypoints_from_images_multi_gpu" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "04_keypoints_from_images" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "06_face_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "07_hand_from_image" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "10_asynchronous_custom_input" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "11_asynchronous_custom_output" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "13_synchronous_custom_input" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "17_synchronous_custom_all_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "14_synchronous_custom_preprocessing" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "15_synchronous_custom_postprocessing" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "16_synchronous_custom_output" in directory E:/openpose-1.5.1/examples/tutorial_api_cpp linked by target "1_thread_user_processing_function" in directory E:/openpose-1.5.1/examples/tutorial_api_thread linked by target "2_thread_user_input_processing_output_and_datum" in directory E:/openpose-1.5.1/examples/tutorial_api_thread Configuring incomplete, errors occurred! See also "E:/openpose-1.5.1/bulid/CMakeFiles/CMakeOutput.log".
python安装dlib模块出错
使用python -m pip install dlib 出错原因如下: python -m pip install dlib Collecting dlib Using cached dlib-19.1.0.tar.gz Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from command D:\python语言\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\administrator\\appdata\\local\\temp\\pip-build-yjbauy\\dlib\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\administrator\appdata\local\temp\tmpebunu3pip-wheel- --python-tag cp27: running bdist_wheel running build error: Cannot find cmake, ensure it is installed and in the path. You can install cmake using the instructions at https://cmake.org/install/ You can also specify its path with --cmake parameter. ---------------------------------------- Failed building wheel for dlib Running setup.py clean for dlib **Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error** Complete output from command D:\python语言\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\administrator\\appdata\\local\\temp\\pip-build-yjbauy\\dlib\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\administrator\appdata\local\temp\pip-xtjkek-record\install-record.txt --single-version-externally-managed --compile: running install running build error: Cannot find cmake, ensure it is installed and in the path. You can install cmake using the instructions at https://cmake.org/install/ You can also specify its path with --cmake parameter. ---------------------------------------- Command "D:\python语言\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\administrator\\appdata\\local\\temp\\pip-build-yjbauy\\dlib\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\administrator\appdata\local\temp\pip-xtjkek-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\administrator\appdata\loc 以前安装过python2和python3,现在已经把python3卸载了。 使用pip install XXX会出现错误,所以才用python -m pip install dlib windows 64为位的系统
配置mongodb-c-driver,cmake后编译libbson出错
本人学生小白,想配置mongodb-c-driver,在官网上下了mongo-c-driver-1.1.6和cmake,按照教程用cmake先生成libbson的vs工程文件,然后用VS2012编译,结果报错了... 错误如下: 错误 52 error MSB3073: 命令“setlocal "E:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd”已退出,代码为 1。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134 我的环境是window 64位操作系统,VS2012 第一次提问,跪谢各位大神!
【已经解决】 Win10环境下采用CMake编译OpenCV项目,提示无法找到opencv
1. 安装过OpenCV 4.1 win pack版本,同时安装的Intel Sensor SDK第三方软件中有opencv 3.4版本。 都按照操作要求添加了环境变量路径。 2. 采用CMake编译一个文件出现一直提示错误,这个错误应该是很多人都遇到过的。 CMakeLists.txt文件内容如下: cmake_minimum_required(VERSION 3.10) project(CvTrack) set(CMAKE_BUILD_TYPE Debug) set(OpenCV_DIR "D:/opencv/build") find_package(OpenCV REQUIRED) add_executable(CvTracking "main.cpp") target_link_libraries(CvTrack ${OpenCV_LIBS}) ********************************************************************************************************************************************************** 产生的错误提示: Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362. OpenCV ARCH: x86 OpenCV RUNTIME: vc14 OpenCV STATIC: OFF CMake Warning at D:/opencv/build/OpenCVConfig.cmake:166 (message): Found OpenCV Windows Pack but it has no binaries compatible with your configuration. You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): CMakeLists.txt:15 (find_package) CMake Error at CMakeLists.txt:15 (find_package): Found package configuration file: D:/opencv/build/OpenCVConfig.cmake but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND. ![图片说明](https://img-ask.csdn.net/upload/201912/09/1575860198_340992.png) 安装目录如下: ![图片说明](https://img-ask.csdn.net/upload/201912/09/1575860277_399662.png) ![图片说明](https://img-ask.csdn.net/upload/201912/09/1575860289_707476.png) 请问,这个问题如何解决呢?? /==/==/==/==/==/==/==/==/==/==/==/==/==/==/==/==/==/== 解决方法: 主要原因:根据提示,OpenCVConfig.cmake文件有问题;实际在OpenCV 4.1 wind pack安装版本中,OpenCVConfig.cmake在其它路径下也有一个文件,修改路径即。 其次原因:设定的工程名为CvTrack,在add\_excuatable中的TargetName不对应。所以:重新修正了一下CMakeLists.txt: cmake_minimum_required(VERSION 3.10) project(CvTrack) set(OpenCV_DIR "D:/opencv/build/x64/vc15/lib") # 错误修正 find_package(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(CvTrack "main.cpp") # 错误修正 target_link_libraries(CvTrack ${OpenCV_LIBS})
ubuntu 安装配置c++的opencv 报错
我在ubuntu 上打算安装和配置c++的Opencv, 下载了opencv3.1.0版本的代码,然后也手动的下载了ippicv_linux_20151201.tgz。创建build文件夹后Cmake命令已经可以编译过去了。 但是在执行make命令的时候,经常会报错: ``` [ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o [ 15%] Linking CXX shared library ../../lib/libopencv_core.so /usr/bin/ld: CMakeFiles/opencv_core.dir/src/va_intel.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC CMakeFiles/opencv_core.dir/src/va_intel.cpp.o: 无法添加符号: 错误的值 collect2: error: ld returned 1 exit status modules/core/CMakeFiles/opencv_core.dir/build.make:1382: recipe for target 'lib/libopencv_core.so.3.1.0' failed make[2]: *** [lib/libopencv_core.so.3.1.0] Error 1 CMakeFiles/Makefile2:1420: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 ``` 有时候在33%进度的时候报这个错误,有时候就在15%时候报。我整整试了一整天,查遍了各种解决方法都无济于事。请大侠们帮忙解决下吧。跪谢。 是否有直接加载已经编译好的库的方式,可以快速实现配置,因为我急需要用Opencv实现代码。感谢各位大侠了。
一个简单的CMakeLists语法问题
``` cmake_minimum_required( VERSION 2.8 ) project ( code_test ) set( CMAKE_CXX_COMPILER "g++" ) set( CMAKE_BUILD_TYPE "Debug" ) set( CMAKE_CXX_FLAGS "-std=c++11 -O0" ) include_directories( /home/lihua/anaconda3/include/python3.7m ) link_directories( /home/lihua/anaconda3/lib ) target_link_libraries(code_test libpython3.7m.so ) add_executable( run_test test.cpp ) target_link_libraries(run_test code_test) ``` 编译的时候在target_link_libraries为什么会报下面这个错误: Cannot specify link libraries for target "code_test" which is not built by this project.
Qt4.6.2 CMake编译错误
Qt4.6.2通过CMake编译是报错,error信息如下: In file included from /usr/local/Trolltech/Qt-4.6.2/include/QtGui/QtGui:118:0, from /home/project/cwabmapview.h:12, from /home/project/cesdpathview.h:22, from /home/project/cesddeviceview.h:19, from /home/project/cesddeviceview.cpp:1: /usr/local/Trolltech/Qt-4.6.2/include/QtGui/qinputdialog.h: At global scope: /usr/local/Trolltech/Qt-4.6.2/include/QtGui/qinputdialog.h:175:76: error: invalid use of ‘::’ int step = 1, bool *ok = 0, Qt::WindowFlags flags = 0); ^ /usr/local/Trolltech/Qt-4.6.2/include/QtGui/qinputdialog.h:178:86: error: invalid use of ‘::’ int decimals = 1, bool *ok = 0, Qt::WindowFlags flags = 0); 请问哪位遇到过相同问题?我该如何解决?
cmake编译MySQL时报错:the source directory "xxx" does not exist 怎么解决啊
系统ubuntu 13.04 \ gcc version 4.7.3 \ cmake version 2.8.10.1 安装完cmake后,在mysql解压缩目录下,使用如下命令行: cmake . \ -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DMYSQL_DATADIR=/data/mysql \ -DSYSCONFDIR=/etc \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_MEMORY_STORAGE_ENGINE=1 \ -DWITH_READLINE=1 \ -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock \ -DMYSQL_TCP_PORT=3306 \ -DENABLED_LOCAL_INFILE=1 \ -DWITH_PARTITION_STORAGE_ENGINE=1 \ -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ 报错,提示cake error:the source directory “/usr/local/src/software/mysql-5.6.11/DDEFAULT_COLLATION=utf8_general_ci” does not exist. 怎么回事啊?删掉最后一行,又会报倒数第二行找不到目录!
opencv 在as ndk中 始终抱找不到 undefined reference to 'cv::imwrite
就这几行简单的代码编译都不通过 ``` #include"opencv2/opencv.hpp" using namespace cv; int sss() { Mat image= imread( "1", CV_LOAD_IMAGE_COLOR); imwrite("2.bmp",image); return 1; } ``` CMakeLists 文件 ``` cmake_minimum_required(VERSION 3.4.1) add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) set(CMAKE_VERBOSE_MAKEFILE on) set(ocvlibs "C:\\BC\\OpenCV\\sdk\\native\\libs") # 设置include文件夹的地址 include_directories(C:/BC/lua-5.2.0/src) include_directories(C:\\BC\\OpenCV\\sdk\\native\\jni\\include) add_library(native-lib SHARED native-lib.cpp) # 设置opencv的动态库 add_library(libopencv_java SHARED IMPORTED ) set_target_properties(libopencv_java PROPERTIES IMPORTED_LOCATION "${ocvlibs}/${ANDROID_ABI}/libopencv_java3.so") find_library(log-lib log) target_link_libraries(native-lib android log libopencv_java ${log-lib} ) ``` build.gradle ``` apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.opencvtest" minSdkVersion 22 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "-std=c++11", "-frtti", "-fexceptions" abiFilters 'x86' } } } sourceSets{ main{ jniLibs.srcDirs = ['C:\\BC\\OpenCV\\sdk\\native\\libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" version "3.10.2" } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } ``` ![图片说明](https://img-ask.csdn.net/upload/201906/03/1559539210_344978.png)
ubantu16 安装opencv3.2 在 cmake时出项很多问题
FP16: Feature disabled -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package): By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Gui", but CMake did not find one. Could not find a package configuration file provided by "Qt5Gui" with any of the following names: Qt5GuiConfig.cmake qt5gui-config.cmake Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set "Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one. Could not find a package configuration file provided by "Qt5Widgets" with any of the following names: Qt5WidgetsConfig.cmake qt5widgets-config.cmake Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set "Qt5Widgets_DIR" to a directory containing one of the above files. If "Qt5Widgets" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package): By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Test", but CMake did not find one. Could not find a package configuration file provided by "Qt5Test" with any of the following names: Qt5TestConfig.cmake qt5test-config.cmake Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set "Qt5Test_DIR" to a directory containing one of the above files. If "Qt5Test" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package): By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Concurrent", but CMake did not find one. Could not find a package configuration file provided by "Qt5Concurrent" with any of the following names: Qt5ConcurrentConfig.cmake qt5concurrent-config.cmake Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set "Qt5Concurrent_DIR" to a directory containing one of the above files. If "Qt5Concurrent" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version "4.8.7") -- Checking for module 'gstreamer-base-1.0' -- No package 'gstreamer-base-1.0' found -- Checking for module 'gstreamer-video-1.0' -- No package 'gstreamer-video-1.0' found -- Checking for module 'gstreamer-app-1.0' -- No package 'gstreamer-app-1.0' found -- Checking for module 'gstreamer-riff-1.0' -- No package 'gstreamer-riff-1.0' found -- Checking for module 'gstreamer-pbutils-1.0' -- No package 'gstreamer-pbutils-1.0' found -- Checking for module 'gstreamer-base-0.10' -- Found gstreamer-base-0.10, version 0.10.36 -- Checking for module 'gstreamer-video-0.10' -- Found gstreamer-video-0.10, version 0.10.36 -- Checking for module 'gstreamer-app-0.10' -- Found gstreamer-app-0.10, version 0.10.36 -- Checking for module 'gstreamer-riff-0.10' -- Found gstreamer-riff-0.10, version 0.10.36 -- Checking for module 'gstreamer-pbutils-0.10' -- Found gstreamer-pbutils-0.10, version 0.10.36 -- Checking for module 'libxine' -- No package 'libxine' found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Checking for module 'libavresample' -- No package 'libavresample' found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- Found TBB: /usr/lib/x86_64-linux-gnu/libtbb.so CMake Error at cmake/OpenCVFindIPP.cmake:243 (include): include could not find load file: ...................... CMake Warning at CMakeLists.txt:1356 (message): The source directory is the same as binary directory. "make clean" may damage the source tree -- Configuring incomplete, errors occurred! See also "/home/zyz/文档/opencv-3.2.0/CMakeFiles/CMakeOutput.log". See also "/home/zyz/文档/opencv-3.2.0/CMakeFiles/CMakeError.log".
Android Studio的项目运行时报错:Error configuring CMake server
# 问题背景 我在跟着csdn上的一个教程尝试用Android Studio(3.4.1) 做一个变声器的app项目,fmod的so库都导入进项目的libs了 ,build.gradle和cmakelist.txt也都按照那个教程配置了。 [AS制作变声器](https://blog.csdn.net/a_thousand_miles/article/details/81150906 "") 后来报错说不支持armeabi,网上查了下发现NDK17以上都不 支持了,遂下载了ndk16b替换之前的ndk17,ndk的location 也都改过了,然后终于build成功,开心。 但是插上usb准备在手机上运行测试下的时候,出现这个报错 ,Google了也没解决掉。报错:Error configuring CMake server (E:\Android\Sdk\cmake\3.10.2.4988404\bin). ![图片说明](https://img-ask.csdn.net/upload/201909/29/1569748738_97421.png) ** 有大佬知道怎么回事儿吗?** ###代码(build.gradle) ``` apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.example.qq_voicechanger01" minSdkVersion 15 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "" abiFilters 'armeabi','x86' } } //编译平台 ndk{ abiFilters "armeabi","x86" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" version "3.10.2" } } //目录 sourceSets.main{ jniLibs.srcDirs = ['libs'] jni.srcDirs = [] } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } ``` ###代码(cmakelist.txt) ``` cmake_minimum_required(VERSION 3.4.1) find_library(log-lib log ) set(my_lib_path ${CMAKE_SOURECE_DIR}/libs) #添加第三方的so库 add_library( libfomd SHARED IMPORTED) #指明第三方so库的绝对路径 set_target_properties( libfmod PROPERTIES IMPORTED_LOCATION ${my_lib_path}/${ANDROID_ABI}/libfmod.so ) add_library( libfmodL SHARED IMPORTED ) set_target_properties( libfmodL PROPERTIES IMPORTED_LOCATION ${my_lib_path}/${ANDROID_ABI}/libfmodL.so ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") #添加我们需要编译的cpp绝对路径 add_library( changeVoice SHARED src/main/cpp/play_sound.cpp src/main/cpp/common.cpp src/main/cpp/common_platform.cpp ) #导入路径,使编译时能找到这个文件夹 include_directories(src/main/cpp/inc) #连接好三个路径 target_link_libraries( changeVoice libfmod libfmodL ${log-lib} ) ```
cmake编译报错,显示找不到VS
我装的VS015 Win64版,后安装cmake对LZO进行编译,发现cmake 运行后报错如下: CMake Error at CMakeLists.txt:51 (project): Generator Visual Studio 15 2017 Win64 could not find any instance of Visual Studio. Configuring incomplete, errors occurred! See also "E:/cmake\_test/CMakeFiles/CMakeOutput.log“ 求大神帮助!
130 个相见恨晚的超实用网站,一次性分享出来
相见恨晚的超实用网站 持续更新中。。。
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
win10系统安装教程(U盘PE+UEFI安装)
一、准备工作 u盘,电脑一台,win10原版镜像(msdn官网) 二、下载wepe工具箱 极力推荐微pe(微pe官方下载) 下载64位的win10 pe,使用工具箱制作启动U盘打开软件, 选择安装到U盘(按照操作无需更改) 三、重启进入pe系统 1、关机后,将U盘插入电脑 2、按下电源后,按住F12进入启动项选择(技嘉主板是F12) 选择需要启...
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
java源码分析 Arrays.asList()与Collections.unmodifiableList()
ArrayList支持所有的可选操作(因为一个UnsupportedOperationException异常都没有捕获到),所以要想拥有完备的功能,还是得使用ArrayList啊。 Arrays$ArrayList除了set()操作外,都不支持。 Collections$UnmodifiableRandomAccessList都不支持,名副其实的Unmodifiable不可修改。
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
Java学习笔记(七十二)—— Cookie
概述 会话技术: 会话:一次会话中包含多次请求和响应 一次会话:浏览器第一次给服务器发送资源请求,会话建立,直到有一方断开为止 功能:在一次会话的范围内的多次请求间,共享数据 方式: 客户端会话技术:Cookie,把数据存储到客户端 服务器端会话技术:Session,把数据存储到服务器端 Cookie 概念:客户端会话技术,将数据存储到客户端 快速入门: 使用步骤: 创建C...
程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、 熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、 熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、 熟悉Nginx、tomca...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
程序员该看的几部电影
1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?如何...
蓝桥杯知识点汇总:基础知识和常用算法
此系列包含蓝桥杯所考察的绝大部分知识点,一共有==基础语法==,==常用API==,==基础算法和数据结构==,和==往年真题==四部分,虽然语言以JAVA为主,但算法部分是相通的,C++组的小伙伴也可以看哦。
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
实现简单的轮播图(单张图片、多张图片)
前言 刚学js没多久,这篇博客就当做记录了,以后还会完善的,希望大佬们多多指点。ps:下面出现的都是直接闪动,没有滑动效果的轮播图。 单张图片的替换 · ...
强烈推荐10本程序员在家读的书
很遗憾,这个春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终将会...
Linux自学篇——linux命令英文全称及解释
man: Manual 意思是手册,可以用这个命令查询其他命令的用法。 pwd:Print working directory 意思是密码。 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mkdir:Make directory ...
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。
智力题(程序员面试经典)
NO.1  有20瓶药丸,其中19瓶装有1克/粒的药丸,余下一瓶装有1.1克/粒的药丸。给你一台称重精准的天平,怎么找出比较重的那瓶药丸?天平只能用一次。 解法 有时候,严格的限制条件有可能反倒是解题的线索。在这个问题中,限制条件是天平只能用一次。 因为天平只能用一次,我们也得以知道一个有趣的事实:一次必须同时称很多药丸,其实更准确地说,是必须从19瓶拿出药丸进行称重。否则,如果跳过两瓶或更多瓶药...
Java与Python学习通法(1)和(2)序言和编程语言发展史怎么学
dd
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
阿里架构师花近十年时间整理出来的Java核心知识pdf(Java岗)
由于细节内容实在太多啦,所以只把部分知识点截图出来粗略的介绍,每个小节点里面都有更细化的内容! 整理了一份Java核心知识点。覆盖了JVM、锁、并发、Java反射、Spring原理、微服务、Zookeeper、数据库、数据结构等大量知识点。 欢迎大家加入java学习交流社区 点击加入 可获取文中文档 小编推荐: ...
Python基础知识点梳理
python常见知识点梳理 摘要: 本文主要介绍一些平时经常会用到的python基础知识点,用于加深印象。python的详细语法介绍可以查看官方编程手册,也有一些在线网站对python语法进行了比较全面的介绍,比如菜鸟教程: python3 教程|菜鸟教程 本文主要是介绍基础语法,操作实例在另一篇博客中单独介绍: python语言介绍 python是一门解释型语言,python的设计目标: 一门...
2020年2月全国程序员工资统计,平均工资13716元
趋势 2020年2月,中国大陆程序员平均工资13716员,比上个月增加。具体趋势如图: 各主要程序员城市工资变化 城市 北京,上海,深圳,杭州,广州四地的工资最高。 city 平均工资 最低工资 中位数 最高工资 招聘人数 百分比 北京 18098 3750 15000 45000 20529 9.53% 深圳 16903 5750 15000 37500 30941 1...
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad...
为什么说程序员做外包没前途?
之前做过不到3个月的外包,2020的第一天就被释放了,2019年还剩1天,我从外包公司离职了。我就谈谈我个人的看法吧。首先我们定义一下什么是有前途 稳定的工作环境 不错的收入 能够在项目中不断提升自己的技能(ps:非技术上的认知也算) 找下家的时候能找到一份工资更高的工作 如果你目前还年轻,但高不成低不就,只有外包offer,那请往下看。 外包公司你应该...
相关热词 c#开发的dll注册 c#的反射 c# grid绑定数据源 c#多线程怎么循环 c# 鼠标左键 c# char占位符 c# 日期比较 c#16进制转换为int c#用递归求顺序表中最大 c#小型erp源代码
立即提问