Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
orinocoOffline
Post subject: RecordItNow compiling issues  PostPosted: 12.10.2011, 21:44



Joined: 2011-01-28
Posts: 30

Status: Offline
I ran into a problem while compiling RecordMyDesktop.
      Code:
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:
X11_Xcursor_LIB (ADVANCED)
    linked by target "recorditnow" in directory /home/orinoco/Temp/src/recorditnow-0.8.1/src

-- Configuring incomplete, errors occurred!


Any idea how to solve this?


Last edited by orinoco on 12.10.2011, 22:51; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: RecordMyDesktop compiling issues  PostPosted: 12.10.2011, 21:52
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
Any reason for not using the binary available in debian?

If you want to still compile by hand and a debian package exists its a good idea to start with it's build-dependencies: Remove comment from the deb-src line in debian.list and then:
      Code:
apt-get update
apt-get build-dep recordmydesktop


Others than that you are properly better of asking upstream how to compile from source - they might have a howto for that. Compiling yourself comes bundled with a few disadvantages, so we tend to avoid it: After all, thats one of the reasons we use debian in the first place…

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
orinocoOffline
Post subject: Re: RE: RecordMyDesktop compiling issues  PostPosted: 12.10.2011, 22:53



Joined: 2011-01-28
Posts: 30

Status: Offline
      DonKult wrote:
Any reason for not using the binary available in debian?


Sorry, my fault. I changed the topic now. I want to compile RecordItNow. Embarassed
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: Re: RE: RecordMyDesktop compiling issues  PostPosted: 12.10.2011, 23:15
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
This explains a bit Smile

The error above suggests that a build-dependency is missing. Try inserting the error message into your friendly search engine. 'apt-cache search' and 'apt-file search' might help you too.
      Code:
$ LANG=C apt-cache search Xcursor
comixcursors - transitional dummy package
comixcursors-lefthanded - X11 mouse pointer themes with a comic art feeling (LH, translucent)
comixcursors-lefthanded-opaque - X11 mouse pointer themes with a comic art feeling (LH, opaque)
comixcursors-righthanded - X11 mouse pointer themes with a comic art feeling (RH, translucent)
comixcursors-righthanded-opaque - X11 mouse pointer themes with a comic art feeling (RH, opaque)
icon-slicer - utility for generating icon themes and libXcursor cursor themes
libxcursor-dev - X cursor management library (development files)
libxcursor1 - X cursor management library
libxcursor1-dbg - X cursor management library (unstripped)
x11-apps - X applications
xcursor-themes - Base X cursor themes

Here it is a good idea to install the libxcursor-dev package. It should include the needed Xcursor library (headers as indicated by -dev suffix, to be correct). This way you can try to find all needed packages step by step (note them down somewhere, just in case you need them later - e.g. if you want to build a real deb package).


Also, in debian a ITP (Intend to package) exists, so the claimer might satisfy his promise and packages it soon: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639756
Maybe you can even join forces and ask him about the needed build-dependencies, test packages or or can help him getting it ready soon(er)…

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DeepDayzeOffline
Post subject: Re: RE: Re: RE: RecordMyDesktop compiling issues  PostPosted: 13.10.2011, 00:35



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
      DonKult wrote:
This explains a bit Smile

The error above suggests that a build-dependency is missing. Try inserting the error message into your friendly search engine. 'apt-cache search' and 'apt-file search' might help you too.
      Code:
$ LANG=C apt-cache search Xcursor
comixcursors - transitional dummy package
comixcursors-lefthanded - X11 mouse pointer themes with a comic art feeling (LH, translucent)
comixcursors-lefthanded-opaque - X11 mouse pointer themes with a comic art feeling (LH, opaque)
comixcursors-righthanded - X11 mouse pointer themes with a comic art feeling (RH, translucent)
comixcursors-righthanded-opaque - X11 mouse pointer themes with a comic art feeling (RH, opaque)
icon-slicer - utility for generating icon themes and libXcursor cursor themes
libxcursor-dev - X cursor management library (development files)
libxcursor1 - X cursor management library
libxcursor1-dbg - X cursor management library (unstripped)
x11-apps - X applications
xcursor-themes - Base X cursor themes

Here it is a good idea to install the libxcursor-dev package. It should include the needed Xcursor library (headers as indicated by -dev suffix, to be correct). This way you can try to find all needed packages step by step (note them down somewhere, just in case you need them later - e.g. if you want to build a real deb package).


Also, in debian a ITP (Intend to package) exists, so the claimer might satisfy his promise and packages it soon: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639756
Maybe you can even join forces and ask him about the needed build-dependencies, test packages or or can help him getting it ready soon(er)…


In this case the OP can add a note to the ITP to let the maintainer/developer be aware to add the dependency on libxcursor-dev (or any other dependencies that may be missing)
 
 View user's profile Send private message  
Reply with quote Back to top
orinocoOffline
Post subject:   PostPosted: 13.10.2011, 10:34



Joined: 2011-01-28
Posts: 30

Status: Offline
Thank you for your support.

The advice to install libxcursor-dev was very useful. I also installed the missing libext-dev package.

Now I run into a linker problem:

      Code:
Linking CXX executable recorditnow                                                                                                 
/usr/bin/ld: CMakeFiles/recorditnow.dir/recorditnowpluginmanager.o: undefined reference to symbol 'RecordItNowPlugin::staticMetaObject'
/usr/bin/ld: note: 'RecordItNowPlugin::staticMetaObject' is defined in DSO /home/orinoco/Temp/src/recorditnow-0.8.1/build/lib/librecorditnow_plugin.so so try adding it to the linker command line
/home/orinoco/Temp/src/recorditnow-0.8.1/build/lib/librecorditnow_plugin.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [src/recorditnow] Fehler 1
make[1]: *** [src/CMakeFiles/recorditnow.dir/all] Fehler 2
make: *** [all] Fehler 2


Any ideas?
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject:   PostPosted: 13.10.2011, 11:22
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
      Code:
export LDFLAGS=--add-needed

might help you as a quick fix (untested; wild guess)
I haven't used CMake so far, so i don't know if it respects LDFLAGS properly and/or how to do it correctly through.

This is usually a bug you should report upstream as upstream seems to depend on certain linker versions/default-options which make it hard to port the application to new distributions as they use different linkers (e.g. ld vs. ld-gold) and different options for it.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
orinocoOffline
Post subject:   PostPosted: 13.10.2011, 13:06



Joined: 2011-01-28
Posts: 30

Status: Offline
      Code:
-- ----------------------
-- LIBRARY_INSTALL_DIR=/usr/lib64
-- PLUGIN_INSTALL_DIR=/usr/lib64/joschy
-- INCLUDE_INSTALL_DIR=/usr/include/joschycore
-- ----------------------
-- Found Qt-Version 4.7.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1294 (message):
  Qt compiled without support for -fvisibility=hidden.  This will break
  plugins and linking of some applications.  Please fix your Qt installation.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!


I guess that I can stop my work now...

Or is there chance to to change this visibility-feature without recompiling Qt?

Maybe I should keep an eye on the RecordItNow source-package shipped with (K)Ubuntu to recompile it?!?!
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject:   PostPosted: 13.10.2011, 14:17
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
      orinoco wrote:
Or is there chance to to change this visibility-feature without recompiling Qt?

No, but i don't really get why an application should depend on symbols NOT being exported (which is what visibility does, hide certain symbols…)… strange.

      orinoco wrote:
Maybe I should keep an eye on the RecordItNow source-package shipped with (K)Ubuntu to recompile it?!?!

If they have a package yes, it can help to look at what they did. Just be careful, quality varies and binary packages from them aren't always compatible to debian.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 13.10.2011, 16:27



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
Document these and pass them to the recorditnow maintainer so that such problems can be addressed by the appropriate teams...also perhaps the Qt in Debian may need rebuilding with the proper flags if it can be done without breaking KDE and apps.

Like it has been said many times don't try using packages built for (k)ubuntu...you'll be sorry in many cases
 
 View user's profile Send private message  
Reply with quote Back to top
alexkOffline
Post subject:   PostPosted: 13.10.2011, 20:31



Joined: 2010-10-01
Posts: 186
Location: Bay state
Status: Offline
Is the build directory perchance mounted with the noexec flag? See here: Qt without -fvisibility=hidden [SOLVED].

Also: Qt compiled without -fvisibility=hidden
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
fwarrenOffline
Post subject:   PostPosted: 11.12.2011, 22:48



Joined: 2011-12-11
Posts: 1
Location: West Coast of the United States
Status: Offline
To get past
      Code:
Linking CXX executable recorditnow                                                                                                 
/usr/bin/ld: CMakeFiles/recorditnow.dir/recorditnowpluginmanager.o: undefined reference to symbol 'RecordItNowPlugin::staticMetaObject'
/usr/bin/ld: note: 'RecordItNowPlugin::staticMetaObject' is defined in DSO /home/orinoco/Temp/src/recorditnow-0.8.1/build/lib/librecorditnow_plugin.so so try adding it to the linker command line
/home/orinoco/Temp/src/recorditnow-0.8.1/build/lib/librecorditnow_plugin.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [src/recorditnow] Fehler 1
make[1]: *** [src/CMakeFiles/recorditnow.dir/all] Fehler 2
make: *** [all] Fehler 2


I had to do the following after running sudo sh install.sh once. Edit build/CMakeCache.txt and change CMAKE_EXE_LINKER_FLAGS:STRING to the following

CMAKE_EXE_LINKER_FLAGS:STRING=-lX11 -lXext -lXfixes /tmp/recorditnow-0.8.1/build/lib/librecorditnow_plugin.so

Please note that I had to use the absolute path to the librecorditnow_plugin.so file.
 
 View user's profile Send private message  
Reply with quote Back to top
AndreasOffline
Post subject:   PostPosted: 17.01.2012, 11:46



Joined: 2012-01-17
Posts: 3
Location: Denver
Status: Offline
Right after running sudo sh install.sh, i followed the instructions you've described above, but libxcursor-dev keeps on crapping out when cell phone tracking apt tries to install it
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio