WohlSoft / AudioCodecs

A portable collection of audio codecs as set of dependencies for SDL Mixer X audio library
14 stars 8 forks source link

Missing variable is: `CMAKE_ASM-ATT_COMPILE_OBJECT` #15

Closed onon1101 closed 5 months ago

onon1101 commented 5 months ago

Problem

when I ran this command in my Macbook, i got some error that Missing variable is: CMAKE_ASM-ATT_COMPILE_OBJECT.

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_ASM-ATT_COMPILE_OBJECT
CMake Generate step failed.  Build files cannot be regenerated correctly.

Is that my env broken?

Repo Version

92dbf21c3b4e50de87c057de5098c21669add7cb

OS

Execution Version

CMake suite maintained and supported by Kitware (kitware.com/cmake).


- clang
```txt
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Other

Wohlstand commented 5 months ago

Looks weird... lemme try on my Mac when I get my home.

Wohlstand commented 5 months ago

Actually, I always built the thing using older Xcode kit on older Mac, but right now I do have the newer Mac with Sonoma aboard, so, I'll try out using recent Xcode then.

onon1101 commented 5 months ago

thanks, i found that in SDL-Mixer-X repo use args -DDOWNLOAD_AUDIO_CODECS_DEPENDENCY=ON.

onon1101 commented 5 months ago

I think, this issue maybe take your time. and I found how to set CMAKE_INSTALL_PREFIX to include the SDL2 library in SDL-Mixer-X without the AudioCodes, and it can work in my repo. but I'm not sure if use more special Libraries.

Wohlstand commented 5 months ago

I tested the build of the same thing, and the environment is same if not count that it's Intel environment. The thing builds just fine on my end with local SDL2. 🤔

Wohlstand commented 5 months ago

Also! I do see my clang is a part of Command Line Tools, not Xcode itself:

% clang --version                       
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Please try to install Development command line tools, and try to build the thing again. Looks weird with the Xcode environment 🤔

onon1101 commented 5 months ago

emmm..., as you say. it's so weird. i try to use command line tools that same as yours. but i get some error... this is my new clang version.

➜  AudioCodecs git:(master) clang --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

this problem probably is my env broken, and i will try to build a new MacOS vm to run it. thank you.

logs.txt