CMake Error at src/cmake/macros/FindMySQL.cmake:302 (message):
Could not find MySQL headers! Please install the development libraries and
headers
Call Stack (most recent call first):
CMakeLists.txt:102 (find_package)
The problem I'm facing is in the configuration step.
Unsure of what exactly I have to change, is it just the path to the server? I.e.:/opt/homebrew/var/mysql/
I've tried that, and it's throwing the above error.
https://www.azerothcore.org/wiki/macos-core-installation#:~:text=Configuring%20for%20compiling,lib/libcrypto.dylib%22
I've tried identifying the path of the sql server, installed with Brew. Including that in the script.
Related
If want to run dotnet-trace on Linux, against an application that ships with its own .NET Core runtime. When I run it, however, I get:
A fatal error occurred. The required library libhostfxr.so could not be found.
If this is a self-contained application, that library should exist in [/home/user/.net/dotnet-trace/RMBGJOBRwpkX5Kvpq_FShF5s1UmJMO8=/].
If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].
I located the libhostfxr.so library at /home/user/app/libhostfxr.so, then executed DOTNET_ROOT=/home/user/app/ dotnet-trace, but got the same error.
How do I go from the path of this library to the correct setting for DOTNET_ROOT?
According to strace, it is looking for the file /home/user/app/host/fxr which does not exist.
I ended up installing the .NET version that matched the application I was trying to debug using the install script. (I found this by using strings libhostfxr.so; perhaps there's a better way.)
A little confusingly, the runtime version 3.1.28 is not the same as the corresponding SDK version 3.1.422, which I installed with:
$ wget -O - https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 3.1.422
It can also be downloaded from versionsof.net which is not an official site, but it links to the files hosted by Microsoft.
This process installed /home/user/.dotnet/host/fxr/3.1.28/libhostfxr.so and I could then run DOTNET_ROOT=/home/user/.dotnet/ dotnet-trace.
I'm trying to run cutechess cli on my computer and am running into problems that I dont understand. I've followed all the instructions here and in the README and they do not work. cutechess cli asks for qt5 but I was only able to install qt6, which is supposed to still be compatible. I've added C:\Qt\6.4.1\mingw_64\lib\cmake\Qt6 as CMAKE_PREFIX_PATH in my system variables and receive the following error.
`
>cmake ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
CMake Error at C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
The imported target "Qt5::Core" references the file
"C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/Qt5Core.lib"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
but not all the files it references.
Call Stack (most recent call first):
C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:50 (_qt5_Core_check_file_exists)
C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:207 (_populate_Core_target_properties)
C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:33 (find_package)
`
The file "C:/Qt/Tools/QtDesignStudio/qt5_design_studio_reduced_version/lib/Qt5Core.lib" exists on my computer, but it is a .prl file instead of a .lib. All of the files in the \qt5_design_studio_reduced_version\lib folder are .prl.
I installed QT6, added the Qt6 folder to path, and received an error saying that there are missing files.
I just installed a clean install of the new .NET Core SDK on a CentOs 7 box. I had a different Linux VM I was running to test this and received the same error there.
I am building my application in VS 2017 on a Windows box and copying the project file over to the Linux box to test it. I am coming from netframework environment and trying to learn dotnetcore so I am sure this is probably just a newb issue. Here is what I am doing.
I run a dotnet restore, which works without error.
I run a dotnet build, which I receive a
Build succeeded.
0 Warning(s)
0 Error(s)
Then I run a dotnet run and receive the following error:
Error:
An assembly specified in the application dependencies manifest (apf-ws.deps.json) was not found:
package: 'System.Text.Encoding.CodePages', version: '4.3.0'
path: 'runtimes/unix/lib/netstandard1.3/System.Text.Encoding.CodePages.dll'
Nowhere in my code do I actually reference any type of Encoding explicitly. I have tried including System.Text.Encoding.CodePages in my project to see if that would add a reference and bring in the library to ignore the one it is looking for, but it doesn't help. Anyone have any ideas of what would be causing this?
I tried several things before wiping the directory out in Linux and copying the files over again. In doing so it seemed to fix the problem.
I write a code in qt creator under Ubuntu (vmware one). the code compiled and run on my computer correctly. But when I try to compile the code on university supercomputer it give the following error:
./Test02_Qt: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
It should be added that I tried to compile my code on the supercomputer using make command and I got the following error :
error while loading shared libraries: libstdc++.so.6: cannot open shared object file; no such file or directory
make: *** [Makefile] Error 127
please help me on this issue.
Regards
You should compile your software on the target machine to ensure that all libraries match. Compiling against library version A on computer 1 and then running against version B on computer 2 might outright fail or have side-effects.
Have a look at this:
error while loading shared libraries: libstdc++.so.6
This is a common error if operating system versions do not match (most probably, the supercomputer has an older version of libstdc++ installed).
To understand why your compilation on the target machine does not work, we need more information on your build setup. Are you using a plain Makefile? Autotools? QMake? CMake? Normally your build system should not dictate a specific version of libstdc++ and it might be you have to re-initialize it or edit the Makefile.
I am currently trying to compile a Qt application that I downloaded from github on my windows machine. I did not have any trouble compiling this on Ubuntu so I was hoping someone could help shed some light on my problem.
I am using Qt-Creator to compile the program.
The exact error messages are:
:-1: error: cannot find -lQt5Guid
:-1: error: cannot find -lQt5Cored
collect2.exe:-1: error: error: ld returned 1 exit status
My first idea when reading those messages was that the windows PATH variable does not include the locations of the libraries. But when I checked, my PATH contained the following:
C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin;C:\Qt\Qt5.1.0\Tools\mingw48_32\bin;...
Which exists and contains what looks like the correct Dlls.
I am using MingGW rather than the visual studio compiler (although i have it available if needs be).
How can I fix this error and what could be causing it?
EDIT: When I run qmake there does not seem to be any problem. The errors come up when I try to build the project.
Cored is a fundimental part of Qt so it looks like the linker can't see any of the Qt libraries.
Did you install Qt 5.1.0 SDK?
A few things to check:
Do you have a line like this in your .pro file?:
QT += core
You mentioned "Projects section my path" are you talking about the windows PATH variable? these paths should also be in that. You can check with dos command:
echo %PATH%
If these paths are not there, for a test, add them in if this works then something has gone wrong with the local PATH setup (i.e. when running qt creator - if you are using qt creator?)
Finally just check that the debug version of the Qt5Cored.dll exists in that folder (C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin) because it looks like you are building a debug build (which is why your program is looking for 'd' post-fixed name Qt5Cored and not Qt5Core).