error while running make

Bug #1020071 reported by Thiago Nalli Valentim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Television
Won't Fix
Undecided
Unassigned

Bug Description

I received an error at the time of running make in the directory ~/ubuntu-tv:

thiago@ubuntutv:~/ubuntu-tv$ make
[ 0%] Building CXX object libunity-2d-private/src/CMakeFiles/unity-2d-private.dir/lenses.cpp.o
/home/thiago/ubuntu-tv/libunity-2d-private/src/lenses.cpp: No construtor ‘Lenses::Lenses(QObject*)’:
/home/thiago/ubuntu-tv/libunity-2d-private/src/lenses.cpp:39:80: erro: no matching function for call to ‘unity::dash::FilesystemLenses::FilesystemLenses(const char [24])’
/home/thiago/ubuntu-tv/libunity-2d-private/src/lenses.cpp:39:80: nota: candidatos são:
/usr/include/Unity-5.0/UnityCore/FilesystemLenses.h:81:3: nota: unity::dash::FilesystemLenses::FilesystemLenses(const Ptr&)
/usr/include/Unity-5.0/UnityCore/FilesystemLenses.h:81:3: nota: no known conversion for argument 1 from ‘const char [24]’ to ‘const Ptr& {aka const std::shared_ptr<unity::dash::LensDirectoryReader>&}
/usr/include/Unity-5.0/UnityCore/FilesystemLenses.h:80:3: nota: unity::dash::FilesystemLenses::FilesystemLenses()
/usr/include/Unity-5.0/UnityCore/FilesystemLenses.h:80:3: nota: candidate expects 0 arguments, 1 provided
make[2]: ** [libunity-2d-private/src/CMakeFiles/unity-2d-private.dir/lenses.cpp.o] Erro 1
make[1]: ** [libunity-2d-private/src/CMakeFiles/unity-2d-private.dir/all] Erro 2
make: ** [all] Erro 2

-----
Sorry for the english, I'm from Brazil and do not know your language, I'm using google translator. I'm using Ubuntu 12.04 Kernel 3.2.0-23-generic-pae in Oracle Virtualbox. Thanks

description: updated
Revision history for this message
Joseph Mills (josephjamesmills) wrote :

could we see your files
~/ubuntu-tv/CMakeList.txt
~/ubuntu-tv/libunity-2d-private/CmakeList.txt
~/ubuntu-tv/libunity-2d-private/src/CmakeList.txt

and also from your system
unity --version
./usr/lib/nux/unity_support_test -p

Thanks .
 .

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

poderíamos ver seus arquivos
~ / ubuntu-tv/CMakeList.txt
~ / ubuntu-tv/libunity-2d-private/CmakeList.txt
~ / ubuntu-tv/libunity-2d-private/src/CmakeList.txt

e também do seu sistema
unidade - versão
. / usr / lib / nux / unity_support_test-p

Obrigado.

Revision history for this message
Thiago Nalli Valentim (thiago-nalli-deactivatedaccount) wrote :
Download full text (9.3 KiB)

Dear @Joseph
Thanks for an answer, the following files as requested:

#########
~/ubuntu-tv/CMakeList.txt

project(unity-2d)
cmake_minimum_required(VERSION 2.8)

# Standard install paths
include(GNUInstallDirs)

# Dirs
set(UNITY_2D_DIR "${CMAKE_INSTALL_DATADIR}/unity-2d")
set(UNITY_DIR /usr/share/unity/)
set(UNITY_2D_DATA_DIR "${CMAKE_SOURCE_DIR}/data")

# Configure debian files
string(SUBSTRING "${CMAKE_INSTALL_PREFIX}" 1 -1 DEBIAN_INSTALL_PREFIX)
file(GLOB DEBIAN_FILES debian/*.in)
foreach(in_file ${DEBIAN_FILES})
    string(LENGTH ${in_file} len)
    math(EXPR len "${len} - 3")
    string(SUBSTRING "${in_file}" 0 ${len} file)
    configure_file(${in_file} ${file} @ONLY)
endforeach(in_file)

# Build flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall -std=c++0x")
# Flags to help detecting use of deprecated GTK APIs and direct access to object fields
# https://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/GTK+
# https://live.gnome.org/GnomeGoals/UseGseal
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGSEAL_ENABLE -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED")

# gtk and unity-core (actually sigc++) do not like Qt defining macros named
# "signals" and "slots"
add_definitions(-DQT_NO_KEYWORDS)

# Dependencies
include(FindPkgConfig)
find_package(Qt4 REQUIRED)
find_package(X11 REQUIRED)
find_package(Gettext REQUIRED)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(GDK REQUIRED gdk-3.0)
pkg_check_modules(GTK REQUIRED gtk+-3.0)
pkg_check_modules(GIO REQUIRED gio-2.0)
pkg_check_modules(WNCK REQUIRED libwnck-3.0)
pkg_check_modules(QTGCONF REQUIRED libqtgconf)
pkg_check_modules(NUXCORE REQUIRED nux-core-2.0)
pkg_check_modules(PANGO REQUIRED pango)
pkg_check_modules(DCONFQT REQUIRED dconf-qt)

# GSettings schemas
pkg_check_modules(GLIB REQUIRED glib-2.0)
set (UNITY_2D_SCHEMAS "com.canonical.Unity2d.gschema.xml")
set (UNITY_2D_GCONF_CONVERT "unity-2d.convert")
set (GSETTINGS_DIR "${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas/")
set (UNITY_2D_SCHEMA_FILE "${GSETTINGS_DIR}${UNITY_2D_SCHEMAS}")
set (GCONF_CONVERT_DIR "${CMAKE_INSTALL_PREFIX}/share/GConf/gsettings")
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE GLIB_COMPILE_SCHEMAS OUTPUT_STRIP_TRAILING_WHITESPACE)

# Run the schemas validator and error if it fails
execute_process (COMMAND ${GLIB_COMPILE_SCHEMAS} ${UNITY_2D_DATA_DIR} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE)

if (_schemas_invalid)
  message (SEND_ERROR "Schemas validation error: ${_schemas_invalid}")
endif (_schemas_invalid)

# Actually install and recompile the schemas
message (STATUS "GSettings schemas will be installed into ${GSETTINGS_DIR}")
install (FILES ${UNITY_2D_DATA_DIR}/${UNITY_2D_SCHEMAS} DESTINATION ${GSETTINGS_DIR})
install (CODE "message (STATUS \"Compiling GSettings schemas\")")
install (CODE "execute_process (COMMAND ${GLIB_COMPILE_SCHEMAS} ${GSETTINGS_DIR})")

configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)

# Install GConf to GSettings conversion file
install (FILES ${UNITY_2D_DATA_DIR}/${UNITY_2D_GCONF_CONVERT} DESTINATION ${GCONF_CONVERT_DIR})...

Read more...

Revision history for this message
Joseph Mills (josephjamesmills) wrote :

Due to the fact that we are moving from Unity 2d to Unity 3d this bug has been marked as Wont Fix

Changed in ubuntutv:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.