ggandda / simd-cxx

Automatically exported from code.google.com/p/simd-cxx
0 stars 0 forks source link

Visual Studio Build #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using boost on visual studio the library is auto linking, ie you dont
have to specify the boost additional libraries and the compiler picks up
the correct libraries from the library path as required.  As CMake does not
know the naming scheme for the library names SimD does not quite compile
out the box with MSVC.

To get SimD to build I ended up replacing the SimD FindBoost function with
the more comprehensive one delivered with CMake (I dont know if this gets
installed by the linux distributions) and updated the
src/dds/CMakeLists.txt to use it appropriately and set the library path.
This also has the benefit of attempting to find the library even if the
environment variable is not defined.

I do not currently have a GNU build environment set up to test if this
still compiles on linux etc but added an if statement to check for MSVC and
thus whether the libraries need to be specified explicitly.

Files attached.

Original issue reported on code.google.com by nick.gl...@lycos.com on 1 Jun 2010 at 10:59

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,
I tried to build SIMD with Visual Studio, but Icould not have a result. Does 
someone
gives more détails about the boost 1.43 configuration PATHs and the 
compilation if it
works well.
Best Regards.
Hakiri

Original comment by akram.ha...@gmail.com on 1 Jun 2010 at 9:23

GoogleCodeExporter commented 8 years ago
I am using Visual Studio 8 (2005)
I have Boost 1.42 installed in 
c:\program files\boost\boost_1_42_0
and opensplice in
c:\program files\opensplice

if you had attempted to build SimD before applying the two files I attached to 
the
problem report then you will need to select "File->Delete Cache" from the CMake 
gui,
then re-run configure and then regenerate the project file.

Original comment by nick.gl...@lycos.com on 2 Jun 2010 at 8:01

GoogleCodeExporter commented 8 years ago
I have visual studio 9 (2008), with boost 1.43 installed in C:\Program
Files\boost\boost_1_43_0 and opensplice in C:\Program
Files\PrismTech\OpenSpliceDDS\V4.3_Eval\HDE\x86.win32.
I used cmake 2.6 and select "File->Delete Cache" from the CMake gui,
then re-run configure and then regenerate the project file, but I have this 
error.

Original comment by akram.ha...@gmail.com on 3 Jun 2010 at 2:12

Attachments:

GoogleCodeExporter commented 8 years ago
you appear to have attached a picture of your boost folder.

Original comment by nick.gl...@lycos.com on 3 Jun 2010 at 2:18

GoogleCodeExporter commented 8 years ago
I have visual studio 9 (2008), with boost 1.43 installed in C:\Program
Files\boost\boost_1_43_0 and opensplice in C:\Program
Files\PrismTech\OpenSpliceDDS\V4.3_Eval\HDE\x86.win32.
I used cmake 2.6 and select "File->Delete Cache" from the CMake gui,
then re-run configure and then regenerate the project file, but I have this 
error
attached to this file. Do you have any explication to that message.
Best regards.
Akram

Original comment by akram.ha...@gmail.com on 3 Jun 2010 at 2:18

Attachments:

GoogleCodeExporter commented 8 years ago
try upgrading to latest CMake? (2.81)

Original comment by nick.gl...@lycos.com on 3 Jun 2010 at 2:22

GoogleCodeExporter commented 8 years ago
Hello Nick,

 Thanks for providing the changes for the Visual Studio build. Concerning the findBoost, SimD should really use the CMake provided version and this will be changed right off.

Cheers,
    Angelo

Original comment by angelo.corsaro@gmail.com on 1 Jul 2010 at 12:51

GoogleCodeExporter commented 8 years ago
The version in the repo as 28.07.2010 include the proposed fix. Nick, thanks 
again for providing the changes.

Original comment by angelo.corsaro@gmail.com on 28 Jul 2010 at 2:54