Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Edit CMakeLists and ApacheMonitor source code |
|
Author |
|
tanquang
Joined: 21 Mar 2020 Posts: 53 Location: Vietnam
|
Posted: Sat 25 Dec '21 11:52 Post subject: Edit CMakeLists and ApacheMonitor source code |
|
|
In some previous HTTPD compiler guidelines, they have instructed:
Remove the # (remove comment) section below in CMakeLists.txt (from line 903 to 908):
Code: | ...
# getting duplicate manifest error with ApacheMonitor
# ADD_EXECUTABLE(ApacheMonitor support/win32/ApacheMonitor.c support/win32/ApacheMonitor.rc)
# SET(install_targets ${install_targets} ApacheMonitor)
# SET(install_bin_pdb ${install_bin_pdb} $<TARGET_PDB_FILE:ApacheMonitor>)
# SET_TARGET_PROPERTIES(ApacheMonitor PROPERTIES WIN32_EXECUTABLE TRUE)
# SET_TARGET_PROPERTIES(ApacheMonitor PROPERTIES COMPILE_FLAGS "-DAPP_FILE -DLONG_NAME=ApacheMonitor -DBIN_NAME=ApacheMonitor.exe ${EXTRA_COMPILE_FLAGS}")
# TARGET_LINK_LIBRARIES(ApacheMonitor ${EXTRA_LIBS} ${HTTPD_SYSTEM_LIBS} comctl32 wtsapi32)
... |
After that, put the following line into a comment in the support/win32/ApacheMonitor.rc file (line 29):
Code: | CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "ApacheMonitor.manifest" |
But that tutorial from too old versions, I don't know what its effect is? And is it still needed on the latest versions available? If it really causes an error, why does Apache have not removed and remedy this problem?  |
|
Back to top |
|
tangent
Joined: 16 Aug 2020 Posts: 213 Location: UK
|
Posted: Tue 28 Dec '21 20:34 Post subject: |
|
|
The ApacheMonitor utility for Windows is a support component (albeit a very useful one), and as such is considered optional rather than a default build component. Apache developers are predictably more concerned with maintaining Apache security and evolving core functionality.
That's the reason why the various build tutorials on this site detail the need to uncomment the ApacheMonitor lines in CMakeLists.txt.
With regard to the manifest file, my guess is there might have been some issues with the corresponding RC script with earlier versions of Visual Studio, but when I came to the HTTPD "build party", I found no issues or need to comment out the manifest line reference in ApacheMonitor.rc. |
|
Back to top |
|
tanquang
Joined: 21 Mar 2020 Posts: 53 Location: Vietnam
|
Posted: Wed 29 Dec '21 3:41 Post subject: |
|
|
Well, wearing that line in "ApacheMonitor.rc" does not have to comment, but in the previous construction guide, they instructed that line to comment before compiling.
I currently still follow that instructions, remove comments in CMakeLists.txt and comment that line in ApacheMonitor.rc before compiling, although it doesn't happen when compiling. |
|
Back to top |
|
|
|
|
|
|