Andersama / obs-asio

ASIO plugin for OBS-Studio
GNU General Public License v3.0
679 stars 43 forks source link

CMake error following instructions #1

Closed kamikazeedriver closed 6 years ago

kamikazeedriver commented 6 years ago

I've followed your directions to the letter, but encounter an error in Cmake. In your instructions on how to compile the obs-asio as a standalone plugin, you mention:

In cmake-gui, hit Configure, Generate and open Visual Studio.

When I press configure, it begins but stops at an error.

Could NOT find Libobs (missing: LIBOBS_LIB LIBOBS_INCLUDE_DIR) CMake Error at external/FindLibobs.cmake:106 (message): Could not find the libobs library

I can define the location of the libobs directory in the obs-studio i downloaded, but that doesn't take care of LIBOBS_LIB. I've ascertained that cmake is searching for obs.lib

I cannot find this file anywhere and it's not mentioned in your directions.
Am I missing something here?
Thanks.

pkviet commented 6 years ago

hi , you're missing the 3rd step: You will need to have an obs-studio folder with libobs headers. On my own setup for instance: LIBOBS_LIB = C:/obs-studio/build/libobs/Release/obs.lib LIBOBS_INCLUDE_DIR = C:/obs-studio/libobs To have these you have to have a working environment for obs-studio (see step two and the link). Basically, you need to follow instructions for building obs-studio on its wiki: git clone https://github.com/obsproject/obs-studio.git ==> will get you path for LIBOBS_INCLUDE_DIR Set QTDIR and DepsPath as explained in https://github.com/obsproject/obs-studio/wiki/install-instructions#windows-build-directions.

Sorry if it was not clear. We will rewrite this part to make it clearer. Anyway, it will be soon obsolete since we're finalizing a full open source asio plugin which we are allowed to distribute.

PS: we will upload later today libobs.lib and headers in /external folder to save users the compilation of obs-studio so one just points to them

pkviet commented 6 years ago

Ps: show up on discord obs support and i can help you there if you really don't manage.

kamikazeedriver commented 6 years ago

Thank you for the swift response. I figured I was missing the understanding of something as I am not real familiar with compiling, and so the terminology was beyond me. Being a noob at all this, I didn't fully understand what was fmeant by the terminology in step 3.
I'm sure it was perfectly clear to those who do this more regular. I appreciate you taking the time to explain it to me.

Look forward to seeing your finalized open source asio plugin when it is ready.
Also look forward to seeing the libobs.lib and headers in the /external folder, that will simplify the process for ppl like me who are new to all this.

I'll give it a go again and if I have anymore issues, I'll find that discord you mentioned.
Thanks again pkviet!

pkviet commented 6 years ago

I have uploaded obs.lib in /external; instructions have also been updated. You need first to update your copy of this repo. For obs headers git clone the official repo. Then add LIBOBS-LIB and LIBOBS_INCLUDE_DIR and point respectively to obs.lib cloned from this repo and to obs-studio/libobs from your copy of official repo.

kamikazeedriver commented 6 years ago

Which discord are you usually on?  I think I'll have to reinstall discord. And I can't seem to find the official repo and maybe that's my issue. I keep getting the same problem.   I'm even clearing out the build folder (c:/obs-asio/build) after every attempt. I have both of your repos cloned at the root of the drive.  C:/obs-asio and c:/obs-studioI've put the x64 bassasio files, (.h, .lib, and even .dll though it's not needed yet) in C:/obs-asio These are the entries I've added to CMake BASS_ASIO_INCLUDE_DIR = C:/obs-asio BASS_ASIO_LIB = C:/obs-asio LIBOBS_INCLUDE_DIR = c:/obs-studio/libobs LIBOBS_LIB = c:/obs-asio/external

This is the error that I keep having:

Could NOT find Libobs (missing: LIBOBS_LIB LIBOBS_INCLUDE_DIR) CMake Error at external/FindLibobs.cmake:106 (message): Could not find the libobs library Call Stack (most recent call first): CMakeLists.txt:14 (include) I've tried those 'INCLUDE' lines with the value box checked and without. I may just be way over my head.  I get the concept.  I understand what these lines are including, but I just don't understand why It's not working.  

I thank you for your patience with me on this.

On Thursday, March 29, 2018 4:41 PM, pkviet <notifications@github.com> wrote:

I have uploaded obs.lib in /external; instructions have also been updated. You need first to update your copy of this repo. For obs headers git clone the official repo. Then add LIBOBS-LIB and LIBOBS_INCLUDE_DIR and point respectively to obs.lib cloned from this repo and to obs-studio/libobs from your copy of official repo.— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

pkviet commented 6 years ago

i'm on the official obs discord: https://obsproject.com/help

pkviet commented 6 years ago

LIBOBS_LIB is a filepath; it should be c:/obs-asio/external/obs.lib

pkviet commented 6 years ago

you don't need to reinstall discord; you can use the webapp; ping for me on #support nick is pkv

kamikazeedriver commented 6 years ago

I did try to point directly to the file as well but it's possible I had something else wrong.  Will try it again in the morning.What is the location of the official repo?Also, On discord, is there a discord link?

On Thursday, March 29, 2018 5:56 PM, pkviet <notifications@github.com> wrote:

you don't need to reinstall discord; you can use the webapp; ping for me on #support— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

pkviet commented 6 years ago

for bassasio, leave the .h file in the original folder (say, bassasio13/c ) and point to it; for the bassasio lib, if you're building x64 you should point to bassasio13/c/x64/bassasio.lib .
For discord, you click on the link provided on the obs help page, you'll have an invite to obs official discord server. Then either login or create an account.

agottschling commented 6 years ago

I'm running into the same issue, even when pointing directly to the file for LIBOBS_LIB. Any ideas?

pkviet commented 6 years ago

show up on discord, and i'll try to help you on the chat; what would be helpful is the cmake error message

pkviet commented 6 years ago

@kamikazeedriver the stand alone install requires a separate obs-studio compile atm. So the simplest is to follow the instructions for compiling both at same time. Whatever, I'll release open source binaries in a few days so you can forget about compilation if you're patient

kamikazeedriver commented 6 years ago

That sounds good pkviet.  I'm certainly willing to wait.  I thank you for all the help you've been on this. 

On Friday, March 30, 2018 2:40 PM, pkviet <notifications@github.com> wrote:

@kamikazeedriver the stand alone install requires a separate obs-studio compile atm. So the simplest is to follow the instructions for compiling both at same time. Whatever, I'll release open source binaries in a few days so you can forget about compilation if you're patient— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

pkviet commented 6 years ago

@kamikazeedriver send me an email pkv.stream(a)gmail.com and i will give you a link to a test build.

pkviet commented 6 years ago

Update: plugin released in release section.

kamikazeedriver commented 6 years ago

Awesome, thanks pkviet.  Will check it out tomorrow after work.I apologize, I just now saw your message about the test build.

On Sunday, April 15, 2018 4:43 PM, pkviet <notifications@github.com> wrote:

Update: plugin released in release section.— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.