mpeaton / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

Mac Compile Fails #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download boost source and setup config.py
2. add 'using darwin : : /usr/bin/g++-4.2 ;' to tools/build/v2/user-config.jam
3. run setup.py build

What is the expected output? What do you see instead?

The software should compile, but instead it fails with a number of strange 
errors.

What version of the product are you using? On what operating system?

latest svn version on Mac OSX 

Please provide any additional information below.

Original issue reported on code.google.com by aber...@gmail.com on 7 May 2010 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
I think I figured it out:  the way to get it to compile is to edit 
tools/build/v2/user-config.jam and set your python 
framework, then edit bjamcompiler.py and change "using gcc :  :  g++" to "using 
darwin : : ${configure.cxx}" 
where configure.cxx is your c++ compiler.  I'm compiling now and will post a 
(very hackish) macports Port file if 
it works.

Original comment by aber...@gmail.com on 8 May 2010 at 7:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Okay - the above fixed the compilation problems.  Now version 885 from svn 
compiles for Mac OSX, but I get all 
sorts of  floating point exceptions and seg faults when I try to run any of the 
examples from the website.  I think 
that this might be related to the 32bit vs. 64bit issue.  Are there any reports 
of pyopencv actually working on a 
64bit machine?

Original comment by aber...@gmail.com on 8 May 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Please let me know how I can help get this software up and running.  I think it 
would be tremendously useful for 
many people.

Original comment by aber...@gmail.com on 8 May 2010 at 7:58

GoogleCodeExporter commented 9 years ago
Hi abergou,

So sorry for my late response. I have had a very busy week last week. 
Currently, I do
not have access to a Mac OS X platform, so I don't know how I can help you. 
Thanks
for the tip about changing "using gcc : : g++" to "using darwin : :
${configure.cxx}". It is very helpful. Perhaps, it can help me to solve some 
other
problems with Linux distributions, too. 

It has been reported very recently that PyOpenCV is compilable on a 64-bit 
machine
(issue 11). However, I haven't upgraded my system from 32-bit to 64-bit yet. 
Thus, I
am not entirely sure if all 64-bit bugs have been fixed.

I will keep this issue open until I manage to install PyOpenCV on a Mac OSX 
platform
myself, making sure that it runs smoothly.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 9 May 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Hi Minh-Tri,

Thanks for your reply - hope that the "using darwin" section indeed helps.  I 
will try to help out on my end and 
see where the issue is.  It looks like a 32-bit vs. 64-bit issue to me.

Attila

Original comment by aber...@gmail.com on 9 May 2010 at 3:36

GoogleCodeExporter commented 9 years ago
Hi Attila,

I think it is safe to close this issue now. Thanks a lot for your help.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 27 Aug 2010 at 7:19