I am running the dockerized version of the latest build.
My issue is that when I add the mod-eluna-lua-engine module, I receive the following error:
[ 16%] Building CXX object src/common/CMakeFiles/common.dir/Database/Implementation/WorldDatabase.cpp.o
/azerothcore/src/common/Database/QueryResult.cpp:189:18: fatal error: out-of-line definition of 'GetFieldName' does not match any declaration in 'ResultSet'
char* ResultSet::GetFieldName(uint32 index) const
^~~~~~~~~~~~
1 error generated.
make[2]: *** [src/common/CMakeFiles/common.dir/Database/QueryResult.cpp.o] Error 1
I've searched and haven't found any similar reports, so it has to be me, right? What is it that I am missing?
Edit:
Running cmake is resulting in the following:
CMake Error at src/cmake/platform/unix/settings.cmake:22 (configure_file):
configure_file attempted to configure a file:
/mnt/wowstuff/server/cmake_uninstall.cmake into a source directory.
Call Stack (most recent call first):
src/cmake/macros/CheckPlatform.cmake:15 (include)
CMakeLists.txt:90 (include)
Final edit: after properly rerunning cmake, copying the build files as needed, then deleting the build cache and rerunning acore-docker-build, the compile worked just fine.
The resolution to this problem was to 1. Properly re-run cmake, building to another folder, and copying the build files into my Azerothcore environment. Once I had done that and deleted the docker/build/cache directory, I was able to successfully compile and run.
Hope it helps another new-to-c-person out there!
Related
I have a problem with the eclipse IDE with ESP-IDF, every time that i build a project i get this massage-
Building in: C:\Users\eclipse-workspace06\blynk\build
Configuring in: C:\Users\eclipse-workspace06\blynk\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=D:\espidfeclipse\esp-idf-v5.0\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 C:\Users\eclipse-workspace06\blynk
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1")
CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/build.cmake:181 (file):
file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
-- Configuring incomplete, errors occurred!
exactly three arguments.
Call Stack (most recent call first):
D:/espidfeclipse/esp-idf-v5.0/tools/cmake/idf.cmake:53 (__build_init)
D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:5 (include)
CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:18 (message):
Internal error, PYTHON build property not set correctly.
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): C:\Users\eclipse-workspace06\blynk\build
Total time taken to build the project: 246 ms
The code is an example code that works on VScode and Arduino, i installed and reinstalled every thing 100 times already. ( and if i build regular c++ it works alright)
I will be grateful for any help i can get.
Thank you #drescherjm and #Tsyvarev for putting me on the right path.
I solved the problem and the solution is very odd. what i did was to delete all the python instances from the different environment variables and it worked for some bizarre reason.
I'm trying to use MongoDB with rviz. Hence, I tried compiling warehouse_ros_mongo after doing a git-clone to ~/catkin_ws/src folder. However, the CMake fails anyone who has any idea on how to fix it. Otherwise, can some recommend a package to use with ROS in order to connect the MongoDB and interact with rviz/moveit.
Error encountered when compiling:
CMake Error at /home/zelix/catkin_ws/devel/share/warehouse_ros/cmake/warehouse_rosConfig.cmake:113 (message): Project 'warehouse_ros' specifies '/home/zelix/catkin_ws/src/warehouse_ros/include' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/zelix/catkin_ws/src/warehouse_ros//home/zelix/catkin_ws/src/warehouse_ros/include'. Check the website 'http://ros.org/wiki/warehouse_ros' for information and consider reporting the problem. Call Stack (most recent call first): /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) warehouse_ros_mongo/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/zelix/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/zelix/catkin_ws/build/CMakeFiles/CMakeError.log".
You’re missing an include directory from the package.
Do mkdir /home/zelix/catkin_ws/src/warehouse_ros/include
I'm trying to install darknet on Windows 10 using the instructions in the following link:
https://github.com/kiyoshiiriemon/yolov4_darknet/tree/b504cc3b4e47617c2cf28c37a6581fc733854f06
However, I got the following error through Windows PowerShell:
-- Configuring x64-windows CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:106 (message):
Command failed: ninja -v
Working Directory: C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\hedey\vcpkg\buildtrees\opencv4\config-x64-windows-out.log
Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:312 (vcpkg_execute_required_process) ports/opencv4/portfile.cmake:280 (vcpkg_configure_cmake) scripts/ports.cmake:135 (include)
Error: Building package opencv4:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: opencv4:x64-windows Vcpkg version:
2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.
I'm totally stuck getting a solution for this issue.
This is the complete log file can be found in the following link:
https://www.dropbox.com/s/f30g354t26n1mvg/log_files.zip?dl=0
I noticed that the png.h file exists at C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng16 instead of C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng (which is where it's being searched for as in the CMakeError file.
Also, both of png.h and pthread.h exist at C:\Users\hedey\vcpkg\installed\x64-windows\include.
EDIT:
The above problem was solved after I updated vcpkg (using git pull).
However, I got another error as follows:
FAILED: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj
cmd.exe /C "cd /D C:\Users\hedey\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\core\CMakeFiles\cuda_compile_1.dir\src\cuda && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -E make_directory C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -D verbose:BOOL=OFF -D build_configuration:STRING=Debug -D generated_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj -D generated_cubin_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj.cubin.txt -P C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake"
nvcc fatal : Unsupported gpu architecture 'compute_30'
CMake Error at cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake:220 (message):
Error generating
C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj
I faced this problem before with the cmake gui, and it can be solved by setting CUDA_ARCH_BIN to the value that's suitable to the GPU (6.1 in my case).
However, I don't know how to solve it in case of installing using vcpkg. I tried to find a file where I can edit, and I think it's 'OpenCVDetectCUDA.cmake'. I tried some edits to that file, and I'm still getting the same error. Could you pls help me overcome this issue?
I'am trying to build a simulation environment by using gazebo and ROS and I'm facing with the problem bellow with CMake. I have tried to understand what the problem it is - a lost dependence or is there a missing package, but this didn't lead me to the correct solution. Please help.
Build output:
ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python3
"/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py"
"/opt/ros/kinetic/share/catkin/cmake/../package.xml"
"/home/evadro/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
returned error code 1
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
/opt/ros/kinetic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:56 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/evadro/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/evadro/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I get the following error when trying to configure OpenCV using CMAKE on windows:
CMake Warning at cmake/OpenCVUtils.cmake:865 (message):
Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
d41d8cd98f00b204e9800998ecf8427e (expected:
89c783eee1c47bfc733f08334ec2e31c)
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
Downloading opencv_ffmpeg.dll...
CMake Error at cmake/OpenCVUtils.cmake:888 (file):
file DOWNLOAD MD5 mismatch
for file: [C:/research/opencv300/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
expected MD5 sum: [89c783eee1c47bfc733f08334ec2e31c]
actual MD5 sum: [d41d8cd98f00b204e9800998ecf8427e]
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
CMake Error at cmake/OpenCVUtils.cmake:892 (message):
Failed to download opencv_ffmpeg.dll. Status=1;"unsupported protocol"
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
Configuring incomplete, errors occurred!
I tried downloading opencv_ffmpeg.dll manually, but the configure process didn't work.
Can you help me, how to fix that?
Had the same problem recently with opencv 3.1.0. Resolved the situation by using corresponding dll(s) from the ./build/bin directory of an opencv extract. As for ffmpeg_version.cmake, grabbed it from the link given. Replace the files under ./sources/3rd party/ffmpeg then reconfigure cmake.
You have to copy the files into your source folder, where you want to built from.
In my case it is then
C:\opencv_source\3rdparty\ffmpeg\downloads\35fe6ccdda6d7a04e9056b0d73b98e76
C:\opencv_source\3rdparty\ffmpeg\downloads\89c783eee1c47bfc733f08334ec2e31c
C:\opencv_source\3rdparty\ffmpeg\downloads\8606f947a780071f8fcce8cbf39ceef5
An they include these files in the same order
opencv_ffmpeg_64.dll
opencv_ffmpeg.dll
ffmpeg_version.cmake
Have a look into the file ffmpeg_cmake what CMake expects as md5-hash as folder label
Iam running into the same issue. In my opinion it is an issue through our company network and proxyserver.
So i tried to download the file manually from home and put it on my USB flash drive. Please look into your OpenCV source path. There you can find an structure like ...
"...\3rdparty\ffmpeg\downloads\HASH\opencv_ffmpeg.dll"
CMake tries to download the file, but can't pass through proxy, so the file is 0 Byte and md5 checksum fails.
In "...\OpenCV_SOURCE_FOLDER\3rdparty\ffmpeg" you can find a makefile named "ffmpeg.cmake" with the URL CMake tries to download from.
In my case I downloaded the file from the following URL:
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/89c783eee1c47bfc733f08334ec2e31c/ffmpeg/opencv_ffmpeg.dll
Your checksum parameter could be different (depending probably on your OpenCV version)! It is possible that you have to do the same for "opencv_ffmpeg_64.dll" and "ffmpeg_version.cmake".
Best regards
I had the same problem; when I switched to Ubuntu, I didn't have this problem anymore. Maybe you can change your OS?
The checksum error happens because it is an issue in the software package and the files might not be there in the directory but openCV will download it in the process, just make sure that you are connected to internet without using VPN or proxy as it will get blocked by the firewall.