From: Gregory S. <gs...@dr...> - 2011-02-16 17:22:29
|
So now that I've got things building in Linux (I'm working on cleaning up those changes for pull request), I also need things to build on Windows with VS 2010 (no openssl for now; we actually don't need secure connections in our product. Yet:). Has anyone tried to do that? I'm seeing some weird compile errors, and I want to make sure they're not caused by my CMake hacks before I think about them too hard. I'm actually using the Windows SDK (not a full version of Visual Studio) with CMake generated solution files and MSBuild. Here are some example errors that I'm seeing. Like I said, they're weird: ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> ".\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_constructor_test.vcxproj.metaproj " (default target) (3) -> ".\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_constructor_test.vcxproj" (defaul t target) (6) -> (ClCompile target) -> .\boost\boost/asio/io_service.hpp(533): error C2248: 'boost::noncopyable_::noncopyable::non copyable' : cannot access private member declared in class 'boost::noncopyable_::noncopyable' [.\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_constructor_test.vcxproj] ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> ".\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_get_different_port_test.vcxproj.m etaproj" (default target) (7) -> ".\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_get_different_port_test.vcxproj" (default target) (8) -> .\cpp-netlib \boost/network/protocol/http/policies/simple_connection.hpp(57): error C2440: ' initializing' : cannot convert from 'std::_Tree_const_iterator<_Mytree>' to 'std::_Tree_const_iterator<_Mytree>' [.\cpp-netlib\libs\network\test \http\cpp-netlib-http-client_get_different_port_test.vcxproj] .\cpp-netlib \boost/network/protocol/http/policies/simple_connection.hpp(58): error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'std::_Tree_const_iterator<_Mytree>' (or there is no accepta ble conversion) [.\cpp-netlib\libs\network\test\http \cpp-netlib-http-client_get_different_port_test.vcxproj] There are other problems that are definitely the result of my (apparently still incomplete) CMake hacks to build against dynamic libraries, but the compile errors don't make any sense. -- Gregory Symons <gs...@dr...> Developer DrillingInfo <http://www.drillinginfo.com> |
From: Gregory S. <gs...@dr...> - 2011-02-16 17:42:38
|
On Wed, 2011-02-16 at 11:22 -0600, Gregory Symons wrote: > So now that I've got things building in Linux (I'm working on cleaning > up those changes for pull request), I also need things to build on > Windows with VS 2010 (no openssl for now; we actually don't need secure > connections in our product. Yet:). Has anyone tried to do that? I'm > seeing some weird compile errors, and I want to make sure they're not > caused by my CMake hacks before I think about them too hard. > > I'm actually using the Windows SDK (not a full version of Visual Studio) > with CMake generated solution files and MSBuild. [snip] > There are other problems that are definitely the result of my > (apparently still incomplete) CMake hacks to build against dynamic > libraries, but the compile errors don't make any sense. BTW, I'm trying to build against the 0.9-devel branch from <http://github.com/cpp-netlib/cpp-netlib>. Given that I'm now hacking on things, I'm working on moving to <http://github.com/mikhailberis/cpp-netlib>. -- Gregory Symons <gs...@dr...> Developer DrillingInfo <http://www.drillinginfo.com> |
From: Dean M. B. <mik...@gm...> - 2011-02-17 03:08:27
|
On Thu, Feb 17, 2011 at 1:42 AM, Gregory Symons <gs...@dr...> wrote: > On Wed, 2011-02-16 at 11:22 -0600, Gregory Symons wrote: > > BTW, I'm trying to build against the 0.9-devel branch from > <http://github.com/cpp-netlib/cpp-netlib>. Given that I'm now hacking on > things, I'm working on moving to > <http://github.com/mikhailberis/cpp-netlib>. > That would be most appreciated. :) Looking forward to the pull requests! :D -- Dean Michael Berris about.me/deanberris |
From: Dean M. B. <mik...@gm...> - 2011-02-17 03:07:38
|
On Thu, Feb 17, 2011 at 1:22 AM, Gregory Symons <gs...@dr...> wrote: > So now that I've got things building in Linux (I'm working on cleaning > up those changes for pull request), I also need things to build on > Windows with VS 2010 (no openssl for now; we actually don't need secure > connections in our product. Yet:). Has anyone tried to do that? I'm > seeing some weird compile errors, and I want to make sure they're not > caused by my CMake hacks before I think about them too hard. > Cool! BTW, the CMake configuration (in 0.9-devel) will try to look for OpenSSL and if it's not found a preprocessor definition is avoided that would make the library rely on OpenSSL. More specifically, if it can't find OpenSSL development files, BOOST_NETWORK_ENABLE_HTTPS is not defined. > I'm actually using the Windows SDK (not a full version of Visual Studio) > with CMake generated solution files and MSBuild. > > Here are some example errors that I'm seeing. Like I said, they're > weird: > > ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj.metaproj > " (default target) (3) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj" (defaul > t target) (6) -> > (ClCompile target) -> > .\boost\boost/asio/io_service.hpp(533): error C2248: > 'boost::noncopyable_::noncopyable::non > copyable' : cannot access private member declared in class > 'boost::noncopyable_::noncopyable' [.\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj] > > ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj.m > etaproj" (default target) (7) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj" > (default target) (8) -> > .\cpp-netlib > \boost/network/protocol/http/policies/simple_connection.hpp(57): error > C2440: ' > initializing' : cannot convert from 'std::_Tree_const_iterator<_Mytree>' > to 'std::_Tree_const_iterator<_Mytree>' [.\cpp-netlib\libs\network\test > \http\cpp-netlib-http-client_get_different_port_test.vcxproj] > .\cpp-netlib > \boost/network/protocol/http/policies/simple_connection.hpp(58): error > C2678: binary '!=' : no operator found which takes a left-hand operand > of type 'std::_Tree_const_iterator<_Mytree>' (or there is no accepta > ble conversion) [.\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj] > Hmm... these errors looks suspicious. These don't happen on Linux? > There are other problems that are definitely the result of my > (apparently still incomplete) CMake hacks to build against dynamic > libraries, but the compile errors don't make any sense. > Looking forward to the completed CMake hacks. :) Thanks for the effort Gregory! -- Dean Michael Berris about.me/deanberris |
From: Gregory S. <gs...@dr...> - 2011-02-17 15:19:12
|
On Thu, 2011-02-17 at 11:07 +0800, Dean Michael Berris wrote: > On Thu, Feb 17, 2011 at 1:22 AM, Gregory Symons > <gs...@dr...> wrote: > > So now that I've got things building in Linux (I'm working on cleaning > > up those changes for pull request), I also need things to build on > > Windows with VS 2010 (no openssl for now; we actually don't need secure > > connections in our product. Yet:). Has anyone tried to do that? I'm > > seeing some weird compile errors, and I want to make sure they're not > > caused by my CMake hacks before I think about them too hard. > > > > Cool! > > BTW, the CMake configuration (in 0.9-devel) will try to look for > OpenSSL and if it's not found a preprocessor definition is avoided > that would make the library rely on OpenSSL. More specifically, if it > can't find OpenSSL development files, BOOST_NETWORK_ENABLE_HTTPS is > not defined. I saw that, but the CMakelists.txt for the examples still explicitly adds OPENSSL_LIBRARIES to the link, and CMake complains about it being set to not found. That change is among the others that I made > > > I'm actually using the Windows SDK (not a full version of Visual Studio) > > with CMake generated solution files and MSBuild. > > > > Here are some example errors that I'm seeing. Like I said, they're > > weird: > > > > > > Hmm... these errors looks suspicious. These don't happen on Linux? No. As far as I can tell, everything builds cleanly on Linux. As it turns out, I rolled back both to a virgin 0.9-devel and a 0.8.1-devel and tried to build against a static boost without any of the CMake hackery (except the OpenSSL one for the examples), and still couldn't build. Has anyone tried to build with VS 2010 before this? I saw some references to VS 2008 on the list, but none for VS 2010. > Looking forward to the completed CMake hacks. :) > > Thanks for the effort Gregory! -- Gregory Symons <gs...@dr...> Developer DrillingInfo <http://www.drillinginfo.com> |
From: Dean M. B. <mik...@gm...> - 2011-02-18 03:28:51
|
On Thu, Feb 17, 2011 at 11:18 PM, Gregory Symons <gs...@dr...> wrote: > On Thu, 2011-02-17 at 11:07 +0800, Dean Michael Berris wrote: >> On Thu, Feb 17, 2011 at 1:22 AM, Gregory Symons >> <gs...@dr...> wrote: >> > So now that I've got things building in Linux (I'm working on cleaning >> > up those changes for pull request), I also need things to build on >> > Windows with VS 2010 (no openssl for now; we actually don't need secure >> > connections in our product. Yet:). Has anyone tried to do that? I'm >> > seeing some weird compile errors, and I want to make sure they're not >> > caused by my CMake hacks before I think about them too hard. >> > >> >> Cool! >> >> BTW, the CMake configuration (in 0.9-devel) will try to look for >> OpenSSL and if it's not found a preprocessor definition is avoided >> that would make the library rely on OpenSSL. More specifically, if it >> can't find OpenSSL development files, BOOST_NETWORK_ENABLE_HTTPS is >> not defined. > > I saw that, but the CMakelists.txt for the examples still explicitly > adds OPENSSL_LIBRARIES to the link, and CMake complains about it being > set to not found. That change is among the others that I made > Ah, for the *examples*. I never actually thought of that part. >> >> > I'm actually using the Windows SDK (not a full version of Visual Studio) >> > with CMake generated solution files and MSBuild. >> > >> > Here are some example errors that I'm seeing. Like I said, they're >> > weird: >> > > >> > >> >> Hmm... these errors looks suspicious. These don't happen on Linux? > > No. As far as I can tell, everything builds cleanly on Linux. As it > turns out, I rolled back both to a virgin 0.9-devel and a 0.8.1-devel > and tried to build against a static boost without any of the CMake > hackery (except the OpenSSL one for the examples), and still couldn't > build. > > Has anyone tried to build with VS 2010 before this? I saw some > references to VS 2008 on the list, but none for VS 2010. > I had been developing on VS 2010 for a while last yer, but I've since Oct. 2010 have not had access to VS 2010 again. Do you know exactly where in which test this is failing? I can't shake the feeling that this might have something to do with Boost.Test or another Boost library's differences in Windows and Linux. Looking forward to hearing from you again soon and hopefully cracking this VS2010 nut without me having access to that compiler in the meantime. -- Dean Michael Berris about.me/deanberris |