Opened 4 years ago
Closed 4 years ago
#99 closed defect (fixed)
Qutecom failed to build on MAC OS
| Reported by: | ahgindia | Owned by: | vadim |
|---|---|---|---|
| Priority: | blocker | Milestone: | QuteCom 2.2-RC4 |
| Component: | 3rd party libs | Version: | 2.2-RC3 |
| Keywords: | ffmpeg | Cc: |
Description
Hi,
I am trying to build latest version of qutecom source downloaded from repository on 24-May-2009.
But it was not able to build on MAC OS. Using the same source I can successfully build qutecom on windows.
The error I can understand is associated with ffmpeg library.
Is there any possibility that I can use internal library of ffmpeg provided of source and solve this issue. If yes, then how can I use internal library of ffmpeg while building the qutecom.
Please help me to solve this error.
Thank you in advance.
Attachments (3)
Change History (10)
Changed 4 years ago by ahgindia
Changed 4 years ago by laurent
comment:1 Changed 4 years ago by laurent
try this patch
comment:2 Changed 4 years ago by ahgindia
Thanks,
It worked.
But why is this error not solved in trunk version yet. Qutecom 2.2 final release is about to be released soon and still the error exists in the trunk source.
comment:3 Changed 4 years ago by ahgindia
Now I got another error after applying the patch and starting the build from stratch. Here is the relevant portion of error :
Linking CXX shared library libphapi.dylib
ld warning: duplicate dylib /opt/local/lib/libavcodec.dylib
ld warning: duplicate dylib /opt/local/lib/libavutil.dylib
ld warning: duplicate dylib /opt/local/lib/libavformat.dylib
ld warning: duplicate dylib /opt/local/lib/libswscale.dylib
ld warning: duplicate dylib /opt/local/lib/libboost_program_options-mt.dylib
ld warning: duplicate dylib /opt/local/lib/libboost_serialization-mt.dylib
ld warning: duplicate dylib /opt/local/lib/libboost_signals-mt.dylib
ld warning: duplicate dylib /opt/local/lib/libboost_thread-mt.dylib
Undefined symbols:
"_CRYPTO_malloc_debug_init", referenced from:
_dh_init in libsvoip.a(dh.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: * [wifo/phapi/libphapi.dylib] Error 1
make[1]: * [wifo/phapi/CMakeFiles/phapi.dir/all] Error 2
make: * [all] Error 2
Can you help me again in this?
Thanks in advance.
Changed 4 years ago by laurent
comment:4 Changed 4 years ago by laurent
Try this.
I would to know the version off gcc and macport you are using ?
comment:5 Changed 4 years ago by laurent
Sorry,
I would like to know the version of gcc and macport you are using ?
comment:6 Changed 4 years ago by ahgindia
port -v
MacPorts? 1.710
gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
There was one other error after solving this error :
/usr/local/include/mach-o/arch.h:52: error: use of enum 'NXByteOrder' without previous declaration
make[2]: * [libs/3rdparty/googlebreakpad/CMakeFiles/googlebreakpad.dir/src/common/mac/macho_walker.o] Error 1
make[1]: * [libs/3rdparty/googlebreakpad/CMakeFiles/googlebreakpad.dir/all] Error 2
make: * [all] Error 2
I have solved this by uncommenting definition of NXByteOrder, which I had commented out previously due to solve one more error.
So to solve this error I have done changes in /usr/local/include/mach-o/arch.h and dept the definition of NXByteOrder inside class guards ifndef _SOME_NAME define _SOME_NAME.
So finally, I have successfully built MAC version of qutecom after solving lots of errors. I had not faced any such in windows version.
comment:7 Changed 4 years ago by laurent
- Resolution set to fixed
- Status changed from new to closed
With mac_ffmpeg.diff i can build QuteCom without modification ...
My settings are gcc 4.0.1 and port 1.8.0 (svn version)

Error compiling qutecom on MAC from latest source of 24-May-2009