# Error after executing make in the /demo/build/ folder

**URL:** <https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772>\
**Category:** Meeting SDK\
**Created:** [January 30, 2024, 2:14am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772 "2024-01-30T02:14:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [January 30, 2024, 2:14am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/1 "2024-01-30T02:14:24Z")

</div>

Hi @donte.zoom  
After executing make in the /demo/build/ folder , I’m getting following error. Please guide me to resolve this.

azureuser@akzoom-sdkserver:~/meetingsdk-linux-raw-recording-sample/demo/build$ sudo make  
Scanning dependencies of target meetingSDKDemo  
[8%] Building CXX object CMakeFiles/meetingSDKDemo.dir/meeting\_sdk\_demo.cpp.o  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp: In function ‘void JoinMeeting()’:  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:549:101: error: invalid new-expression of abstract class type ‘Meeting ParticipantsCtrlEventListener’  
549 | m\_pParticipantsController-\>SetEvent(new MeetingParticipantsCtrlEventListener(&onIsHost, &onIsCoHost));  
| ^  
In file included from /home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:37:  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/MeetingParticipantsCtrlEventListener.h:8:7: note: because the following virtual functions are pure within ‘MeetingParticipantsCtrlEventListener’:  
8 | class MeetingParticipantsCtrlEventListener :  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
In file included from /home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:21:  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/include/h/meeting\_service\_components/meeting\_participants\_ctrl\_interface.h:257:15: note: ‘ virtual void ZOOMSDK::IMeetingParticipantsCtrlEvent::onFocusModeStateChanged(bool)’  
257 | virtual void onFocusModeStateChanged(bool bEnabled) = 0;  
| ^ ~~~~~~~~~~~~~~~~~~~~~~  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/include/h/meeting\_service\_components/meeting\_participants\_ctrl\_interface.h:261:15: note: ‘ virtual void ZOOMSDK::IMeetingParticipantsCtrlEvent::onFocusModeShareTypeChanged(ZOOMSDK::FocusModeShareType)’  
261 | virtual void onFocusModeShareTypeChanged(FocusModeShareType type) = 0;  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:553:99: error: invalid new-expression of abstract class type ‘MeetingR ecordingCtrlEventListener’  
553 | m\_pRecordController-\>SetEvent(new MeetingRecordingCtrlEventListener(&onIsGivenRecordingPermission));  
| ^  
In file included from /home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:38:  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/MeetingRecordingCtrlEventListener.h:8:7: note: because the following virtual functions ar e pure within ‘MeetingRecordingCtrlEventListener’:  
8 | class MeetingRecordingCtrlEventListener :public IMeetingRecordingCtrlEvent  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
In file included from /home/azureuser/meetingsdk-linux-raw-recording-sample/demo/include/h/meeting\_service\_components/meeting\_participants\_ctrl\_interf ace.h:9,  
from /home/azureuser/meetingsdk-linux-raw-recording-sample/demo/meeting\_sdk\_demo.cpp:21:  
/home/azureuser/meetingsdk-linux-raw-recording-sample/demo/include/h/meeting\_service\_components/meeting\_recording\_interface.h:120:15: note: ‘virtu al void ZOOMSDK::IMeetingRecordingCtrlEvent::onCloudRecordingStorageFull(time\_t)’  
120 | virtual void onCloudRecordingStorageFull(time\_t gracePeriodDate) = 0;  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~  
make[2]: \*\*\* [CMakeFiles/meetingSDKDemo.dir/build.make:63: CMakeFiles/meetingSDKDemo.dir/meeting\_sdk\_demo.cpp.o] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:76: CMakeFiles/meetingSDKDemo.dir/all] Error 2  
make: \*\*\* [Makefile:84: all] Error 2

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 30, 2024, 2:18am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/2 "2024-01-30T02:18:28Z")

</div>

@abhishekmv.dev ,

It is likely you are using a newer version of the SDK, and some of the interfaces have not been implemented.

For now, could you try with 5.16.10?

I’ll update the sample with the latest SDK in a while

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [January 30, 2024, 2:48pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/3 "2024-01-30T14:48:42Z")

</div>

You need to implement below abstract classes to custom classes

- MeetingParticipantsCtrlEventListener
- MeetingRecordingCtrlEventListener

Then create instances of those.

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 1, 2024, 11:44am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/4 "2024-02-01T11:44:37Z")

</div>

[@tanchunsiong](https://github.com/tanchunsiong) Thank you so much. Its working now .  
After executing make in the /demo/build/ directory to compile , meetingSDKDemo file got generated in the /meetingsdk-linux-raw-recording-sample/demo/bin/ folder. But I’m not able to join the meeting. Also please help me to understand how to get the recording token . I read relevant docs , but I’m not understanding. Please help me out .

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 2, 2024, 1:56am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/5 "2024-02-02T01:56:57Z")

</div>

@abhishekmv.dev for recording token, you will need to use an OAuth app to get a meeting recording token. Below is the specific token which you need to get using the REST API

> **[Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingLocalRecordingJoinToken)**
>
> API Reference for /docs/api/rest/reference/zoom-api/methods

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 2, 2024, 8:21am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/6 "2024-02-02T08:21:32Z")

</div>

{  
“code”: 124,  
“message”: “Invalid access token.”  
}

I’m not getting recording\_token , I got Invalid access token message when I send GET request to this endpoint : [https://api.zoom.us/v2/meetings/85274782556/jointoken/local\_recording](https://api.zoom.us/v2/meetings/85274782556/jointoken/local_recording).

I used Insomnia desktop application.

Please help. @freelancer.nak @chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 2, 2024, 8:36am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/7 "2024-02-02T08:36:46Z")

</div>

@abhishekmv.dev it seems you are not generating the right access token to call the API.

Could you share how you are generating the access token?

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 2, 2024, 9:21am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/8 "2024-02-02T09:21:32Z")

</div>

@chunsiong.zoom  
I used this endpoint which is mentioned in the DOC: /meetings/{meetingId}/jointoken/local\_recording . I replaced my meetingID and sent the GET request using this endpoint : [https://api.zoom.us/v2/meetings/85274782556/jointoken/local\_recording](https://api.zoom.us/v2/meetings/85274782556/jointoken/local_recording).

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 2, 2024, 9:36am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/9 "2024-02-02T09:36:38Z")

</div>

@abhishekmv.dev this API requires authorisation, you need to have an access token before you can get the data.

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 2, 2024, 9:37am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/10 "2024-02-02T09:37:51Z")

</div>

@chunsiong.zoom . Please guide me on how to get access token

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 5, 2024, 1:05am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/11 "2024-02-05T01:05:08Z")

</div>

@abhishekmv.dev please check out this guide here

> **[Server-to-Server OAuth](https://developers.zoom.us/docs/internal-apps/s2s-oauth/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 6, 2024, 11:19am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/13 "2024-02-06T11:19:58Z")

</div>

@chunsiong.zoom @freelancer.nak I followed this guide and after making post request I’m getting following error.  
{  
“reason”: “unsupported grant type”,  
“error”: “unsupported\_grant\_type”  
}

My URL : [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id=5084767040](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=5084767040)  
with following header:  
“Content-Type”: application/x-www-form-urlencoded,  
“Authorization”: Basic emUwV1hzbzlTT3lOOEEwYU1aNHpROkpGNkxSOWwwUkt1NWp0bGlFMjBablJyR0d5MFlnSlpj

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [February 6, 2024, 2:34pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/14 "2024-02-06T14:34:52Z")

</div>

Seems you are not setting headers properly. Are you using PostMan?

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 6, 2024, 6:00pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/15 "2024-02-06T18:00:15Z")

</div>

@freelancer.nak @chunsiong.zoom I’m using postman . I used headers as mentioned in the guide.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 7, 2024, 1:08am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/16 "2024-02-07T01:08:56Z")

</div>

@abhishekmv.dev can you try following this guide?

> **[Setting up Server-to-Server (S2S) OAuth to test Zoom APIs via Postman](https://jenzushsu.medium.com/setting-up-server-to-server-s2s-oauth-to-test-zoom-apis-via-postman-32c9cd7a73)**
>
> For those who have been integrating and developing on Zoom Developer Platform, this shouldn’t not be new to you. But, for those who are…

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 8, 2024, 11:55pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/17 "2024-02-08T23:55:09Z")

</div>

@chunsiong.zoom @freelancer.nak Thank you . I’m able to get the access token using server-to-server OAuth app and used access token to get recording token.  
I need to use this recording token in config.txt file in meetingsdk-linux-raw-recording-sample to access raw audio and raw video in a headless docker environment.  
I have doubt in the content of config.txt file:

meeting\_number: “1234567890”  
token: “xxxxxxxx.yyyyyyyyyyyyyyyyyy.zzzzzzzzzzzzzzzzz”  
meeting\_password: “123456”  
recording\_token: “”  
GetVideoRawData: “true”  
GetAudioRawData: “true”  
SendVideoRawData: “false”  
SendAudioRawData: “false”

With respect to above content ,I have two questions:

1. Is meeting\_number same as meeting ID of Zoom ?
2. Is the token field value above is the access token that I got using S2S OAuth app ?

Please clarify.

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 11, 2024, 5:58pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/19 "2024-02-11T17:58:59Z")

</div>

@chunsiong.zoom @freelancer.nak Please clarify.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 13, 2024, 5:43am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/20 "2024-02-13T05:43:39Z")

</div>

> [@abhishekmv.dev](#):
>
> - Is meeting\_number same as meeting ID of Zoom ?
> - Is the token field value above is the access token that I got using S2S OAuth app ?

1. Meeting\_number is the same Meeting ID of Zoom
2. No. Token here refers to S[DK Authentication token](https://developers.zoom.us/docs/meeting-sdk/auth/). It is signed using a Meeting SDK App Type’s Client ID and Client Secret
3. The local recording token which you are gotten from S2S OAuth app should be passed into the recording\_token field

---

<div class="post-metadata">

**Author:** ![abhishekmv.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekmv.dev/32/56042_2.png) [@abhishekmv.dev](https://devforum.zoom.us/u/abhishekmv.dev)\
**Post date:** [February 15, 2024, 11:59am UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/21 "2024-02-15T11:59:27Z")

</div>

@chunsiong.zoom @freelancer.nak

 ![Capture7](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/8/0828e8ad663f0eea9fbc6f05da4c6ebe66890fa6.png)

I’m able to get SDK Authentication token.  
After executing `make` in the `/demo/build/` directory to compile, meetingSDKDemo folder got generated in /meetingsdk-linux-raw-recording-sample/demo/bin/ folder.  
After this I executed the following command :-  
docker build -t msdk-5.17.5-on-ubuntu-compact -f Dockerfile-Ubuntu/Dockerfile . docker run -it --rm msdk-5.17.5-on-ubuntu-compact  
The above command is not being executed. I have attached the screenshot of this command execution. Please help me out of this.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 15, 2024, 1:14pm UTC](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772/22 "2024-02-15T13:14:18Z")

</div>

@abhishekmv.dev I’ll be closing this thread as it is going off topic and and chaining multiple topics.

I would strongly encourage you to look at some docker tutorial.

The error which you have encountered is due to running 2 separate commands at same time instead of running them one by one.

If you still have issues, please open a new thread and tag me

[Next page](https://devforum.zoom.us/t/error-after-executing-make-in-the-demo-build-folder/102772.md?page=2)
