|
From: Luigi B. <lui...@gm...> - 2021-04-13 10:13:48
|
Thanks, Marcin. On OS X 10.14 the existing instructions worked (after
adding -std=c+11, because clang still defaults to C++03) for Python >= 3.7,
while 3.6 failed. Instead, the following seems to work with all versions
still supported, that is, 3.6 and above:
For QuantLib, same as written in the instructions on the site:
./configure --disable-shared CXXFLAGS='-O2 -g0 -std=c++11
-stdlib=libc++ -mmacosx-version-min=10.9' LDFLAGS='-stdlib=libc++
-mmacosx-version-min=10.9'
make
make install
(The --disable-shared flag is suggested on the site and results in a
self-contained Python module instead of one that requires a dynamic library
for QuantLib installed.)
For QuantLib-Python, forget about configure and run:
cd Python
CXXFLAGS='-O2 -g0 -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.9'
LDFLAGS='-stdlib=libc++ -mmacosx-version-min=10.9' python3 setup.py build
python3 setup.py test
python3 setup.py install
(you can replace python3 with whatever Python you want to use: for instance
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3)
Please let me know if this works for you too. If so, I'll update the
instructions.
Luigi
On Mon, Apr 12, 2021 at 7:06 PM Marcin Rybacki <mry...@gm...> wrote:
> Hi Luigi,
>
> I hope it is yet not too late to send feedback.
>
> On a Windows 10 machine I see the following after compiling the library:
>
> Running 884 test cases...
>
> Tests completed in 9 m 50 s
>
> *** No errors detected
>
>
> Building QuantLib-SWIG and running Python tests gives:
> ----------------------------------------------------------------------
> Ran 125 tests in 19.243s
>
> OK
>
> On OS X 10.15.6 I was able to compile the library and successfully run the
> unit tests, but only after adding -std=c++11 flag to CXXFLAGS.
> I could not get SWIG Python to compile, I struggled a bit which flags
> should be used in ./configure.
> Hence, perhaps it might be good to update the installation instructions
> for Mac OS X to reflect that? Unless this is just due to my local setup.
>
> Many thanks,
> Marcin
>
> On Thu, 1 Apr 2021 at 15:24, Luigi Ballabio <lui...@gm...>
> wrote:
>
>> Hello everybody,
>> I published release candidates for version 1.22 at <
>> https://github.com/lballabio/QuantLib/releases/tag/1.22rc>. If you have
>> some time in the next week or two, I'd appreciate your feedback.
>>
>> Have a nice Easter break,
>> Luigi
>>
>>
>> _______________________________________________
>> QuantLib-users mailing list
>> Qua...@li...
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>
>
|