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

Compiling on ARM fails because uint8_t is an unknown type #1

Closed
ghost opened this issue Feb 26, 2015 · 3 comments
Closed

Compiling on ARM fails because uint8_t is an unknown type #1

ghost opened this issue Feb 26, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 26, 2015

I'll give the solution first, always nice to have a fix before knowing the problem:
I added "#include <stdint.h>" to the top of demod.c and it now compiles without any errors.

The problem was when compiling on ARM architecture I got the following:
root@bananapi ~/src/demod/build (git)-[master] # make
Scanning dependencies of target demod
[100%] Building C object CMakeFiles/demod.dir/demod.c.o
/root/src/demod/demod.c: In function ‘main’:
/root/src/demod/demod.c:190:2: error: unknown type name ‘uint8_t’
uint8_t iq_buffer[INPUT_BUF_SIZE];
^
/root/src/demod/demod.c:241:13: error: ‘uint8_t’ undeclared (first use in this function)
fwrite((uint8_t_)dem_out, 1, resampler_output_count_4, stdout);
^
/root/src/demod/demod.c:241:13: note: each undeclared identifier is reported only once for each function it appears in
/root/src/demod/demod.c:241:21: error: expected expression before ‘)’ token
fwrite((uint8_t_)dem_out, 1, resampler_output_count_4, stdout);
^
/root/src/demod/demod.c:241:5: error: too few arguments to function ‘fwrite’
fwrite((uint8_t_)dem_out, 1, resampler_output_count_4, stdout);
^
/root/src/demod/demod.c:257:21: error: expected expression before ‘)’ token
fwrite((uint8_t_)dem_out, 1, resampler_output_count_2, stdout);
^
/root/src/demod/demod.c:257:5: error: too few arguments to function ‘fwrite’
fwrite((uint8_t_)dem_out, 1, resampler_output_count_2, stdout);
^
CMakeFiles/demod.dir/build.make:54: recipe for target 'CMakeFiles/demod.dir/demo d.c.o' failed
make[2]: *** [CMakeFiles/demod.dir/demod.c.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/demod.dir/all' failed
make[1]: *** [CMakeFiles/demod.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
root@bananapi ~/src/demod/build (git)-[master] #

@andresv
Copy link
Member

andresv commented Feb 26, 2015

Wait a minute, error describes demod tool not doppler. I will fix it also.

@andresv
Copy link
Member

andresv commented Feb 26, 2015

Demod also fixed.

@ghost
Copy link
Author

ghost commented Feb 26, 2015

Thanks, sorry I had both open in my browser and pasted the error message into to the wrong tab. That include is not needed for doppler. doppler compiles fine under ARM.

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

1 participant