0

Environment: Ubuntu 16.04 LTS by using virtualbox in Windows 11

Problem: The code that contains FFTW3 library can be compiled by gcc, but cannot be compiiled by arm-linux-gnueabihf-gcc in Terminal from Ubuntu 16.04.

#include <stdio.h>
#include <fftw3.h>

int main(void){
    printf("FFTW3 version: %s\n", fftw_version);
    return 0;
}

Here's the result

enter image description here

I installed by copying the commands from this site, and it works when using gcc. https://zoomadmin.com/HowToInstall/UbuntuPackage/fftw3

would you tell me how to compile this code with arm-linux-gnueabihf-gcc in the Ubuntu environment?

I tried to use the mic of the target board and process the wav file by using fftw3, but linux environment is not familiar to me, so don't know what the problem is.

I heard that there are three steps to install the FFTW3 Library

1st step:. ./configure ( to make Makefile script) 2nd. make 3rd. make install

from the 1st step, I tried ./configure CC="arm-linux-gnueabihf-gcc"

and tried 2nd and 3rd step

It didnt' work.

// ADD enter image description here and this is the result of

./configure CC="arm-linux-gnueabihf-gcc"

Pandadog
  • 1
  • 1
  • Hello and welcome to Stack Overflow. Please read [Why should I not upload images of code/data/errors?](https://meta.stackoverflow.com/questions/285551/why-should-i-ot-upload-images-of-code-data-errors) to see how you can improve your question. – Andy Preston Mar 10 '23 at 16:46

0 Answers0