http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252014-02-10T10:05:41ZRedmineWt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=78762014-02-10T10:05:41ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>And now I signed up and logged in, as not to appear so anonymous.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=78952014-02-10T11:01:47ZWim Dumonwim@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Assignee</strong> changed from <i>Anonymous</i> to <i>Wim Dumon</i></li></ul><p>Hi,</p>
<p>Don't copy your include files manually, run 'make install'. This will copy the header files, the libraries, and the resources to the installation directory. By default, this is /usr/local; this default path can be changed by setting the CMake variable CMAKE_INSTALL_PREFIX. We don't recommend to install in /usr, and I suggest you to remove the /usr/inlcude/Wt that you copied there as it may interfere with other wt installs.</p>
<p>Secondly, you will need to add an include search path and a library search path to your project. On OSX, that's command line option -I/usr/local/include and -L/usr/lib/include. This will resolve the problem that your linker can't find wt/wthttp/dbo/...</p>
<p>Personally, I usually install Wt in a totally different location (e.g. set CMAKE_INSTALL_PREFIX to /home/wim/wt-3.3.1-install and then add -I/home/wim/wt-3.3.1-install/include and -L/home/wim/wt-3.3.1-install/lib to my project) in order to be able to easily switch between Wt versions.</p>
<p>Both eclipse and xcode have GUI menus to set the include and library search path - you'll find them in their documentation.</p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79032014-02-10T11:46:03ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Thank you Wim. Im trying to understand the whole process a bit, I haven't really been trying to understand what really goes on underneath the desktop since I was a windows user, and even then its about a decade since I really was trying to do things in dos. So instead of jumping into the install again, running through all the steps and then asking questions if it failed, Id try and understand a bit more before starting that process. Making the installs in separate directories makes a lot of sense to me, as it does make it easier to clean up the file system in the future. The copy was just a desperate attempt to see if that would make the hello example work, and its deleted, alongside with all Wt-* and boost* directories made this far. So;</p>
<p>When I install Boost, do I want to do that in a "local" directory too, like this?</p>
<p>./b2 ---toolset=clan ---prefix=/Users/taf/Boost g cxxflags="-stdlib=libc -std=c++11" linkflags="-stdlib=libc" install</p>
<p>And then, when its installed, go to terminal and type:</p>
<p>export DYLD_LIBRARY_PATH=/Users/taf/Boost/lib:$DYLD_LIBRARY_PATH</p>
<p>Then for the Wt install:</p>
<p>$ cd wt-3*<br><br>
$ mkdir build<br><br>
$ cd build<br><br>
$ cmake -DCMAKE_CXX_FLAGS='-stdlib=libc' \<br><br>
-DCMAKE_INSTALL_PREFIX=/Users/taf/Wt-3.3.1 \<br><br>
-DBOOST_PREFIX=/Users/taf/Boost \<br><br>
-DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc' \<br><br>
-DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc' \<br><br>
-DWT_CPP_11_MODE='-std=c++11' ../<br><br>
$ make<br><br>
$ make -C examples # to build the examples</p>
<p>And then I need to find the right place in Xcode, Eclipse or QTCreator to link to the library directory of Wt, because that wont be added to any startup files that tells the system where to find files for general system purposes?</p>
<p>In fear of appearing like a moron, Ill rather try to make sure I do it the right way the first time, than assuming a few things that Im not completely certain on. I will search again for the include menu of Xcode (which is the one I have been searching the most for this feature in).</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79042014-02-10T12:19:31ZWim Dumonwim@emweb.be
<ul></ul><p>It's not easy to find in xcode, I made a small project recently and remember spending quite some time trying to find the location of the option, then search on google, then try to find it again, and finally found the option, while wondering why XCode hides these important project settings so well.</p>
<p>Probably this helps:<br><br>
<a href="http://stackoverflow.com/questions/14134064/how-to-set-include-path-in-xcode-project" class="external">http://stackoverflow.com/questions/14134064/how-to-set-include-path-in-xcode-project</a></p>
<p>But I don't like the accepted answer (Setting -I explicitly). The option should be explicitly named like in this screen shot:<br><br>
<a href="http://i.imgur.com/Tcs36ec.png" class="external">http://i.imgur.com/Tcs36ec.png</a></p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79052014-02-10T12:37:43ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>I do agree on both, I did find where to include paths in Xcode, so Ill try that when Ive installed everything again.</p>
<p>Did you look at the install commands in my previous post? I just wonder if this seems like the correct way of executing the installs. Sometimes I wish I had a laptop with Ubuntu or similar when Im trying to find ways to do things by the glorious path of google :) It seems like there are a lot more resources for that, and Mac OSX is "Unix like" but not always similar, so its a game of hit and miss. But Im aiming to understand a bit more of how installs, make, cmake and configurations work on this system.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79062014-02-10T13:04:06ZWim Dumonwim@emweb.be
<ul></ul><p>At glance, your commands look ok. Don't forget to do a 'make install' in the wt build directory to copy the files to the install prefix location.</p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79082014-02-10T14:00:58ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Allright Wim, Im getting closer by the minute :) Now Ive added the Wt and Boost directories to the search paths in Xcode, and Xcode finds the Wt library. However, my build fail on the following:</p>
<p>#include <boost/any.hpp> ---> "boost/any.hpp" file not found.</p>
<p>Which is strange, as Ive also included the path of my boost install where I added my Wt directories... Any idea what this could be? I do see that I have a file named any.hpp in the directory its pointing at too.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79092014-02-10T14:08:19ZWim Dumonwim@emweb.be
<ul></ul><p>You may need to fine-tune the boost include search path. It's not just /Users/taf/Boost/include, but probably /Users/taf/Boost/boost-1_55 or similar.</p>
<p>What does <code>find /Users/taf/Boost -name any.hpp</code> report?</p>
<p>Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79122014-02-10T14:31:00ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>I tried /Users/taf/Boost -name any.hpp in terminal, and nothing happened. But for some reason, nothing is installed in /Users/taf/Boost. However, I changed it up a bit, and this is what I get:</p>
<p>Tors-MacBook-Retina:build taf$ find /Users/taf/boost_1_55_0 -name any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/fusion/algorithm/query/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/fusion/algorithm/query/detail/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/fusion/include/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/proto/detail/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/spirit/home/support/algorithm/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/type_erasure/any.hpp<br><br>
/Users/taf/boost_1_55_0/boost/xpressive/detail/utility/any.hpp</p>
<p>The path I included in Xcode is:</p>
<p>/Users/taf/boost_1_55_0</p>
<p>and I added that to "Framework search path", "Header search path" and "Library search path" .... Correction, it was not added to "Header search path", and I did, so now that error seems to have been replaced with a fail on "Wt/WConfig.h" - file not found.</p>
<p>So I did a search more:</p>
<p>Tors-MacBook-Retina:build taf$ find /Users/taf/wt-3.3.1/src/Wconfig.h<br><br>
find: /Users/taf/wt-3.3.1/src/Wconfig.h: No such file or directory<br><br>
Tors-MacBook-Retina:build taf$ find /Users/taf/wt-3.3.1/Wconfig.h<br><br>
find: /Users/taf/wt-3.3.1/Wconfig.h: No such file or directory</p>
<p>Then I didn't want to bother you before Ive tried a search in finder, and finder reported back that WConfig.h is situated in /Users/taf/wt-3.3.1/build, so I added that directory too, but still its failing, saying the file can't be found. I even tried restarting Xcode, but nothing changed.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79132014-02-10T14:33:55ZWim Dumonwim@emweb.be
<ul></ul><p>did you run 'make install' on the Wt directory? Did that succeed? The install step of Wt copies the configuration file in the same destination directory as the other header files.</p>
<p>Likewise, it looks like the boost install step did not work for you. Did bjam .... install execute successfully?</p>
<p>Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79152014-02-10T14:49:03ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Ok, now Im going through my history in Terminal, and Im copying and pasting the information around the make/installs, of course I can't post the whole thing, as its quite a lot, but Im trying an educated guess on whats important. At the same time Ill get to double check what Ive done.</p>
<p>First:</p>
<p>Tors-MacBook-Retina:boost_1_55_0 taf$ ./bootstrap.sh<br><br>
-n Building Boost.Build engine with toolset darwin...</p>
<p>Tors-MacBook-Retina:boost_1_55_0 taf$ ./b2 ---toolset=clang ---prefix=/Users/taf/Boost g cxxflags="-stdlib=libc -std=c++11" linkflags="-stdlib=libc" install<br><br>
link.jam: No such file or directory<br><br>
notice: could not find main target g<br><br>
notice: assuming it is a name of file to create.<br><br>
Performing configuration checks</p>
<p>- 32-bit : no </p>
<ul>
<li>64-bit : yes.....</li>
</ul>
<p>Then:</p>
<p>Tors-MacBook-Retina:boost_1_55_0 taf$ export DYLD_LIBRARY_PATH=/Users/taf/Boost/lib:$DYLD_LIBRARY_PATH</p>
<p>At last here comes Wt:</p>
<p>Tors-MacBook-Retina:build taf$ cmake -DCMAKE_CXX_FLAGS='-stdlib=libc' \ -DCMAKE_INSTALL_PREFIX=/Users/taf/Wt-3.3.1 \ -DBOOST_PREFIX=/Users/taf/Boost \ -DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc' \ -DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc' \ -DWT_CPP_11_MODE='-std=c++11' ../<br><br>
--- The C compiler identification is Clang 5.0.0<br><br>
--- The CXX compiler identification is Clang 5.0.0....</p>
<p>Tors-MacBook-Retina:build taf$ make<br><br>
[ 1%] Generating JQuery_js.C<br><br>
[ 1%] Generating Plain_html.C...</p>
<p>Tors-MacBook-Retina:build taf$ make install<br><br>
[ 81%] Built target wt<br><br>
[ 81%] Built target wttest...</p>
<p>I see that Ive done all this in the "build" directory, should I have cd ..´ed to wt-3.3.1 before doing make and make install?</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79182014-02-10T15:30:11ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>I copied and pasted my terminal window from the start of my install to the present into a document and saved it on dropbox, just in case... I am aware that Im receiving good and free help, and Im eternally grateful.</p>
<p><a href="https://www.dropbox.com/sh/ewcc70yb542e90e/OygT9I-o1w" class="external">https://www.dropbox.com/sh/ewcc70yb542e90e/OygT9I-o1w</a></p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79192014-02-10T15:53:39ZWim Dumonwim@emweb.be
<ul></ul><p>Your b2 command should end on 'install'.</p>
<p>Does the output of 'make install' in wt's build directory end with a whole list of files being copied to the install directory?</p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79462014-02-10T18:14:15ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>My ./b2 command ends with "install".</p>
<p>Looking at the Terminal history on what happens after typing "make install", it looks like a lot of invoking in code almost similar to C, then it ends up in:</p>
<p>"ld: symbol(s) not found for architecture x86_64<br><br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)"</p>
<p>So it definitively seems like something went wrong in the Wt install. Either my chain of CMAKE commands are causing some kind of error, or there is something else going wrong like me being in the "build" directory when i "make" and "make install". This is a bit beyond me, as Im really new to MAKEFILE and Im still trying to understand everything that goes in there.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79482014-02-11T08:48:06ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Now Ive had correspondence with another guy that had problems, but managed to get Wt working. One of the issues he seemed to remember having was the lack of "sudo" in the commands of the guide. Could this be the cause of a lot of my problems? Id normally use "sudo" when installing, to get permissions for my installs, but as the guide didn't mention it, I figured Id try and follow the guide to the letter where nothing different has been confirmed.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79512014-02-11T10:08:41ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey,</p>
<p>If you fail to preprend sudo you should get errors that indicate permission problems. But reviewing the wiki page, I can't see where it would be missing?</p>
<p>Regards,<br><br>
koen</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79522014-02-11T10:26:05ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Hey Koen,<br><br>
I do agree that I fail to see a lot of "Permission denied" messages, but could the "clang: error: linker command failed with exit code 1 (use -v to see invocation)" message be a result of linker command not being permitted? I don't know if you looked at the history I pasted to a document and enclosed the link to? Im really hoping that I will be able to get Wt working by the end of tomorrow, but as I had started a support case with Wim, I put any desperate try and error fiddling on halt and wait for a reply from him or anyone else on the support staff (like you), before trying anything else. I also edited the install and cmake commands and ran them by Wim before executing them, thinking I should try and not add anything to this install other than what was okayed by the Wt support personnel :) Everything I have done should be stated in this thread. This suggestion of using sudo was received om mail this morning, from someone that got support from you like a year back almost, and I have been fiddling with php as a plan B, while waiting for support to get back to me :)</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79532014-02-11T10:59:16ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey,</p>
<p>Ah, I didn't notice the link.</p>
<p>This:</p>
<p>./b2 ---toolset=clan ---prefix=...</p>
<p>should be:</p>
<p>./b2 ---toolset=clang ---prefix=...</p>
<p>You need to pay attention to the error messages (ERROR: ...), there's no point in continuing the process when encountering fatal errors like these.</p>
<p>Regards,<br><br>
koen</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79542014-02-11T11:02:50ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Yes, I noticed and changed it to clang before it succeeded. I know the document with my pasted history from my Terminal window is difficult reading through, but I used cmd+f and just search for what I need to find to verify what happened. I do know I posted it as clan here, but I caught it while trying to install. In that document, you can see what happened when it ran, and also what messages I got, both for ./b2, cmake, make and make install...</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79572014-02-11T11:29:53ZWim Dumonwim@emweb.be
<ul></ul><p>Hi Tor,</p>
<p>So what is the error now then?</p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79582014-02-11T11:34:29ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Im sorry to be such a pain Wim :)</p>
<p>I kind of left it at post #14, and haven't done anything more after that. As you suspected, there doesn't seem to be any files put into any directories during make install. I did get the mail about "sudo" from another Wt user, but I have left that one be too, waiting for you to get back to me on my #14. As it seemed we were into a dialogue towards solving this issue. I didn't want to do anything outside what you suggested during this troubleshoot, as I know how annoying it can be if a fault is caused by something done but not mentioned by the client.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79602014-02-11T12:39:13ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>So... any further suggestions? Should I try and redo the install using sudo? I know koen had doubts about its effect, but I am running out of ideas.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79632014-02-11T12:59:57ZWim Dumonwim@emweb.be
<ul></ul><p>The previous error report does not contain sensible information because of the clan vs clang mixup. It simply reports that error.</p>
<p>sudo is not strictly required to install Wt, but you may need to take some extra steps to avoid that configuration files are installed in /etc.</p>
<p>Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79642014-02-11T13:15:32ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>I understand. The clan vs clang mixup was caught when it happened, and this is how it ended up transpiring:</p>
<p>Tors-MacBook-Retina:boost_1_55_0 taf$ ./b2 ---toolset=clang ---prefix=/Users/taf/Boost g cxxflags="-stdlib=libc -std=c++11" linkflags="-stdlib=libc" install<br><br>
link.jam: No such file or directory<br><br>
notice: could not find main target g<br><br>
notice: assuming it is a name of file to create.<br><br>
Performing configuration checks</p>
<p>- 32-bit : no </p>
<ul>
<li>64-bit : yes<br></li>
<li>arm : no<br></li>
<li>mips1 : no<br></li>
<li>power : no<br></li>
<li>sparc : no<br></li>
<li>x86 : yes<br></li>
<li>has_icu builds : no<br>
warning: Graph library does not contain MPI-based parallel components.<br>
note: to enable them, add "using mpi ;" to your user-config.jam<br></li>
<li>zlib : yes<br></li>
<li>iconv (libc) : no<br></li>
<li>iconv (separate) : yes<br></li>
<li>icu : no<br></li>
<li>icu (lib64) : no<br></li>
<li>compiler-supports-ssse3 : yes<br></li>
<li>lockfree boost::atomic_flag : yes<br></li>
<li>compiler-supports-avx2 : yes<br></li>
<li>gcc visibility : yes<br></li>
<li>long double support : yes<br>
warning: skipping optional Message Passing Interface (MPI) library.<br>
note: to enable MPI support, add "using mpi ;" to user-config.jam.<br>
note: to suppress this message, pass "---without-mpi" to bjam.<br>
note: otherwise, you can safely ignore this message.<br></li>
<li>zlib : yes<br>
don't know how to make g<br>
...found 1 target...<br>
...can't find 1 target...</li>
</ul>
<p>The first time, with the clan typo, it had a lot more errors. Its still possible that my ./b2 line of commands are wrong, but Im not one to see that at this level. Also, this non typo ./b2 line of commands doesn't seem to result in much of anything, but Im not qualified to do much more than make a guess on this. And Im not sure if I know how to avoid configuration files to be installed in /etc, I just assume this might be the result of installing using sudo. Im really still hoping to end up getting Wt to work, and unfortunately, Ill be bothering you guys at support for as long as you care to answer me, hoping that Im not too bothersome. Wt will be a vital part of our bachelor project, if I can make it work, as it seems like the perfect way of coding a website to be accessed with any available device at the site, be it a redundant laptop or an iPad, or whatever.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79672014-02-11T14:45:02ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey,</p>
<p>You are doing:</p>
<pre><code>./b2 --toolset=clang --prefix=/Users/taf/Boost g cxxflags="-stdlib=libc++ -std=c++11" linkflags="-stdlib=libc++" install
</code></pre>
<p>and getting errors like:</p>
<pre><code>notice: could not find main target g
notice: assuming it is a name of file to create.
...
don't know how to make g
...found 1 target...
...can't find 1 target...
</code></pre>
<p>The command on the wiki says it should be:</p>
<pre><code>sudo ./b2 --toolset=clang cxxflags="-stdlib=libc++ -std=c++11" linkflags="-stdlib=libc++" install
</code></pre>
<p>It should be obvious from the error messages that there's something wrong with your command line. The error messages serve a purpose; please read them.</p>
<p>Regards,<br><br>
koen</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79682014-02-11T14:48:51ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Thank you, Im a moron, I see now where the "g" from "clang" disappeared to the first time. Ill give it another go tonight. I did read the error messages several times, and look over the log several times, but you know how it is sometimes... you get blinded by looking at the same things too long. If this works I really owe you guys a beer ;)</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79792014-02-12T10:16:49ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Wim, now I edited the idiotic mistake in my ./b2 command chain. It seems to work, but in #13 you state that this should result in a lot of files being copied to the install directory. I guess /Users/taf/Boost/include/boost..... is correct. It also copies files to bin.V2 and Cellar. Then Im uncertain about the "make" and "make install" commands, they produce errors, and they don't seem to do much of anything. That is... Make does build a lot of CXX objects, but make install seem to return quite a few errors, and I have a feeling it do not complete any install:</p>
<p>Tors-MacBook-Retina:build taf$ make install<br><br>
[ 81%] Built target wt<br><br>
[ 81%] Built target wttest<br><br>
[ 89%] Built target test<br><br>
[ 93%] Built target wtdbo<br><br>
[ 93%] Built target wtdbosqlite3<br><br>
[ 95%] Built target test.sqlite3<br><br>
Linking CXX shared library libwthttp.dylib<br><br>
Undefined symbols for architecture x86_64:<br><br>
"boost::program_options::to_internal(std::_<em>1::basic_string<char, std::1::char_traits, std::1::allocator > const&)", referenced from:<br><br>
std::_*1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::1::allocator > > > boost::program_options::to_internal<std::1::basic_string<char, std::1::char_traits, std::1::allocator > >(std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > > > const&) in Configuration.o<br><br>
"boost::program_options::basic_parsed_options boost::program_options::parse_config_file(std::1::basic_istream<char, std::1::char_traits >&, boost::program_options::options_description const&, bool)", referenced from:<br><br>
http::server::Configuration::setOptions(int, char, std::_<em>1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > const&) in Configuration.o<br><br>
"boost::program_options::options_description::options_description(std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&, unsigned int, unsigned int)", referenced from:<br><br>
http::server::Configuration::createOptions(boost::program_options::options_description&) in Configuration.o<br><br>
http::server::Configuration::setOptions(int, char, std::_<em>1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > const&) in Configuration.o<br><br>
"boost::program_options::invalid_option_value::invalid_option_value(std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&)", referenced from:<br><br>
void boost::program_options::validate<long long, char>(boost::any&, std::_<em>1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > > > const&, long long*, long) in Configuration.o<br><br>
void boost::program_options::validate<int, char>(boost::any&, std::_<em>1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > > > const&, int*, long) in Configuration.o<br><br>
"boost::program_options::error_with_option_name::error_with_option_name(std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&, int)", referenced from:<br><br>
std::_<em>1::basic_string<char, std::1::char_traits, std::1::allocator > const& boost::program_options::validators::get_single_string(std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > > > const&, bool) in Configuration.o<br><br>
"boost::program_options::detail::cmdline::set_additional_parser(boost::function1<std::1::pair<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::basic_string<char, std::1::char_traits, std::1::allocator > >, std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&>)", referenced from:<br><br>
boost::program_options::basic_command_line_parser::extra_parser(boost::function1<std::_<em>1::pair<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::basic_string<char, std::1::char_traits, std::1::allocator > >, std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > const&>) in Configuration.o<br><br>
"boost::program_options::detail::cmdline::cmdline(std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::1::allocator > > > const&)", referenced from:<br><br>
boost::program_options::basic_command_line_parser::basic_command_line_parser(int, char const* const*) in Configuration.o<br><br>
"boost::program_options::validate(boost::any&, std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::1::allocator > > > const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator >*, int)", referenced from:<br><br>
boost::program_options::typed_value<std::_<em>1::basic_string<char, std::1::char_traits, std::1::allocator >, char>::xparse(boost::any&, std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > > > const&) const in Configuration.o<br><br>
"boost::program_options::operator<<(std::1::basic_ostream<char, std::1::char_traits >&, boost::program_options::options_description const&)", referenced from:<br><br>
http::server::Configuration::setOptions(int, char, std::_<em>1::basic_string<char, std::1::char_traits, std::</em>_1::allocator > const&) in Configuration.o<br><br>
"boost::program_options::abstract_variables_map::operator[](std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&) const", referenced from:<br><br>
http::server::Configuration::readOptions(boost::program_options::variables_map const&) in Configuration.o<br><br>
http::server::Configuration::checkPath(boost::program_options::variables_map const&, std::_<em>1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::basic_string<char, std::1::char_traits, std::</em>_1::allocator >&, int) in Configuration.o<br><br>
"boost::program_options::error_with_option_name::substitute_placeholders(std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&) const", referenced from:<br><br>
vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<a href="boost::program_options::invalid_option_value" class="external">boost::program_options::invalid_option_value</a> > in Configuration.o<br><br>
vtable for boost::exception_detail::error_info_injector<a href="boost::program_options::invalid_option_value" class="external">boost::program_options::invalid_option_value</a> in Configuration.o<br><br>
vtable for boost::program_options::invalid_option_value in Configuration.o<br><br>
vtable for boost::program_options::validation_error in Configuration.o<br><br>
vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<a href="boost::program_options::validation_error" class="external">boost::program_options::validation_error</a> > in Configuration.o<br><br>
vtable for boost::exception_detail::error_info_injector<a href="boost::program_options::validation_error" class="external">boost::program_options::validation_error</a> in Configuration.o<br><br>
"boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::<em>_1::allocator > > > const&, bool) const", referenced from:<br><br>
vtable for boost::program_options::typed_value<long long, char> in Configuration.o<br><br>
vtable for boost::program_options::typed_value<std::_*1::basic_string<char, std::1::char_traits, std::</em>_1::allocator >, char> in Configuration.o<br><br>
vtable for boost::program_options::typed_value<int, char> in Configuration.o<br><br>
ld: symbol(s) not found for architecture x86_64<br><br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br><br>
make[2]: * [src/http/libwthttp.3.3.1.dylib] Error 1<br><br>
make[1]: * [src/http/CMakeFiles/wthttp.dir/all] Error 2<br><br>
make: * [all] Error 2<br><br>
Tors-MacBook-Retina:build taf$</p>
<p>Am I correct in assuming this is a faulty install?</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79822014-02-12T10:54:42ZWim Dumonwim@emweb.be
<ul></ul><p>Hello Tor,</p>
<p>b2 copies the files itself (if you run it with 'install' at the end), you don't have to copy anything manually. Just check that they are there.</p>
<p>After b2 install finishes successfully, remove your wt build directory completely, rerun cmake with the right options, and then run make.</p>
<p>What you see now is a build error (a linker error), not an installation error. If the error persists after cleaning your build directory and restarting, can you run 'make VERBOSE=1' and paste the link command as well as the output of the link command? What version of Wt are you building?</p>
<p>BR,<br><br>
Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79832014-02-12T11:03:39ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Ok, so then I assume that b2 has done the correct install. Then I have to ask you if you could please look at my cmake, to verify it: cmake -DCMAKE_CXX_FLAGS='-stdlib=libc' \ -DCMAKE_INSTALL_PREFIX=/Users/taf/Wt-3.3.1 \ -DBOOST_PREFIX=/Users/taf/Boost \ -DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc' \ -DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc' \ -DWT_CPP_11_MODE='-std=c++11' ../ (This is exactly how i have made it, and I copy and paste it into Terminal, so please tell me if I have messed it up)</p>
<p>You say to remove the wt build directory after installing b2, but in the instructions on your wiki it says to make this directory after completing the Boost install instructions... Anyway, as soon as you have looked at my cmake and verified or corrected it, I will proceed with your instructions. By cleaning the build directory and restarting, do you mean just redoing the installation steps, or actually rebooting my macbook? Im not sure if there is some instructions persistent in my RAM from my failing install attempts :)</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79842014-02-12T11:29:36ZWim Dumonwim@emweb.be
<ul></ul><p>that cmake command looks right. But you know that a \ is used in bash to concatenate multi-line commands, so you don't have to type backslashes if you type the command in one line, right?</p>
<p>restart the building process by removing your build directory and then start from 'mkdir build'</p>
<p>Wim</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79852014-02-12T11:34:26ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>OK, thank you. I was not sure about the \ in this case, being that Im not so used to doing multi commands in Terminal. But Im learning. I have to admit that Ive hardly done much in something similar (dos) the past 10 years, and this last year Ive started using Linux at the University college, and then Ive learned and started understanding both Linux and OSX a lot better. So please excuse my ignorance and bear with me. I will try again now.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79862014-02-12T12:05:11ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Wim, I forgot to say that Im trying to install Wt-3.3.1</p>
<p>Now Ive run the cmake -DCMAKE_CXX_FLAGS='-stdlib=libc' -DCMAKE_INSTALL_PREFIX=/Users/taf/Wt-3.3.1 -DBOOST_PREFIX=/Users/taf/Boost -DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc' -DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc' -DWT_CPP_11_MODE='-std=c++11' ../</p>
<p>and make. I end up getting a message at the end of the make install process:</p>
<p>CMake Error at cmake_install.cmake:63 (FILE):<br><br>
file cannot create directory: /etc/wt. Maybe need administrative<br><br>
privileges.</p>
<p>make: * [install] Error 1<br><br>
Tors-MacBook-Retina:build taf$</p>
<p>I can see that its trying to install into a system (root) directory, so it kind of makes sense that it needs sudo rights, but you recommended installing in a different directory under my user. How do I do that? I assume I would have to erase build and redo the cake then... Else, should I sudo the make install?</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79872014-02-12T12:20:26ZWim Dumonwim@emweb.be
<ul></ul><p>The installation process tries to copy some configuration files to /etc, which you can't do as a normal user.</p>
<p>You have two options:</p>
<p>- run sudo make install </p>
<ul>
<li>edit build/CMakeCache.txt, find the reference to /etc/wt (CONFIGDIR, CONFIGURATION, WTHTTP_CONFIGURATION) and modify it to a location where you can write (/Users/taf/Wt-3.3.1/etc), and rerun make install</li>
</ul>
<p>Note: I noticed your install dir is set to /Users/taf/Wt-3.3.1, but you're not installing to your wt source directory I hope?</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79882014-02-12T12:36:34ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Im a bit embarrased to say that this is exactly what Ive been doing, because I was uncertain about wether I could define a new location or not at first, and then I ended up not reflecting much ore on it. But of course now Id like to change that. Would it not be possible to just edit my cmake to different location, and run it again after deleting the build directory?</p>
<p>By this point I think I have started to grasp a whole lot more on the install process, and I might try and make a guide for OSX Mavericks install.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79912014-02-12T16:26:38ZWim Dumonwim@emweb.be
<ul></ul><p>No. Remove the Wt source directory, the build directory, and start over with a fresh Wt copy.</p>
<p>What points in the instructions for Lion don't apply for Mavericks?</p>
<p>Wim.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=79922014-02-12T17:04:23ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>I think you are right, there isn't so much that it don't apply for Mavericks, as I was thinking more in the line of writing an "installation guide for dummies like myself" and try and explain the additional steps I ended up making, like adding a custom install path (which I moronically almost failed), how I edited build/CMakeCache.txt to redirect all references to /etc/wt into a directory under my home directory. I do hope you're not too annoyed by me at this point. Ive just returned home and started doing the remainder of the install now.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=81832014-02-19T14:47:30ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Im happy to say that I had my first Hello World application built in Qt and running on my MacBook with Mavericks installed. Looking back at the long and thorny road to accomplish this Id say that I have a couple of comments to the guide for Lion, and it might be comments more suited for noobs than anyone thats been playing around a while in the world of coding. I will have to write something for our project report about how I installed Wt, and I think for a noob pointing out the difference between using sudo and a customized prefix is good, I ended up not using sudo. And also mentioning something more around DYLD_LIBRARY_PATH would probably be good for a noob, because just running export didn't do me much good. But there are indications that this changed from the previous OS to Mavericks according to a message board post or two I read. I have to thank you for your patience and good help so far.</p>
Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=108912015-03-09T21:46:46ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul> Wt - Support #2649: Trying to get Wt working on OSX Maverickshttp://redmine.emweb.be/issues/2649?journal_id=109552015-03-17T07:18:00ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>