Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
On 16 Dec, Jesse Jiang wrote : I know, but I want make it more easly. It will confusuon the beginer. Beginners should probably not compile FFmpeg. -- Jean-Baptiste Kempf http://www.jbkempf.com/ - +33 672 704 734 Sent from my Electronic Device ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
Yes, it is true. But I think this job is not hard, we can use which command to get the cl path. Like $ which cl/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/cl.exe Then we can replace the cl.exe with link.exe, so we can got the correct link for msvc. But the problem is I do not know how to operator the string in configure. Thanks for anyone can help. Date: Tue, 16 Dec 2014 09:57:56 +0100 From: j...@videolan.org To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] How to make the link.exe as MSVC's link On 16 Dec, Jesse Jiang wrote : I know, but I want make it more easly. It will confusuon the beginer. Beginners should probably not compile FFmpeg. -- Jean-Baptiste Kempf http://www.jbkempf.com/ - +33 672 704 734 Sent from my Electronic Device ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
On Tue, Dec 16, 2014 at 10:11 AM, Jesse Jiang jessejiang0...@outlook.com wrote: Yes, it is true. But I think this job is not hard, we can use which command to get the cl path. Like $ which cl/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/cl.exe Then we can replace the cl.exe with link.exe, so we can got the correct link for msvc. But the problem is I do not know how to operator the string in configure. configure is fine, it doesn't need any changes. Your local setup is broken if it picks the wrong link.exe ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
On Tue, Dec 16, 2014 at 11:14:59AM +0100, Hendrik Leppkes wrote: On Tue, Dec 16, 2014 at 10:11 AM, Jesse Jiang jessejiang0...@outlook.com wrote: Yes, it is true. But I think this job is not hard, we can use which command to get the cl path. Like $ which cl/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/cl.exe Then we can replace the cl.exe with link.exe, so we can got the correct link for msvc. But the problem is I do not know how to operator the string in configure. configure is fine, it doesn't need any changes. Your local setup is broken if it picks the wrong link.exe I think the idea is to make it more user-friendly by making it not pick a version it could know is broken by default. I don't know if it's worth the effort and potential configure complexity (maybe it should just print a warning/error instead on how to set up the system correctly), but in principle I think that configure should as much as possible/sensible just work. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
On Tue, Dec 16, 2014 at 09:11:18AM +, Jesse Jiang wrote: Yes, it is true. But I think this job is not hard, we can use which command to get the cl path. Like $ which cl/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/cl.exe Then we can replace the cl.exe with link.exe, so we can got the correct link for msvc. But the problem is I do not know how to operator the string in configure. Thanks for anyone can help. I'm not convinced it's a good idea, but $(dirname $(which cl))/link.exe should probably work. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] How to make the link.exe as MSVC's link
Hi All, I want to make MSVC build ffmpeg more easily. There is a problem, if we launch msys.bat which in mingw enviroment, the link.exe in msys will conflict with link.exe in MSVC. So I try to change the configure like this msvc) # Check whether the current MSVC version needs the C99 converter. # From MSVC 2013 (compiler major version 18) onwards, it does actually # support enough of C99 to build ffmpeg. Default to the new # behaviour if the regexp was unable to match anything, since this # successfully parses the version number of existing supported # versions that require the converter (MSVC 2010 and 2012). cl_major_ver=$(cl 21 | sed -n 's/.*Version \([[:digit:]]\{1,\}\)\..*/\1/p') if [ -z $cl_major_ver ] || [ $cl_major_ver -ge 18 ]; then cc_default=cl ld_default=/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/link.exe else cc_default=c99wrap cl ld_default=link fi “VC/BIN/link.exe” only be used in X86, if it is x64 or arm, the path is different. But I found that, the cl and link.exe is in the same folder, so is there any way to get the cl path, and then modify the path with link’s path. Thanks all. Best regards, Jesse Sent from Windows Mail ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
On 12/16/2014 12:39 AM, Jesse Jiang wrote: Hi All, I want to make MSVC build ffmpeg more easily. There is a problem, if we launch msys.bat which in mingw enviroment, the link.exe in msys will conflict with link.exe in MSVC. This is covered in the documentation: http://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows Look under notes. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] How to make the link.exe as MSVC's link
I know, but I want make it more easly. It will confusuon the beginer. Sent from Surface From: Derek Buitenhuis Sent: Tuesday, December 16, 2014 12:06 PM To: FFmpeg development discussions and patches On 12/16/2014 12:39 AM, Jesse Jiang wrote: Hi All, I want to make MSVC build ffmpeg more easily. There is a problem, if we launch msys.bat which in mingw enviroment, the link.exe in msys will conflict with link.exe in MSVC. This is covered in the documentation: http://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows Look under notes. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel