Sorry to be here again: thanks for having solved the locale problem.
I have 2 macintosh:one old macbook under 10.7, on which I installed asymptote 2.28 from source, without problems.
And a iMac under Mavericks (10.9.2). After having written in a terminal: "xcode-select --install" to install some command line tools,
I run into errors during the make process as you can see near the end of the log:
Shame on me: I have never used a patch!
I have a slist.patch: were do I place it? (in Asymptote source folder i suppose)
and then what precise incantation must I formulate: something like
"patch slist.patch"?
Sorry to be so ignorant!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After having gotten through patch manipulation,
I have a new error:
~~~~~~~~~~~~~~~~~~~
Creating camperror.d
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC -D_THREAD_SAFE -pthread -DFFTWPP_SINGLE_THREAD -I/usr/local/include -I . -Igc-7.4.0/include -o camperror.o -c camperror.cc
In file included from camperror.cc:14:
In file included from ./camperror.h:16:
In file included from ./common.h:35:
./memory.h:32:10: fatal error: 'tr1/unordered_map' file not found
include <tr1 unordered_map="">
~~~~~~~~~~~~~~~~~~~~
I do have that file in /usr/include/c++/4.2.1/tr1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
~~~~~~~
ovale-2:~ andrevalentin$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
~~~~~~~~
By the way, I have the same error
./memory.h:32:10: fatal error: 'tr1/unordered_map' file not found
with the svn version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As to slist - that was premature optimisation.
Just use list unconditionally.
I have already dropped slist use in the development version of the PRC code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, so you could try the latest version from SVN. But two users untill now reported that while the binary builds, it hangs "forever" after being launched.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ext/hash_map:212:5: warning:
Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map> [-W#warnings]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry to be here again: thanks for having solved the locale problem.
I have 2 macintosh:one old macbook under 10.7, on which I installed asymptote 2.28 from source, without problems.
And a iMac under Mavericks (10.9.2). After having written in a terminal: "xcode-select --install" to install some command line tools,
I run into errors during the make process as you can see near the end of the log:
https://dl.dropboxusercontent.com/u/26884927/AsyInstall.txt
Yes, I just submitted a patch (attached) to svn to fix that yesterday. Can you please verify that it works.
P.S. Also change PREREQ(4,3) to PREREQ(4,0) in memory.h to get rid of the warning there.
Shame on me: I have never used a patch!
I have a slist.patch: were do I place it? (in Asymptote source folder i suppose)
and then what precise incantation must I formulate: something like
"patch slist.patch"?
Sorry to be so ignorant!
I also have been having trouble installing in OS X 10.9.2. I was able to get the installation to build by making the following changes:
in
prc/writePRC.h
: commented out lines as follows:and farther down in the same file:
in
genv.cc
: changed#include <bits/stl_algo.h>
to#include <algorithm>
. I'm not sure how well that ought to work, but according to this website,Regardless, the version I now have sort of works, but trying to compile a pdf file without setting
prc
to false gives the error(Note that I am substituting
~
for the actual address of my home directory.)After having gotten through patch manipulation,
I have a new error:
~~~~~~~~~~~~~~~~~~~
Creating camperror.d
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC -D_THREAD_SAFE -pthread -DFFTWPP_SINGLE_THREAD -I/usr/local/include -I . -Igc-7.4.0/include -o camperror.o -c camperror.cc
In file included from camperror.cc:14:
In file included from ./camperror.h:16:
In file included from ./common.h:35:
./memory.h:32:10: fatal error: 'tr1/unordered_map' file not found
include <tr1 unordered_map="">
~~~~~~~~~~~~~~~~~~~~
I do have that file in /usr/include/c++/4.2.1/tr1
In memory.h you need to change PREREQ(4,3) to PREREQ(4,0).
Or compile from the latest svn version.
The change in memory.h was already done, as you told me in a preceding post...
I'll try the svn version.
What version of g++ are you using?
~~~~~~~
ovale-2:~ andrevalentin$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
~~~~~~~~
By the way, I have the same error
./memory.h:32:10: fatal error: 'tr1/unordered_map' file not found
with the svn version.
It looks like the __cplusplus macro isn't set properly. I guess I'll have to use
configure to autodetect whether "tr1/" is needed or not.
Anyway, you can work around it by replacing in memory.h:
with
~~~~~~~~~~~~~~~~~~~~~~
if 1
~~~~~~~~~~~~~~~~~~~~~
As to slist - that was premature optimisation.
Just use list unconditionally.
I have already dropped slist use in the development version of the PRC code.
I did so, but there is now the error
./prc/writePRC.h:33:10: fatal error: 'ext/slist' file not found
Must I do the same in "writePRC.h"?
If you do not use slist - there is no reason to include its header file.
I gave a try of asymptote 2.29, (mac os 10 Mavericks) with the command
./configure CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
as I was told since several years. But I'am not sure if this is anymore valid...
I got an error:
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC -D_THREAD_SAFE -pthread -DFFTWPP_SINGLE_THREAD -I/usr/local/include -I . -Igc-7.4.0/include -o genv.o -c genv.cc
genv.cc:18:10: fatal error: 'bits/stl_algo.h' file not found
include <bits stl_algo.h="">
I do have a "stl_algo.h" in /usr/include/c++/4.2.1/bits/
so is "/usr/include/" in the search path?
I gave a second try with "./configure" alone, but I got the same error.
https://sourceforge.net/p/asymptote/code/5651/
OK, so you could try the latest version from SVN. But two users untill now reported that while the binary builds, it hangs "forever" after being launched.
After trying the modification suggested in https://sourceforge.net/p/asymptote/discussion/409349/thread/3ced789c/#b3a8
I've got considerably farther. But the build stage of the manual got stuck in building "GaussianSurface.asy". I can do 2D drawings, but no 3D...
And I've a lot of:
Further changes have been committed to SVN that need testing. (You can try to run just make, followed by asy -config="" -vvv doc/GaussianSurface.asy.)
The ext/hash_map warning was a consequence of a typo that was fixed in revision 5652.
Thanks to Mojca and John! The installation on Mac os 10 Mavericks of 2.31svn-r5664
was done smoothly (3 days ago).
Just one small detail:
I have gnu Readline(6.3) installed in /usr/local/include and /usr/local/lib, but it was not found…