norman | 1 Apr 2009 16:55
Picon
Favicon

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

Hi,
Following the http://www.webtoolkit.eu/wt/wiki/index.php/Installing_Wt_on_Mac_OS_X_Leopard

I got the following error:
--
$ cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_38 ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
** Using supplied mxml library.
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
** Error finding Wt required library:
** Could not find a boost installation in /Users/khinester/Installed.
** It may be necessary to set appropriate values for the
   variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION
CMake Error at src/CMakeLists.txt:10 (MESSAGE):
  ** Wt requires the following C++ boost libraries: boost_date_time,
  boost_regex, and boost_program_options, boost_signals, and optionally
  boost_thread


-- Configuring incomplete, errors occurred!

I am also attaching the CMakeCache.txt as it has all the correct settings as far as I can see.

Any help much appreciated.

Norman

                                    




--- On Sun, 1/3/09, Wim Dumon <wim-fsvWVe5cvas@public.gmane.org> wrote:

From: Wim Dumon <wim-fsvWVe5cvas@public.gmane.org>
Subject: Re: [Wt-interest] Could not find a boost installation in /usr/local/include/boost-1_38/boost
To: witty-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Date: Sunday, 1 March, 2009, 7:21 PM

Usually, you also have to set three variables to recognize boost in
unices: BOOST_DIR, BOOST_VERSION and BOOST_COMPILER. Look at the
signature of your library files (.so, or .a) to find out what you
should put there.

Regards,
Wim.

2009/3/1 norman <norman_khine-/E1597aS9LT10XsdtD+oqA@public.gmane.org>:
> Hello,
> I have witty built on gentoo, but am trying to to set it up on my mac osx.
>
> I have built boost and can run the examples:
>
> $ c++ -I /usr/local/include/boost-1_38 example.cpp -o example
> $ echo 1 2 3 | ./example
> 3 6 9
>
> Here is my procedure for setting up wt:
>
> $ git clone http://www.webtoolkit.eu/git/wt.git
> $ cd wt
> $ mkdir build
> $ cd build
> $ ccmake .
>
> I then changed the:
>
> BOOST_DIR                        /usr/local/include/boost-1_38/boost
>
> but still get the error.
>
> If I also try to run:
>
> $ bjam --version
> Unable to load Boost.Build: could not find "boost-build.jam"
> ---------------------------------------------------------------
> Attempted search from /Users/khinester/Documents/TUTORIALS/cpp up to the
> root
> and in these directories from BOOST_BUILD_PATH and BOOST_ROOT:
> /usr/share/boost-build.
> Please consult the documentation at 'http://www.boost.org'.
>
> What am I missing?
>
> Many thanks
>
> Norman
>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> witty-interest mailing list
> witty-interest <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
witty-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/witty-interest

# This is the CMakeCache file.
# For build in directory: /Users/khinester/sandboxes/wt/build
# It was generated by CMake: /Applications/CMake 2.6-3.app/Contents/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Boost libraries compiler signature
BOOST_COMPILER:STRING=gcc

//Boost installation path prefix
BOOST_DIR:PATH=/Users/khinester/Installed

//Path to a library.
BOOST_DT_LIB:FILEPATH=BOOST_DT_LIB-NOTFOUND

//Path to a library.
BOOST_DT_LIB_MT:FILEPATH=BOOST_DT_LIB_MT-NOTFOUND

//Path to a library.
BOOST_FS_LIB:FILEPATH=BOOST_FS_LIB-NOTFOUND

//Path to a library.
BOOST_FS_LIB_MT:FILEPATH=BOOST_FS_LIB_MT-NOTFOUND

//Path to a file.
BOOST_INCLUDE_DIRS:PATH=/Users/khinester/Installed/include/boost-1_38

//Path to a library.
BOOST_PO_LIB:FILEPATH=BOOST_PO_LIB-NOTFOUND

//Path to a library.
BOOST_PO_LIB_MT:FILEPATH=BOOST_PO_LIB_MT-NOTFOUND

//Path to a library.
BOOST_REGEX_LIB:FILEPATH=BOOST_REGEX_LIB-NOTFOUND

//Path to a library.
BOOST_REGEX_LIB_MT:FILEPATH=BOOST_REGEX_LIB_MT-NOTFOUND

//Path to a library.
BOOST_SIGNALS_LIB:FILEPATH=BOOST_SIGNALS_LIB-NOTFOUND

//Path to a library.
BOOST_SIGNALS_LIB_MT:FILEPATH=BOOST_SIGNALS_LIB_MT-NOTFOUND

//Path to a library.
BOOST_SYSTEM_LIB:FILEPATH=BOOST_SYSTEM_LIB-NOTFOUND

//Path to a library.
BOOST_SYSTEM_LIB_MT:FILEPATH=BOOST_SYSTEM_LIB_MT-NOTFOUND

//Path to a library.
BOOST_THREAD_LIB_MT:FILEPATH=BOOST_THREAD_LIB_MT-NOTFOUND

//Boost libraries version signature
BOOST_VERSION:STRING=1_38

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake try to support.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4

//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel.
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING='-I/sw/include '

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING='-I/sw/include '

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=-L/sw/lib

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=-L/sw/lib

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND

//Build architectures for OSX
CMAKE_OSX_ARCHITECTURES:STRING=ppc

//isysroot used for universal binary support
CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.4u.sdk

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=-L/sw/lib

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Path for the configuration files
CONFIGDIR:STRING=/etc/wt

//Path to the wt configuration file
CONFIGURATION:PATH=/etc/wt/wt_config.xml

//Compile in FCGI connector (libwtfcgi) ?
CONNECTOR_FCGI:BOOL=OFF

//Compile in stand-alone httpd connector (libwthttp) ?
CONNECTOR_HTTP:BOOL=ON

//Path to deploy examples into)
DEPLOYROOT:PATH=/var/www/localhost/htdocs/wt-examples

//Connector used for examples
EXAMPLES_CONNECTOR:STRING=wthttp

//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=

//Path to a library.
FCGIPP_LIB:FILEPATH=FCGIPP_LIB-NOTFOUND

//Path to a file.
FCGI_INCLUDE_DIR:PATH=FCGI_INCLUDE_DIR-NOTFOUND

//Path to a library.
FCGI_LIB:FILEPATH=FCGI_LIB-NOTFOUND

//Search path for libgd2
GD_DIR:PATH=/usr/lib

//Path to a file.
GD_INCLUDE_DIR:PATH=GD_INCLUDE_DIR-NOTFOUND

//Path to a library.
GD_LIB:FILEPATH=GD_LIB-NOTFOUND

//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=

//Default path for libraries within /usr/local
LIB_INSTALL_DIR:STRING=lib

//Build multi-threaded httpd deamon (if possible)
MULTI_THREADED:BOOL=ON

//Path to a file.
MXML_INCLUDE:PATH=MXML_INCLUDE-NOTFOUND

//Path to a library.
MXML_LIB:FILEPATH=MXML_LIB-NOTFOUND

//Force use of supplied mxml over installed mxml.
MXML_SUPPLIED:BOOL=ON

//Path to a file.
MYSQLPP_INCLUDE:PATH=MYSQLPP_INCLUDE-NOTFOUND

//Path to a library.
MYSQLPP_LIBRARIES:FILEPATH=MYSQLPP_LIBRARIES-NOTFOUND

//Path to a file.
MYSQL_INCLUDE:PATH=MYSQL_INCLUDE-NOTFOUND

//Path to a file.
PLAIN_ASIO_INCLUDE:PATH=PLAIN_ASIO_INCLUDE-NOTFOUND

//Invalid qmake found
QT_QMAKE_EXECUTABLE:FILEPATH=QT_QMAKE_EXECUTABLE-NOTFOUND-NOTFOUND

//Default path for wt session management (only used by FCGI connector;
// not relative to CMAKE_INSTALL_PREFIX)
RUNDIR:PATH=/usr/wt/run

//Compile shared libraries
SHARED_LIBS:BOOL=ON

//Path to a file.
SSL_INCLUDE_DIRS:PATH=/usr/include

//Path to a library.
SSL_LIB:FILEPATH=/usr/lib/libssl.dylib

//Other installation prefix for dependent libraries
USERLIB_ROOT:PATH=/usr

//Webserver groupname (e.g. apache or www or users)
WEBGROUP:STRING=apache

//Webserver username (e.g. apache or www)
WEBUSER:STRING=apache

//Path for the wthttpd configuration file
WTHTTP_CONFIGURATION:PATH=/etc/wt/wthttpd

//Value Computed by CMake
WT_BINARY_DIR:STATIC=/Users/khinester/sandboxes/wt/build

//Value Computed by CMake
WT_SOURCE_DIR:STATIC=/Users/khinester/sandboxes/wt

//Path to a file.
ZLIB_INCLUDE:PATH=/usr/include

//Path to a library.
ZLIB_LIB:FILEPATH=/usr/lib/libz.dylib

########################
# INTERNAL cache entries
########################

//Advanced flag for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/Users/khinester/sandboxes/wt/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=6
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 3
//Advanced flag for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/Applications/CMake 2.6-3.app/Contents/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/Applications/CMake 2.6-3.app/Contents/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/Applications/CMake 2.6-3.app/Contents/bin/ctest
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER_WORKS:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
//Result of TRY_COMPILE
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/Applications/CMake 2.6-3.app/Contents/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Have library pthreads
CMAKE_HAVE_PTHREADS_CREATE:INTERNAL=
//Have library pthread
CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1
//Have include CMAKE_HAVE_PTHREAD_H
CMAKE_HAVE_PTHREAD_H:INTERNAL=1
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/Users/khinester/sandboxes/wt
//Advanced flag for variable: CMAKE_INSTALL_NAME_TOOL
CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=5
//Advanced flag for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/Applications/CMake 2.6-3.app/Contents/share/cmake-2.6
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CONFIGDIR
CONFIGDIR-ADVANCED:INTERNAL=1
//Details about finding Threads
FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE]

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Wim Dumon | 1 Apr 2009 17:12
Picon
Favicon

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

Norman,

I think you have to add -DBOOST_COMPILER=xgcc40
I modified the wiki to reflect that. Can you confirm this works?
If it would still not work, look in cmake/WtFindBoost.txt, where you
can see how Wt tries to find boost.

Regards,
Wim.

2009/4/1 norman <norman.khine@...>:
> Hi,
> Following the
> http://www.webtoolkit.eu/wt/wiki/index.php/Installing_Wt_on_Mac_OS_X_Leopard
>
> I got the following error:
> --
<snip>

------------------------------------------------------------------------------
Alex | 1 Apr 2009 20:02
Favicon

javascript in code

Hi,
I am trying to implement stateless slot for validate and change phone number in keyPressed() event. 
But have next questions(problems):
1. After first load session and click on key in LineEdit,   browser  freeze in state "Loading" - I need push
browsers reload button to fix it;
2. How can I implement java script in external file and load it by require()?(visibility of external
scripts and variables in JSlot and Wt javascript namespace).
3. Why call "WT_CLASS ".cancelEvent(event);" continue push  event to server? And how  can I implement
stateless script, which can emit to server only when need. Now when I click keys quickly, browser
freeze(lost server  answer?).
 Where am I wrong?

Best regards,
Alex

class ZWPhoneEdit : public Wt::WLineEdit
{
public:
	ZWPhoneEdit(Wt::WContainerWidget *parent = 0){
  	std::string javascr = 
		"function(sender, event) {"
			"var keyChar = String.fromCharCode(event.which);"
			"if (keyChar == '0' || keyChar == '1' || keyChar == '2' || keyChar == '3'  || keyChar == '4' || keyChar == '5'
|| keyChar == '6' || keyChar == '7' || keyChar == '8'  || keyChar == '9'){"				
				"if(sender.value.length == '0'){"					
					"if(keyChar != '0'){"
						" sender.value += '(048)';"
					"}"
					"else{"
						" sender.value += '(';"	
					"}"
				"}"
				"else if(sender.value.length == 4){"
					"sender.value += ')';"
				"}"
				"else if(sender.value.length == 8 || sender.value.length == 11){"
					"sender.value += '-';"
				"}"
				"else if(sender.value.length >= 14){"
					WT_CLASS ".cancelEvent(event);"
				"}"
			"}"
			"else " WT_CLASS ".cancelEvent(event);"
		"}"
	;
	java.setJavaScript(javascr);
	implementStateless(&ZWPhoneEdit::OnKeyPressedJava);
	keyPressed().connect(SLOT(this,ZWPhoneEdit::OnKeyPressedJava));
      }
public slots:
	void OnKeyPressedJava(){java.exec();}
private:
	Wt::JSlot java;
};

------------------------------------------------------------------------------
Wim Dumon | 1 Apr 2009 20:44
Picon
Favicon

Re: Question about internal paths..

2009/3/31 Mykola Konyk <forums@...>:
> Hello!
> I am a new Wt user and so far I am very impressed!
> However, I have these two questions:
> 1. Question about internal path changes: for example if user enters in the
> browser http://127.0.0.1:8080/#aa, I can detect the change in path by
> doing internalPathChanged().connect(SLOT(... , however if user
> enters http://127.0.0.1:8080/aa I get 404 and the connected event is never
> fired. Is it possible?

Yes, but not if you deploy on the root. Use the '--deploy-path=/myapp'
startup option. The reason that applications deployed on the root
cannot use this mechanism, is that Wt cannot detect if this is a
regular file access, or an internal path change. Your URLs will then
look like this:
http://127.0.0.1:8080/myapp#/aa
http://127.0.0.1:8080/myapp/aa

> 2. Another question, is it possible to do a custom 404 page with built-in
> whttpd?

Yes, but I'm not sure if/where it is documented. See StockReply.C, in
combination with the --errroot startup option. Note that some html
comments are special tokens that are replaced by relevant text.

Regards,
Wim.

------------------------------------------------------------------------------
Chuckles McGregor | 1 Apr 2009 22:47

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

I've had the best luck on configuring the mac (I'm 10.5) is to cd into build
and doing ccmake . and set the boost variables BOOST_VERSION= 1_38
, BOOST_INCLUDE_DIR = /usr/local/include/boost-1_38
BOOST_COMPILER=xgcc41   (i'm using the g++-4.12 compiler)
then typing c to configure the CMakeCache.txt, e to exit, you should 
see all the boost libraries
in the list then exit the ccmake and do a cmake ../. You should be ready to go.
chuckles

>Hi,
>Following the 
>http://www.webtoolkit.eu/wt/wiki/index.php/Installing_Wt_on_Mac_OS_X_Leopard
>
>I got the following error:
>--
>$ cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_38 ../
>-- The C compiler identification is GNU
>-- The CXX compiler identification is GNU
>-- Check for working C compiler: /usr/bin/gcc
>-- Check for working C compiler: /usr/bin/gcc -- works
>-- Detecting C compiler ABI info
>-- Detecting C compiler ABI info - done
>-- Check for working CXX compiler: /usr/bin/c++
>-- Check for working CXX compiler: /usr/bin/c++ -- works
>-- Detecting CXX compiler ABI info
>-- Detecting CXX compiler ABI info - done
>** Using supplied mxml library.
>-- Looking for include files CMAKE_HAVE_PTHREAD_H
>-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
>-- Looking for pthread_create in pthreads
>-- Looking for pthread_create in pthreads - not found
>-- Looking for pthread_create in pthread
>-- Looking for pthread_create in pthread - found
>-- Found Threads: TRUE
>** Error finding Wt required library:
>** Could not find a boost installation in /Users/khinester/Installed.
>** It may be necessary to set appropriate values for the
>    variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION
>CMake Error at src/CMakeLists.txt:10 (MESSAGE):
>   ** Wt requires the following C++ boost libraries: boost_date_time,
>   boost_regex, and boost_program_options, boost_signals, and optionally
>   boost_thread
>

------------------------------------------------------------------------------
Dushan Savich | 1 Apr 2009 23:21

How to do the suff like shortcut keys?

Hi all,

    I would like to enable  my  web app to  be able to    do crazy stuff 
when I press    Ctrl+Shift+Alt+F1+X  (  to  fully enable users with  30 
fingers :)   )

    Can I do that with  witty ?   If not,  you'll have something nice to 
place in TODO list .

Cheers!
Dushan

------------------------------------------------------------------------------
norman | 2 Apr 2009 00:19
Picon
Favicon

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

hi,
i tried as suggested, but get the same error:

$ cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/usr/local/include/boost-1_38 -DBOOST_VERSION=1_38 ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
** Using supplied mxml library.
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
** Error finding Wt required library:
** Could not find a boost installation in /usr/local/include/boost-1_38.
** It may be necessary to set appropriate values for the
   variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION
CMake Error at src/CMakeLists.txt:10 (MESSAGE):
  ** Wt requires the following C++ boost libraries: boost_date_time,
  boost_regex, and boost_program_options, boost_signals, and optionally
  boost_thread

All the boost files are  set up in the right places.

Following the boost setup guide all the tests worked fine:

$ cd ~/Documents/Tutorials/Boost/
$ c++ -I /Users/khinester/downloads/boost_1_38_0 example.cpp -o example /Users/khinester/downloads/boost_1_38_0/libs/regex/build/gcc/libboost_regex-gcc-d-1_38.a
$ ./example < jayne.txt Will Success Spoil Rock Hunter?


So, I changed the BOOST_DIR:

$ cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/Users/khinester/downloads/boost_1_38_0 -DBOOST_VERSION=1_38 ../
** Using supplied mxml library.
** Error finding Wt required library:
** Could not find a boost installation in /Users/khinester/downloads/boost_1_38_0.
** It may be necessary to set appropriate values for the
   variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION
CMake Error at src/CMakeLists.txt:10 (MESSAGE):
  ** Wt requires the following C++ boost libraries: boost_date_time,
  boost_regex, and boost_program_options, boost_signals, and optionally
  boost_thread


-- Configuring incomplete, errors occurred!


Still the same problem.

Thanks

Norman

--- On Wed, 1/4/09, Wim Dumon <wim <at> emweb.be> wrote:

From: Wim Dumon <wim-fsvWVe5cvas@public.gmane.org>
Subject: Re: [Wt-interest] Could not find a boost installation in /usr/local/include/boost-1_38/boost
To: witty-interest <at> lists.sourceforge.net
Date: Wednesday, 1 April, 2009, 5:12 PM

Norman,

I think you have to add -DBOOST_COMPILER=xgcc40
I modified the wiki to reflect that. Can you confirm this works?
If it would still not work, look in cmake/WtFindBoost.txt, where you
can see how Wt tries to find boost.

Regards,
Wim.

2009/4/1 norman <norman.khine-/E1597aS9LT10XsdtD+oqA@public.gmane.org>:
> Hi,
> Following the
> http://www.webtoolkit.eu/wt/wiki/index.php/Installing_Wt_on_Mac_OS_X_Leopard
>
> I got the following error:
> --
<snip>

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Mykola Konyk | 2 Apr 2009 03:03

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

Hi Norman,


On my 10.5 I installed 1.38 boost to /usr/local (that is, boost headers are in /usr/local/include/boost.. and boost libs are in /usr/local/lib/..)

Then did the described cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/usr/local -DBOOST_VERSION=1_38 ../


.. and it all worked.


Hope this helps,

mykola


------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Mykola Konyk | 2 Apr 2009 03:00

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

Hi Norman,


On my 10.5 I installed 1.38 boost to /usr/local (that is, boost headers are in /usr/local/include/boost.. and boost libs are in /usr/local/lib/..)
Then did the described cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/usr/local -DBOOST_VERSION=1_38 ../

.. and it all worked.

Hope this helps,
mykola

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Wim Dumon | 2 Apr 2009 09:31
Picon
Favicon

Re: Could not find a boost installation in /usr/local/include/boost-1_38/boost

Norman,

Wt does not support compiling against a boost source directory, like
you demonstrate with your gcc command. You must install boost
somewhere, by running bjam <--whateveropts> install.

Your -DBOOST_DIR=/usr/local/include/boost-1_38 suggests that you
installed boost in /usr/local, in which case your BOOST_DIR should
read -DBOOST_DIR=/usr/local
In that case, the header files should be located in
/usr/local/include/boost-1_38 (in a subdirectory named 'boost')
In /usr/local/lib, there should be files like libboost_regex-xgcc40-mt-1_38.a
The xgcc40 part of that file name must be equal to BOOST_COMPILER. If
it is different on your system, you may very well have to change
BOOST_COMPILER to something else.
BOOST_VERSION (1_38 in your case) is used both to construct the
include path and as part of the library name.

>From the cmake file: Wt searches boost headers in
    ${BOOST_DIR}/include
    ${BOOST_DIR}/include/${BOOST_VERSION}
    ${BOOST_DIR}/include/boost-${BOOST_VERSION}  <-- Default on MacOS
    ${BOOST_DIR}
Wt searches boost libraries in
    ${BOOST_DIR}/lib
And the naming schemes for the libraries are
      boost_regex-${BOOST_COMPILER}-mt-${BOOST_VERSION} <-- Default on MacOS
      boost_regex-${BOOST_COMPILER}-mt
      boost_regex-mt
(cmake adds file extensions and prefixes to these names, e.g. foobar
-> libfoobar.a)

The items indicated by 'default on MacOS' are the ones that will be
used when you do not specify special parameters during the boost
compilation process that will change installation location and naming
signatures of the library files.

Also, to be sure, erase your entire build directory whenever you are
changing the BOOST_* parameters. Cmake is very bad in forgetting
variables once they have been set.

Hope this helps,
Wim.

2009/4/2 norman <norman.khine@...>:
> hi,
> i tried as suggested, but get the same error:
>
> $ cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/usr/local/include/boost-1_38
> -DBOOST_VERSION=1_38 ../
<snip>

------------------------------------------------------------------------------

Gmane