fredpy / trex2-agent

An architecture for goal directed control of autonomous agents
BSD 3-Clause "New" or "Revised" License
14 stars 13 forks source link

Witre display is missing the Wt Resources #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Witre web-page is missing the Wt resources that give the panels and other 
features their correct display. The Resources file needs to added to the build 
directory.

Found the following two variations from the Wt examples cmake file for adding 
the resources file.
install(DIRECTORY ${WT_SOURCE_DIR}/resources DESTINATION 
${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR})  # Can't safely make symlinks of 
Windows

install( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink 
${CMAKE_INSTALL_PREFIX}/share/Wt/resources 
${CMAKE_INSTALL_PREFIX}/${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR}/resources)" )

Couldn't get any of the variations I tried to work in the 
extra/witre/CMakeLists.txt file. Tried using variations of:
install(DIRECTORY ${WT_SOURCE_DIR}/resources DESTINATION 
${CMAKE_CURRENT_BINARY_DIR}/resources)
and
install( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink 
${CMAKE_INSTALL_PREFIX}/share/Wt/resources 
${CMAKE_CURRENT_BINARY_DIR}/resources)" )

Original issue reported on code.google.com by Cooksey....@gmail.com on 27 Mar 2012 at 5:36

GoogleCodeExporter commented 9 years ago
I gave a look on that and your issue was related to the fact that WT_SPURCE_DIR 
is not defined (only Wt_INCLUDE_DIR). 

For now I made a small patch where witre.xml is now generated and set --docroot 
to $Wt_INCLUDE_DIR/share/Wt as it is where the resource dir is located on my 
system. It would be probably better to make it differently -- and check during 
cmake that this directory exists -- but it should work on standard systems.

Original comment by fre...@gmail.com on 27 Mar 2012 at 11:51

GoogleCodeExporter commented 9 years ago

Original comment by fre...@gmail.com on 10 Jun 2012 at 8:55