Hi!
I partially found the problem when running wt's make install again
1. Wt CMakeLists.txt requires CMake 2.4 so when you run the install you
get something like:
Up-to-date: /usr/local/share/cmake-2.4/Modules/FindWt.cmake
But my current version of cmake is ignoring that directory (my version
is 2.8)
2. During the install process you also get this message:
running mkdir -p /var/run/wt 2>&1
running chown apache:apache /var/run/wt 2>&1
chown: invalid user: `apache:apache'
However in ubuntu, the user that runs apache is www-data
3. Question still opened: I still don't know if I need the whole
CMakeLists.txt as I copied it in the previous message or just
FIND_PACKAGE(Wt REQUIRED) and INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR})
is all I need.....
I hope this helps people who are doing similar installations!
Diego
On 10-07-20 02:56 PM, Diego wrote:
> Hello,
>
> I am trying to compile my app in ubuntu linux and this is my
> CMakeLists.txt file:
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
> PROJECT(APPLICATION)
>
> #Find Wt
> #-----------------------------------------------------------------------------------
>
>
> FIND_PACKAGE(Wt REQUIRED)
>
> INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR})
>
> #Find Boost
> #-----------------------------------------------------------------------------------
>
>
> IF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
> SET(Boost_ADDITIONAL_VERSIONS
> "1.35" "1.36" "1.37" "1.38" "1.39"
> "1.40" "1.41" "1.42" "1.43" "1.44" "1.45" "1.46" "1.47" "1.48" "1.49")
> ENDIF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
>
> SET(Boost_USE_MULTITHREADED ON)
>
> FIND_PACKAGE(Boost 1.35
> COMPONENTS
> date_time
> regex
> program_options
> signals
> system
> filesystem
> thread
> REQUIRED)
>
> IF(Boost_FOUND)
> INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
> LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
> ENDIF(Boost_FOUND)
>
>
> ADD_SUBDIRECTORY(src)
>
>
> 1. Do I need all of that? or only by including FIND_PACKAGE(Wt
> REQUIRED) and INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR}) would it be
> enough?
>
> 2. When I run 'ccmake .", it keeps asking me about the location of
> WT_DIR to be able to find FindWt.cmake. I point to the FindWt.cmake
> file that it is included in the source /wt-3.1.3/cmake but it is not
> working. My assumption is that I should make WT_DIR pointing to the Wt
> installation directory (the one it is created when you run make
> install) ?
>
> 3. Shouldn't FindWt.cmake be in /usr/share/cmake-2.8/Modules after
> installing wt? I didn't find it there..... Maybe that is the cause of
> (2) ?
>
> Thanks,
>
> Diego
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest