vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
552 stars 62 forks source link

fatal error: atasmart.h: no such file or directory #16

Closed jhowla closed 8 years ago

jhowla commented 8 years ago

Hello, I'm trying to compile 1.0 beta2 with USE_ATASMART but make fails with

[ 14%] Building CXX object CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o
In file included from /home/twhfe/Downloads/thinkfan-1.0_beta2/src/config.h:31:0,
                 from /home/twhfe/Downloads/thinkfan-1.0_beta2/src/thinkfan.cpp:41:
/home/twhfe/Downloads/thinkfan-1.0_beta2/src/drivers.h:30:22: fatal error: atasmart.h: No such file or directory
 #include <atasmart.h>
                      ^
compilation terminated.
CMakeFiles/thinkfan.dir/build.make:62: recipe for target 'CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o' failed
make[2]: *** [CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thinkfan.dir/all' failed
make[1]: *** [CMakeFiles/thinkfan.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I also tried to compile 0.9.3, but the same issue occurred. I'm new to Linux and compilation so this might just be user error. I'm on a ThinkPad X201 tablet running openSUSE Leap 42.1. gcc version is 4.8.5

jhowla commented 8 years ago

Nevermind, I figured it out. I was just missing the libatasmart-devel dependency.