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: Aristedes Maniatis
Subject: Re: [Linphone-developers] 'inttypes.h' file not found
Date: Tue, 26 Sep 2017 08:26:05 +1000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Thunderbird/56.0

On 23/9/17 1:46AM, Nick Briggs wrote:
> 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)...?

Yes, it is really odd. It isn't consistent either with the PATH order or with 
the output of 'which'. I'm guessing this is one of those OSXisms, like not 
being able to modify /usr/bin even as root. Something in the OS is selecting 
the 'approved' nasm and I can't even move the /usr/bin one out of the way as 
root.



> 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)

The problem is that openh264 is a third party project which doesn't pay any 
attention to the paths discovered by the python prepare.py script in linphone.

https://github.com/cisco/openh264/blob/d59610965f421c872ea4752940cb04aa063b1b64/build/x86-common.mk

It just picks up the first binary called nasm on the path. Which is 
unfortunately for me the wrong one.

For now, I'm building everything happily without openh264, but I'll try and 
work on building just that library separately to see how it goes.


Ari




> -- 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
> 


-- 
-------------------------->
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]