obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Error when running cmake command on MAC OS 10.9.2

Open fredotech opened this issue 12 years ago • 16 comments

CMake Error at obs/CMakeLists.txt:20 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Widgets" with any of the following names:

  • Qt5WidgetsConfig.cmake
  • qt5widgets-config.cmake

Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set "Qt5Widgets_DIR" to a directory containing one of the above files. If "Qt5Widgets" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/Applications/obs-studio-master/cmbuild/CMakeFiles/CMakeOutput.log". See also "/Applications/obs-studio-master/cmbuild/CMakeFiles/CMakeError.log".

fredotech avatar Apr 28 '14 21:04 fredotech

in the install instructions for mac it is missing the QT5 install steps (Recommend that it is added for novice like us.

Reads:

Mac OSX

  • Use macports or homebrew and get FFmpeg, glew and cmake.
  • In a terminal, go to the obs-studio directory create a cmbuild subdir and change to it, then to build, type:
  • It builds in a modular structure similar to windows, where everything necessary to run the program is compiled to cmbuild/rundir
  • You can also use ccmake to create an app bundle, which makes it so you don't have to use the terminal to execute it from the correct directory

fredotech avatar Apr 28 '14 21:04 fredotech

I would also add the edit file: obs/CMakeList.txt to include : and a note to check the version for path set (CMAKE_PREFIX_PATH "/usr/local/Cellar/qt5/5.2.1/lib/cmake/Qt5Widgets") find_package(Qt5Widgets REQUIRED)

fredotech avatar Apr 28 '14 21:04 fredotech

You probably shouldn't be building it in that path. You should be building it in a cloned directory somewhere in your home path.

Setting a static path in the cmake file is not a good idea. Not everyone is going to have built it to that directory, because I know I don't at the moment. Whether this is a design fault of the Qt installer or not I don't know, but I have to manually set the Qt5Widgets cmake directory when creating new cmake cache files, and I don't have qt5 installed to /usr/local myself

jp9000 avatar Apr 29 '14 00:04 jp9000

So how we go about fixing this issue. I have searched around and tried things buts it not working. I have installed qt5 via brew

shaqaruden avatar Apr 29 '14 05:04 shaqaruden

ok I have some major issues just getting this to compile.

  1. I placed the OBS downloaded files ro my application folder: /Applications/obs-studio-master
  2. I rand the commands listed in the Install instructions
  3. a Folder was created in :/Applications/obs-studio-master/cmbuild/rundir
  4. when I click on obs I get the error: Failed to find locale/en.txt

is there anyway someone can just post an .app package?

fredotech avatar Apr 29 '14 19:04 fredotech

Hello fredotech,

You would only be able to launch it via terminal by

Changing the Directory to the bin directory like so: "cd ~/Applications/obs-studio-master/cmbuild/rundir/RelWithDebInfo/bin"

and run with the "./obs" command. Alternatively you can try the "make package" command from the cmbuild directory to get a .dmg file which can be mounted to install as an app package.

drekryan avatar Apr 29 '14 19:04 drekryan

If you're trying to build it just so that you can use it rather than help develop for it, then you should just wait until a release is made.

dodgepong avatar Apr 29 '14 19:04 dodgepong

Thank you Drekryan. that worked

Dodgepong. some times helps comes from instruction updates that have been posted that I was able to help better clarify, and now by using I can tell what issues I run into. we may all not be Coders but I'm a certified tester and QAManager. If you would like my help I don't mind. but I believe that the more people on it the more eyes the better the product.

fredotech avatar Apr 29 '14 19:04 fredotech

Oh, believe me, I know we will need people to test. What I mean is that the project is not quite yet in a stage where tester feedback is being solicited, or would be as helpful. Once the project is ready for testers to play with, a package will be made available (like you requested).

dodgepong avatar Apr 29 '14 19:04 dodgepong

I think we can close this issue before discussion gets off topic. If one of the admins can do that. Everyone runs into build errors. Anyone is free to build and use it as long as they release they are using code that is not yet ready for prime time. Please do file any issues you find though as that will only help improve the software. Glad you got it working. Best of luck to you.

drekryan avatar Apr 29 '14 19:04 drekryan

Hi Fredotech, I'm having the same issue you had, did you execute 'brew install qt5' to fix the issue? Could you outline your process/steps?

dalekurt avatar May 02 '14 19:05 dalekurt

I just installed

brew install qt5 I edit file: obs/CMakeList.txt to include : and a note to check the version for path set (CMAKE_PREFIX_PATH "/usr/local/Cellar/qt5/5.2.1/lib/cmake/Qt5Widgets") find_package(Qt5Widgets REQUIRED)

I validated that the path for QT5 was valid before adding the values.

Alfredo Rivera Web: www.fredotech.com Email: [email protected] Phone: 301-252-6601

Confidentiality Notice: The information and all attachments supplied in this message may be legally privileged. If you are not the intended recipient of this message, the sender does not intend delivery to you to waive any privilege or right pertaining to this message. If you have received this message in error, (i) do not read, copy, or use this communication, or disclose it to others, (ii)immediately notify the sender by return e-mail, and (iii) delete the errant message.

On May 2, 2014, at 3:00 PM, Dale-Kurt Murray [email protected] wrote:

Hi Fredotech, I'm having the same issue you had, did you execute 'brew install qt5' to fix the issue? Could you outline your process/steps?

— Reply to this email directly or view it on GitHub.

fredotech avatar May 02 '14 20:05 fredotech

Worked perfectly! I built the DMG package and I'm going to test it out.

dalekurt avatar May 02 '14 21:05 dalekurt

:-)

Can u send me how u setup cmake to create the dmg?

Alfredo Rivera Web: www.fredotech.com Email: [email protected] Phone: 301-252-6601

On May 2, 2014, at 5:45 PM, Dale-Kurt Murray [email protected] wrote:

Worked perfectly! I built the DMG package and I'm going to test it out.

— Reply to this email directly or view it on GitHub.

fredotech avatar May 02 '14 22:05 fredotech

From the cmbuild directory path, execute the command 'make package'. For me it created a obs-studio-x64-4a370ac-modified.dmg file

dalekurt avatar May 02 '14 22:05 dalekurt

Initially I was not able to run cmake. Then after setting up the QTDIR in my zshrc I was able to run cmake. For example...

  1. Open your ~/.zshrc (or ~/.bashrc) in some text editor (vim ~/.zshrc).
  2. Paste the following export:
# Set QT5 directory for OBS development
export QTDIR=/usr/local/opt/qt # or wherever you qt is located
  1. Source your ~/.zshrc (or ~/.bashrc) (source ~/.zshrc).

bojanstef avatar May 03 '20 05:05 bojanstef