linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] 'inttypes.h' file not found


From: Nick Briggs
Subject: Re: [Linphone-developers] 'inttypes.h' file not found
Date: Fri, 22 Sep 2017 08:46:58 -0700

Don't you think it's odd that "which nasm" *says* /usr/local/bin/nasm, and yet 
without a path specified you're getting /usr/bin/nasm (the Apple version)...?

At least for the Apple version nasm takes "-fmacho" as the format spec, not 
"-fmacho64".

You might look in the Makefiles/CMakefiles and see how it's actually invoking 
nasm (it may be getting Apple's /usr/bin version)

-- Nick


> On Sep 21, 2017, at 11:56 PM, Aristedes Maniatis <address@hidden> wrote:
> 
> Thanks for the pointer. This is what was needed after the xcode 9 upgrade:
>   xcode-select --install
> 
> But then I'm stuck with nasm.
> 
> $ brew install nasm
> 
> $ ./prepare.py -f --list-cmake-variables | grep nasm
> NASM_PROGRAM:FILEPATH=/usr/local/bin/nasm
> 
> $ which nasm
> /usr/local/bin/nasm
> 
> $ nasm -v
> NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Aug  7 2017
> 
> $ /usr/local/bin/nasm -v
> NASM version 2.13.01 compiled on May  2 2017
> 
> 
> [ 86%] Performing build step for 'EP_openh264'
> nasm: fatal: unrecognised output format `macho64' - use -hf for a list
> type `nasm -h' for help
> make[4]: *** [codec/common/x86/cpuid.o] Error 1
> make[3]: *** 
> [/Users/ari/svn/linphone-desktop/WORK/desktop/Stamp/EP_openh264/EP_openh264-build]
>  Error 2
> make[2]: *** [CMakeFiles/EP_openh264.dir/all] Error 2
> make[1]: *** [all] Error 2
> make: *** [desktop-build] Error 2
> 
> 
> Ari
> 
> 
> 
> On 22/9/17 1:41PM, Nick Briggs wrote:
>> On a system that is:
>> 
>> % uname -a
>> Darwin Macadamia.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 
>> 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
>> 
>> with Xcode version 9 (installed a few days ago), clang is 
>> 
>> % clang --version
>> Apple LLVM version 9.0.0 (clang-900.0.37)
>> Target: x86_64-apple-darwin16.7.0
>> Thread model: posix
>> InstalledDir: 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>> 
>> 
>> (notice that your include is looking for 8.1.0), and the file <inttypes.h> 
>> is indeed found at
>> 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/inttypes.h
>> 
>> (and it's not empty)
>> 
>> I wonder if something (CMake) tried to be too smart about the system include 
>> search path...?
>> Reset any build configuration info and try again?
>> 
>> 
>>> On Sep 21, 2017, at 5:54 PM, Aristedes Maniatis <address@hidden 
>>> <mailto:address@hidden>> wrote:
>>> 
>>> Has anyone succeeded recently in building a recent source of 
>>> linphone-desktop on OSX? I tried updating all the brew libraries, xcode to 
>>> 9.0 and linphone source to the latest git from this morning.
>>> 
>>> # ./prepare.py --all-codecs --package
>>> # make
>>> 
>>> Any ideas?
>>> 
>>> Ari
>>> 
>>> 
>>> On 29/8/17 8:57PM, Aristedes Maniatis wrote:
>>>> When building linphone-desktop from source I'm stuck here:
>>>> 
>>>> [ 85%] Forcing build for 'EP_openh264'
>>>> [ 86%] Performing build step for 'EP_openh264'
>>>> In file included from 
>>>> ../../../..//submodules/externals/openh264/codec/common/src/common_tables.cpp:33:
>>>> In file included from 
>>>> ../../../..//submodules/externals/openh264/codec/common/inc/wels_common_defs.h:37:
>>>> In file included from 
>>>> ../../../..//submodules/externals/openh264/codec/common/inc/typedefs.h:49:
>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include/inttypes.h:30:15:
>>>>  fatal error:
>>>>      'inttypes.h' file not found
>>>> #include_next <inttypes.h>
>>>>              ^
>>>> 1 error generated.
>>>> make[4]: *** [codec/common/src/common_tables.o] Error 1
>>>> make[3]: *** 
>>>> [/Users/ari/svn/linphone-desktop/WORK/desktop/Stamp/EP_openh264/EP_openh264-build]
>>>>  Error 2
>>>> make[2]: *** [CMakeFiles/EP_openh264.dir/all] Error 2
>>>> make[1]: *** [all] Error 2
>>>> make: *** [desktop-build] Error 2
>>>> 
>>>> Should there be an empty inttypes.h file in submodules/externals/openh264?
>>>> 
>>>> 
>>>> $ uname -a
>>>> Darwin ip-136.ish.com.au <http://ip-136.ish.com.au> 16.7.0 Darwin Kernel 
>>>> Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; 
>>>> root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
>>>> 
>>>> This is OSX 10.12.6
>>>> 
>>>> 
>>> 
>>> 
>>> -- 
>>> -------------------------->
>>> Aristedes Maniatis
>>> CEO, ish
>>> https://www.ish.com.au
>>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>>> 
>>> _______________________________________________
>>> Linphone-developers mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>> 
> 
> 
> -- 
> -------------------------->
> Aristedes Maniatis
> CEO, ish
> https://www.ish.com.au
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A




reply via email to

[Prev in Thread] Current Thread [Next in Thread]