WEBVTT

00:00.770 --> 00:08.540
Want to go over how to set up curses that curses library on the various platforms.

00:08.540 --> 00:17.240
So I'm going to start with Windows first and you'll notice that there is a file that's attached to this

00:17.240 --> 00:26.060
lecture called PD curses and that file is only for you Windows users.

00:26.810 --> 00:39.050
And download the file and then unzip it and in it there should be a few files in there and take the

00:39.050 --> 00:46.770
two files called curses H and panel that age and copy them.

00:47.100 --> 00:55.500
And in your Eclipse workspace create two new folders called include and lib.

00:55.990 --> 01:01.100
Put the cursor is dot H and panel that H into include.

01:01.630 --> 01:03.420
And in the lib.

01:03.550 --> 01:12.230
Put PD curses dot what they and in whatever

01:14.640 --> 01:25.780
in whatever project you make to test your curses out in debug copy copy the DL else p.

01:26.070 --> 01:32.940
PD curses dot DL and copy it into your debug folder.

01:34.940 --> 01:51.290
And next in your actual project right click and say properties and go to see C++ build and settings.

01:51.680 --> 02:03.990
And in the gcc compiler go to includes and go to include passes for Section peer and hit this button.

02:04.260 --> 02:18.580
Hit Phyliss hit file system and go to your workspace and hit your include folder.

02:18.590 --> 02:22.570
You just made it open and hit OK.

02:25.020 --> 02:38.760
And then in your IT should say men GW C++ linker go to libraries and in the library search path hit

02:39.270 --> 02:45.370
this in hit file system and hit list.

02:45.460 --> 02:45.740
OK

02:48.610 --> 02:51.880
and here in the.

02:52.130 --> 02:56.590
Type the hearse is in hit.

02:56.610 --> 02:59.720
OK should look like this.

03:00.540 --> 03:01.800
And then hit apply

03:04.790 --> 03:17.090
and yes it shows that so PD courses in the library's research path should look like whatever your workspace

03:17.130 --> 03:19.110
is is mine.

03:19.370 --> 03:26.040
I'm on a Mac so I don't have to do any of this stuff but it should be your workspace slash lib and it

03:26.040 --> 03:32.160
includes should be your workplace workspace slash and clean.

03:32.480 --> 03:36.850
And remember that you need the dot yellow in your debug folder.

03:36.880 --> 03:37.620
OK.

03:37.760 --> 03:45.230
And also just make sure that in your linker under miscellaneous you do in the linker flags you should

03:45.230 --> 03:51.980
have static static Dasch lib.

03:52.020 --> 03:54.570
C C dash static

03:57.040 --> 03:58.040
Ashleigh.

03:58.310 --> 04:00.800
Steve.

04:00.980 --> 04:10.120
Plus they can only for Windows users so make sure that this is like like this is well apply.

04:10.220 --> 04:18.500
I don't have to do this on my Mac it it apply.

04:18.520 --> 04:19.530
Yes.

04:19.680 --> 04:20.380
OK.

04:25.950 --> 04:30.760
And that should be it for your set up.

04:30.840 --> 04:41.230
Just remember that you have to do this all this setup this setup set the one I just showed you all this

04:41.260 --> 04:45.490
and this and it includes for each project.

04:45.650 --> 04:46.270
OK.

04:46.540 --> 04:56.110
And you also have to copy the dot Dalel into your debug folder for each project as well.

04:56.680 --> 05:02.550
So the other thing is make sure to do that.

05:02.560 --> 05:05.450
External tools thing.

05:05.500 --> 05:06.610
I showed you before.

05:06.730 --> 05:14.800
So you should have some kind of configuration that ran ran your project in the console.

05:14.800 --> 05:22.870
You should really watch that video if you kind of forgot and see see how I did it for Windows.

05:22.870 --> 05:25.980
And you have to do that for each cursus project as well.

05:26.200 --> 05:26.970
OK.

05:27.520 --> 05:37.670
So close this and show the Mac users how to use their project.

05:37.680 --> 05:43.220
So for Mac users we curses already exists for us.

05:43.260 --> 05:45.520
Unlike the Windows users.

05:45.900 --> 05:51.660
So we don't need this includes or library stuff.

05:51.780 --> 05:55.790
Well we will but not that's really all.

05:55.870 --> 06:02.350
All we have to do for the libraries is hit this ad and just type in cursive.

06:02.380 --> 06:07.280
It's like that each day and then hit apply.

06:09.520 --> 06:11.960
Yes and k.

06:12.760 --> 06:17.040
And really all we need to do now is actually include.

06:17.080 --> 06:23.520
So for Windows users it should look like this in in double quotes like that.

06:23.560 --> 06:30.370
And your skin type curses that H in it for Mac users like myself.

06:30.570 --> 06:33.100
I'm going to type in cursive stuff.

06:33.230 --> 06:36.410
Ch in angle brackets.

06:37.320 --> 06:41.810
Because curses already exists on my system and gcc knows how to get it.

06:41.830 --> 06:46.080
So I just build project.

06:46.250 --> 06:48.040
It's fine.

06:48.510 --> 06:54.130
All builds properly and it's using the curses library that way.

06:54.180 --> 07:03.390
So if you have any problems just kind of relaunch the video I've shown you everything you really need

07:03.600 --> 07:06.890
to get curses running again.

07:06.960 --> 07:15.600
You have to do all these steps each time you make a project except for for Windows user you don't have

07:15.600 --> 07:21.260
to keep adding curses Dudie to your panel the nature of the library each time.

07:21.430 --> 07:29.000
OK you'll have to add it for your properties but you don't have to copy those files.

07:30.640 --> 07:31.340
So that's it.

07:31.570 --> 07:36.430
And I will see you in the next lecture where I will actually start using cursus.
