Hi all,
You are all doing good.
This is my first conversation thread here, so expect trivial question.
I have to ask where can I find Developer Groups for Orthanc Developers. as far as I know, this group is meant for users, meanwhile I am facing issues with Source Code Builds in my computer.
Can somebody please direct me to the right place?
THANK YOU and CHEERS!
PS. It doesn’t have to be only GOOGLE GROUPS. Discord, Slack or any sort of community will be helpful.
Hello,
This Google Group is the only discussion forum about Orthanc, including for developers.
Regards,
Sébastien-
Ok thank you!
by the way I am facing issues with Orthanc Source Builds. Should I start a new thread or state them directly to you. As far as I have read in Cmake files, you are the author of those.
Regards, Hamza
I receive way too many “private mails” on my e-mail address.
Everything about Orthanc should be discussed on this forum.
Ok.
I have some problem to discuss. I have been trying to build Orthanc source code using MSVC 2019 with Cmake.
I think I have the build going on well but there is an error related to cmake files, especially its new build mechanism - Ninja.
Here’s what I have done.
I followed the instructions for msvc19 build from https://hg.orthanc-server.com/orthanc/file/default/INSTALL
which state that…
for Native 64-bit Windows build with Microsoft Visual Studio 2019 (msbuild)****
# cd C:\users\Hamxa\Orthanc\Build
# cmake -G “Visual Studio 16 2019” -A x64 -T host=x64 -DSTATIC_BUILD=ON -DBOOST_LOCALE_BACKEND=icu -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DALLOW_DOWNLOADS=ON C:\user\hamxa\Orthanc\OrthancServer
What I got.
following error in the ErrorList section of MSVC2019.
Severity Code Description Project File Line Suppression State
Error CMake Error: Error: generator : Ninja
Does not match the generator used previously: Visual Studio 16 2019
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
‘C:\Windows\system32\cmd.exe’ ‘/c “%SYSTEMROOT%\System32\chcp.com 65001 >NUL && “C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe” -G “Ninja” -DCMAKE_BUILD_TYPE:STRING=“Debug” -DCMAKE_INSTALL_PREFIX:PATH=“C:\Users\hamxa\Orthanc\Build\CMakeFiles\CMakeTmp\out\install\x64-Debug” -DCMAKE_C_COMPILER:FILEPATH=“C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe” -DCMAKE_MAKE_PROGRAM=“C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe” “C:\Users\hamxa\Orthanc\Build\CMakeFiles\CMakeTmp” 2>&1”’ execution failed with error: ‘‘C:\Windows\system32\cmd.exe’ ‘/c “%SYSTEMROOT%\System32\chcp.com 65001 >NUL && “C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe” -G “Ninja” -DCMAKE_BUILD_TYPE:STRING=“Debug” -DCMAKE_INSTALL_PREFIX:PATH=“C:\Users\hamxa\Orthanc\Build\CMakeFiles\CMakeTmp\out\install\x64-Debug” -DCMAKE_C_COMPILER:FILEPATH=“C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe” -DCMAKE_MAKE_PROGRAM=“C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe” “C:\Users\hamxa\Orthanc\Build\CMakeFiles\CMakeTmp” 2>&1”’ returned with exit code: 1’. C:\Users\hamxa\Orthanc\Build\CMakeFiles\CMakeTmp'C
Issue.
I don’t know how to proceed further?
Thanks,
best regards!
The use of generator “Visual Studio 16 2019” in the call to CMake will create a project for Microsoft Visual Studio in your build directory.
Use Microsoft Visual Studio to open and compile this project (not Ninja).
What should be my next steps. can you please layout for me
Build the solution by using the “Build” menu.
But, really, this forum is about Orthanc, not about Microsoft Visual Studio. If you need to learn how to use this IDE, check out Microsoft’s resources:
https://visualstudio.microsoft.com/vs/getting-started/
Thanks for your response and I am sorry for the noob-ish question!
I have successfully build the Orthanc.sln file in Build directory. But it only creates Orthanc.exe file and there’s no OrthancService.exe file, I am compiling it for first time by the way, so I expect the build to have the same files output as does the Downloadable Installer have.
Can you please guide me in this regard.
Thanks,
Hamza
“I expect the build to have the same files output as does the Downloadable Installer have.” => You shouldn’t have this expectation, as the Windows installers bundle most of the official plugins for Orthanc, in addition to the main “Orthanc.exe”:
https://book.orthanc-server.com/plugins.html#index-of-the-official-plugins
Here is the link to the source code of “OrthancService.exe”, but this can only be built using the MinGW compiler (not Microsoft Visual Studio):
https://github.com/orthanc-server/orthanc-builder/tree/master/WindowsInstaller/Configuration