Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Make broken #67

Open
g-aaroncruz opened this issue May 11, 2018 · 5 comments
Open

Linux: Make broken #67

g-aaroncruz opened this issue May 11, 2018 · 5 comments

Comments

@g-aaroncruz
Copy link

g-aaroncruz commented May 11, 2018

I tried compiling the latest release for this on Ubuntu 16.04.

this commit 92c8a59, broke the makefile.

There is still one double_t in src/ftts_trig.c

Here is the error while compiling:

ffts_trig.c: In function ‘ffts_generate_cosine_sine_pow2_32f’:
ffts_trig.c:884:5: error: unknown type name ‘constffts_’
     constffts_ double_t *FFTS_RESTRICT hs;
     ^
ffts_trig.c:884:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
     constffts_ double_t *FFTS_RESTRICT hs;
                         ^
ffts_trig.c:914:5: error: ‘hs’ undeclared (first use in this function)
     hs = FFTS_ASSUME_ALIGNED_16(&half_secant[2 * offset]);

After changing I got this error while compiling

make[2]: Entering directory '/tmp/ffts/tests'
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2   -o test test.o ../src/libffts.la -lm 
libtool: link: gcc -g -O2 -o test test.o  ../src/.libs/libffts.a -lm
../src/.libs/libffts.a(ffts.o): In function `ffts_init_1d':
/tmp/ffts/src/ffts.c:434: undefined reference to `ffts_chirp_z_init'
collect2: error: ld returned 1 exit status
Makefile:360: recipe for target 'test' failed
make[2]: *** [test] Error 1
make[2]: Leaving directory '/tmp/ffts/tests'
Makefile:476: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/ffts'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2

@g-aaroncruz
Copy link
Author

Don't use autoreconf, use their CMAKE file for building.

@qingpengchen2011
Copy link

@g-aaroncruz will you please show me the command?

@g-aaroncruz
Copy link
Author

The cmake command or the automake command?

@scottstensland
Copy link

scottstensland commented Nov 21, 2019

@qingpengchen2011 here are the cmake commands

cd ~/src/github.com/anthonix/ffts   #  notice project has file `CMakeLists.txt` which tells you
                                    #  the project wants cmake so do following
mkdir build  # this will contain compile time output and can be deleted afterwords
cd build
cmake ..  #   1st input parm tells cmake to look in that dir for the source code dir
         #  optionally instead of running `cmake`  issue  `cmake-gui ..` if you need to change options
make -j4   #   or   make -j8 if your box is quad core for faster complile times
make check # optional
make test  # do this and/or above  `make check` to kick tires ( optional )
sudo make install  #   do this to install this repo on your box only if no errors seen in above

above steps are generic and are same for all/most cmake projects ... btw above all ran fine for me on Ubuntu 19.10

@qingpengchen2011
Copy link

thanks @scottstensland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants