News:

--

Main Menu

r8051 build fail

Started by pchristy, July 11, 2012, 12:00:31 PM

Previous topic - Next topic

pchristy

System: Slackware64-13.37

-- Git Svn Revision : <8051>

<snip>

-- Checking for sqllite
-- ********************
-- Found sqlite3.h
-- Found sqlite3 library
-- Could not find sqlite3_close in /usr/lib64/libsqlite3.so
CMake Error at /home/pete/build/avidemux2-6/cmake/admConfigHelper.cmake:16 (MESSAGE):
  Could not find SQLite
Call Stack (most recent call first):
  CMakeLists.txt:85 (PRINT_LIBRARY_INFO)


-- Configuring incomplete, errors occurred!
** Failed at cmakeZ**

Sqlite version is 3.7.5

What have I missed?

r7987 built fine.

Cheers,
--
Pete

Jan Gruuthuse

#1
libsqlite3-dev?
dpkg -l libsqlite3-dev
Quoteii  libsqlite3-dev              3.7.9-2ubuntu1              SQLite 3 development files
these are some of the latest used by 2.6
latest requirements:
libsamplerate0-dev (aka Secret Rabbit Code) is a library for audio rate conversion
libfribidi-dev algorithm implementation for Hebrew and/or Arabic languages.
libtwolame-dev MPEG Audio Layer 2 encoder (development files)
libopencore-amrwb-dev Adaptive Multi-Rate - Wideband speech codec
libopencore-amrnb-dev Adaptive Multi Rate speech codec
libsqlite3-dev
libqt4-script

Jan Gruuthuse

Don't know if this would come into play to:
Quote from: Jan Gruuthuse on July 06, 2012, 08:47:30 AM
Maybe this is related to: r8020 & r8019 Broken pipe Errors FIXED just in case you have missed that? cmake 2.8.8?

pchristy

Thanks for the quick response! Slackware doesn't have separate -dev packages. When you install a package, it installs everything you will need, including anything required for development.

Cmake is only 2.8.4. Is this critical?

I'm reading the error as a problem with sqlite, but I'm not a programmer!

--
Pete

gruntster

#4
Your system's SQLite is now used instead of using a version bundled with the Avidemux source.  Perhaps add -DVERBOSE=1 to your CMake command and look at the CMake logs generated in your build folder for a more detailed error.

Another lib may need to be added to the linker for the CMake detection routine.

pchristy

Sorry for the delay in replying! Day job getting in the way more interesting things.....!

OK, I've set export DEBUG="-DVERBOSE=1" in bootStrap.bash, which produces the following result:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o
/usr/bin/gcc  -DCHECK_FUNCTION_EXISTS=sqlite3_close  -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o   -c /home/pchristy/build/avidemux2-6/cmake_compile_check/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc        CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o cmTryCompileExec -rdynamic -lsqlite3
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libsqlite3.so: undefined reference to `dlsym'
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libsqlite3.so: undefined reference to `dlerror'
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libsqlite3.so: undefined reference to `dlopen'
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libsqlite3.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

CMake Error at /home/pchristy/build/avidemux2-6/cmake/admConfigHelper.cmake:16 (MESSAGE):
  Could not find SQLite
Call Stack (most recent call first):
  CMakeLists.txt:85 (PRINT_LIBRARY_INFO)


-- Configuring incomplete, errors occurred!
** Failed at cmakeZ**
-----------------------------------------------------------------------------------------------------------------------------------------

I then tried upgrading sqlite from 3.7.5 to 3.7.10 (from Slackware64-current).

This produced the following error:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o
/usr/bin/gcc  -DCHECK_FUNCTION_EXISTS=sqlite3_close  -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o   -c /home/pchristy/build/avidemux2-6/cmake_compile_check/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc        CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o cmTryCompileExec -rdynamic -lsqlite3
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libsqlite3.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/home/pchristy/build/avidemux2-6/buildCore/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

CMake Error at /home/pchristy/build/avidemux2-6/cmake/admConfigHelper.cmake:16 (MESSAGE):
  Could not find SQLite
Call Stack (most recent call first):
  CMakeLists.txt:85 (PRINT_LIBRARY_INFO)


-- Configuring incomplete, errors occurred!
** Failed at cmakeZ**
------------------------------------------------------------------------------------------------------------------------------------------

Does this provide any clues? Other than the fact that its something to do with sqlite, it doesn't mean much to me!

Cheers,

--
Pete

gruntster


mean

It looks like your sql3 has been built for another system

pchristy

Gruntster: Will try a new download later today......

Mean: sql3 is part of the official Slackware release, Its not an add-on, its installed by default, so I would be very surprised if it was built for a different system.

3.7.10 came from the "-current" tree, which is the development branch, so it may be that that is dependent on something else being upgraded, but 3.7.5 is from the stable 13.37 branch, which is what I have installed.

I have to go out this morning, but will have a look at the latest version this afternoon.

Cheers,

--
Pete

pchristy

Quick update: Managed to build r8055 without problems using the standard sqlite-3.7.5.

Looks like whatever you changed has fixed the problem!

Many thanks!

--
Pete