KnoooW / naclports

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

Compile FFMPEG with G++ instead of GCC #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've tried modifying any files I could find in hopes of forcing FFmpeg to 
compile with g++ but it _always_ compiles with gcc. Is there a flag in some 
file that I've missed that will enable me to do this?

Mat.

Original issue reported on code.google.com by mathieu....@matbee.com on 8 Mar 2014 at 5:09

GoogleCodeExporter commented 9 years ago
Anyone? I'm stuck.

Original comment by mathieu....@matbee.com on 9 Mar 2014 at 9:10

GoogleCodeExporter commented 9 years ago
What exactly are you trying to achieve by compiling with g++?   Since ffmpeg is 
largely written in C its likely to have problem compiling if you use g++.  
Perhaps you mean that you want to link with g++?   If this is the goal I would 
suggest modifying ld_default in the configure script.

Original comment by sbc@google.com on 10 Mar 2014 at 4:48

GoogleCodeExporter commented 9 years ago
Well I want to make ffmpeg executable in a NaCl environment, so I added some 
C++ message handling functions. These don't work unless they're compiled in 
C++..

Original comment by mathieu....@matbee.com on 11 Mar 2014 at 5:18

GoogleCodeExporter commented 9 years ago
So it sounds like you want to add some C++ files to ffmpeg, and link with C++, 
rather than compile everything as C++.   This should be not hard, but you will 
need to modify the Makefile.am files, and perhaps the configure.in script.

Another approach would be to leave the ffmpeg package along and create a new 
app (in C++) which links against the ffmpeg libraries.

Original comment by sbc@google.com on 11 Mar 2014 at 3:54

GoogleCodeExporter commented 9 years ago
Please reopen if you need more help with this.

Original comment by sbc@google.com on 30 Sep 2014 at 5:57