# Problem with Spektrum (library)

**URL:** https://discourse.processing.org/t/problem-with-spektrum-library/43006
**Category:** Libraries
**Created:** [October 18, 2023, 1:12pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006 "2023-10-18T13:12:40Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 18, 2023, 1:12pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/1 "2023-10-18T13:12:40Z")

</div>

Hello everyone I have a problem connecting the library. I am trying to run the Spektrum program ([GitHub - pavels/spektrum: rtl-sdr spectrum analyzer](https://github.com/pavels/spektrum) ) I don’t get the problem No library found for rtlspektrum  
Libraries must be installed in a folder named ‘libraries’ inside the sketchbook folder (see the Preferences window).  
The package “rtlspektrum” does not exist. You might be missing a library.  
Although all libraries are in place. Please help me to sort out the problem. Mac Os 14.0

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [October 18, 2023, 9:00pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/2 "2023-10-18T21:00:41Z")

</div>

Hi

I run this more than year ago operating systems windows 7 all I needed installing RTL drived

> [@Spectrum analyzer software/ hardware](https://discourse.processing.org/t/spectrum-analyzer-software-hardware/34175):
>
> hi this example about the great power using processing programming i run it it is a great tool with this hardware for some testing i replaced using my heavy and expensive spectrum analyzer with this software

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 4:49am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/3 "2023-10-19T04:49:04Z")

</div>

everything works fine on windows, but it doesn’t work on mac os… and I need it on mac os

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [October 19, 2023, 7:01am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/4 "2023-10-19T07:01:21Z")

</div>

Error messages indicate that a library can’t be found. Something to try (no promises it will work): 1) create a folder named ‘code’ in the sketch folder. 2) Place the required libraries in the ‘code’ folder.

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [October 19, 2023, 7:08am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/5 "2023-10-19T07:08:19Z")

</div>

Yeah.

Maybe processing doesn’t have the permission to use your library folder

Then you have to receive permission from os.

**In general**

In general you must install the library **and** have one  
or more `import....` lines in your Sketch.

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 8:05am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/6 "2023-10-19T08:05:12Z")

</div>

I tried these options, but nothing works…

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [October 19, 2023, 10:26am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/7 "2023-10-19T10:26:18Z")

</div>

open your Sketch

drag the jar file of the library onto the Sketch (in the IDE)

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 11:13am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/8 "2023-10-19T11:13:27Z")

</div>

frame cannot be resolved to a variable  
now such a mistake

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [October 19, 2023, 11:14am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/9 "2023-10-19T11:14:37Z")

</div>

Hello @itan21,

The _spektrum.exe_ runs fine here on Windows 10.

There are related issues here:

> **[Issues · pavels/spektrum](https://github.com/pavels/spektrum/issues)**
>
> rtl-sdr spectrum analyzer. Contribute to pavels/spektrum development by creating an account on GitHub.

I have not yet tried to run the sketch (PDEs) directly.

`:)`

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 12:13pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/10 "2023-10-19T12:13:55Z")

</div>

mac os only… i I don’t have a pc

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [October 19, 2023, 3:01pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/11 "2023-10-19T15:01:41Z")

</div>

> [@itan21](#):
>
> frame cannot be resolved to a variable

Okay, but then the library issue is solved and this is another problem. Right?

Can you please show your entire code? Or the lines with frame?

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [October 19, 2023, 3:09pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/12 "2023-10-19T15:09:29Z")

</div>

by the way, do other libraries work in your environment?

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 4:41pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/13 "2023-10-19T16:41:30Z")

</div>

This is a new problem…  
the problem with libraries has been solved…  
yes, other libraries are working.

 ![Снимок экрана 2023-10-19 в 23.40.55](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/7/5740fb90785bd9f09ca7ae1d37f52b89496a37d6.png)

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [October 19, 2023, 5:03pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/14 "2023-10-19T17:03:23Z")

</div>

Try defining frame at the top:

> Frame frame;

```auto
import controlP5.*;
import controlP5.Button;
import rtlspektrum.Rtlspektrum;
import java.io.FileWriter;
import java.util.*;
import java.awt.*;
import processing.serial.*;

Frame frame;// added

```

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 5:06pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/15 "2023-10-19T17:06:27Z")

</div>

more detailed pleas…

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [October 19, 2023, 6:01pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/16 "2023-10-19T18:01:47Z")

</div>

you don’t really need these lines

```auto
  if (frame != null) {
    surface.setResizable(true);
  }

```

comment them out

```auto
// if (frame != null) {
// surface.setResizable(true);
// }

```

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 8:25pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/17 "2023-10-19T20:25:06Z")

</div>

ha ha ha, I guess I’ll never run it)))

 ![Снимок экрана 2023-10-20 в 03.24.43](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/d/8de79bf27640b20094f89b967b05cc70bb210cc9.png)

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 19, 2023, 8:27pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/18 "2023-10-19T20:27:10Z")

</div>

why am I so stupid in programming… it wouldn’t be bad if it was simple.the dmg package and everything that needed to be copied into programs and used…

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [October 19, 2023, 9:08pm UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/19 "2023-10-19T21:08:21Z")

</div>

Callback is here: [https://github.com/nativelibs4java/BridJ/blob/master/src/main/java/org/bridj/Callback.java](https://github.com/nativelibs4java/BridJ/blob/master/src/main/java/org/bridj/Callback.java) if you want it. I’m not sure this code was ever meant to run on MacOS; all that the documentation mentions is Windows and Linux. It’s a major undertaking to debug it on a Mac even for a veteran programmer.

---

<div class="post-metadata">

### Author: ![itan21](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@itan21](https://discourse.processing.org/u/itan21)
#### Post date: [October 20, 2023, 5:50am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006/20 "2023-10-20T05:50:36Z")

</div>

I understand you! Well, then I will use a computer with Windows, unfortunately)
