[Solved] Compiling from source problems

Moderator: Telldus

Post Reply
bryanchicken
Posts: 16
Joined: Fri Mar 17, 2023 9:45 am

[Solved] Compiling from source problems

Post by bryanchicken »

On my road to trying to cross-compile i've started by trying a vanilla compile from source. Without much luck!
Using these instructions: http://developer.telldus.se/wiki/TellSt ... tionSource


I'm on ubuntu 10.10 on x86. Pretty standard stuff.
I've run:
apt-get install build-essential
apt-get install cmake

2.0.103

Code: Select all

cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CONFUSE_LIBRARY
    linked by target "telldusd" in directory /home/sam/telldus/telldus-core-2.0.103/service
FTDI_LIBRARY
    linked by target "telldusd" in directory /home/sam/telldus/telldus-core-2.0.103/service

-- Configuring incomplete, errors occurred!

2.0.4 & 2.0.3

Code: Select all

make
Scanning dependencies of target telldus-core
[  4%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/Device.cpp.o
[  9%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceBrateck.cpp.o
[ 13%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceEverflourish.cpp.o
[ 18%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceFuhaote.cpp.o
[ 22%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceGroup.cpp.o
[ 27%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceIkea.cpp.o
[ 31%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceNexa.cpp.o
[ 36%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceRisingSun.cpp.o
[ 40%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceSartano.cpp.o
[ 45%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceUndefined.cpp.o
[ 50%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceUpm.cpp.o
[ 54%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceWaveman.cpp.o
[ 59%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceX10.cpp.o
[ 63%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/DeviceYidong.cpp.o
[ 68%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/Controller.cpp.o
[ 72%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/Manager.cpp.o
[ 77%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/Settings.cpp.o
[ 81%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/telldus-core.cpp.o
[ 86%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/SettingsConfuse.cpp.o
/home/sam/telldus/telldus-core-2.0.4/driver/libtelldus-core/SettingsConfuse.cpp:13: fatal error: confuse.h: No such file or directory
compilation terminated.
make[2]: *** [driver/libtelldus-core/CMakeFiles/telldus-core.dir/SettingsConfuse.cpp.o] Error 1
make[1]: *** [driver/libtelldus-core/CMakeFiles/telldus-core.dir/all] Error 2
make: *** [all] Error 2

2.0.2

Code: Select all

cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1151 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  driver/libtelldus-core/CMakeLists.txt:1 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
SVN

Code: Select all

cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1151 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  telldus-service/service/CMakeLists.txt:1 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
Last edited by bryanchicken on Mon Mar 07, 2011 7:38 pm, edited 1 time in total.
bryanchicken
Posts: 16
Joined: Fri Mar 17, 2023 9:45 am

Re: Compiling from source problems

Post by bryanchicken »

Success! Thanks to Micke's reply in my other thread.

I can compile 2.0.4 after install libconfuse:

apt-get install libconfuse-dev


I don't see this on the install instructions, so hopefully putting it here might help someone. Or just help me the next time :D
Post Reply