Comments (11)
Hi @sclsj,
Can You please let us know if the decode failure happens with our latest commit - 3b23f65 ?
Thanks!
from libmpegh.
Hi @sclsj,
I was wondering if You got a chance to try decoding the files with our latest commit!
from libmpegh.
Yep, still the same problem (error output) with freshly cloned and built project.
With that being said, I'm doing autoreconf -i ; ./configure; make
to build the project. It seems like I can also build the project using cmake (which I tried; it gave an error, see below) or the makefile in build/make
(which I tried before successfully, but I don't remember how I did it)? Is there any difference between these three way of compiling?
Cmake error (`mkdir buildnew ; cd buildnew ; cmake ../)
make
[ 0%] Building C object CMakeFiles/ia_mpeghd_lib.dir/decoder/impd_drc_dynamic_payload.c.o
[ 1%] Building C object CMakeFiles/ia_mpeghd_lib.dir/decoder/impd_drc_extr_delta_coded_info.c.o
[ 2%] Building C object CMakeFiles/ia_mpeghd_lib.dir/decoder/impd_drc_filter_bank.c.o
In file included from /Users/jin/libmpeghnew/decoder/impd_drc_filter_bank.c:36:
/Users/jin/libmpeghnew/decoder/impeghd_type_def.h:55:13: error: typedef redefinition with different types ('int' vs '__darwin_intptr_t' (aka 'long'))
typedef int intptr_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/_types/_intptr_t.h:32:33: note: previous definition is here
typedef __darwin_intptr_t intptr_t;
^
1 error generated.
make[2]: *** [CMakeFiles/ia_mpeghd_lib.dir/decoder/impd_drc_filter_bank.c.o] Error 1
make[1]: *** [CMakeFiles/ia_mpeghd_lib.dir/all] Error 2
make: *** [all] Error 2
from libmpegh.
Hi @sclsj,
We follwed the steps provided here and the build was successful on macOS. Can You provide details about Cmake version you used and the compiler you are using ?
from libmpegh.
cmake --version
cmake version 3.25.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
cmake ../ -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jin/libmpegh_compileerror/bin
cc --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
c++ --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
from libmpegh.
Also tried with gcc
version 12.2.0 installed with homebrew:
export CC=/opt/homebrew/bin/gcc-12
export CXX=/opt/homebrew/bin/g++-12
cmake ../
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/bin/gcc-12 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/bin/g++-12 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jin/libmpegh_compileerror/bin
Got the same error with make
.
from libmpegh.
Apparently by commenting out that line (55) the program is able to compile. I'm not sure if that causes any unexpected behaviors, but it seems like the executable works and passed the smoke test provided.
from libmpegh.
Hello.
For your reference, I cloned the latest repo and compiled again using autoreconf and saw no errors.
from libmpegh.
Hello, this issue might be a duplicate of #54. Let me know if I should close this issue.
from libmpegh.
Hi @sclsj,
The fix for #54 is available on latest main now. Please try latest main build once.
Thanks!
from libmpegh.
Closing due to no activity since long time.
from libmpegh.
Related Issues (20)
- global-buffer-overflow reported by asan when decoding a sample HOT 2
- negative-size-param reported by asan when decoding a sample HOT 6
- Full support for MPEGH_PROFILE_LC_LVL_4 HOT 12
- Missing frees in error return paths in MP4 parser code HOT 1
- Support for CompatibleProfileLevelSet() missing in MPEG-H decoder HOT 1
- File encoded with 'Fraunhofer Encoding and Muxing Tool' fails to decode HOT 12
- Regression (?) for 360RA level 3 HOT 6
- Unable to decode mhm1 HOT 13
- License question HOT 5
- Failed to decode mhas files HOT 2
- Unable to decode fragmented mhm1 mp4 file HOT 5
- ext_ren flag produces files with incorrect filename HOT 4
- Feature request: Can you add "binaural" to the target speaker layout options? HOT 11
- Compile static executable HOT 1
- Input File: File Open Failed HOT 2
- Stuck when decoding 360RA file HOT 6
- Fraunhofer test files fail with "invalid channel configuration" HOT 2
- [QUESTION] Can I pay someone to explain how to use this like I'm a 5th grader? HOT 3
- Need help HOT 5
- Off-by-one issue in maximum number of description languages check HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmpegh.