Programming :: How To Set RPATH In CMake
Jun 2, 2010
This is probably an easy question but somehow I couldn't manage it to work.. I was testing the C++ WT library and I have a CMakeLists.txt file as below:
Code:
ADD_EXECUTABLE(heloooo.wt
hello.C
)
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
[Code]....
What am i doing wrong, I don't want to use the LD_LIBRARY_PATH, but to get the executable find the library with rpath when run?
View 7 Replies
ADVERTISEMENT
Feb 23, 2010
I am attempting to compile some code on a cluster where I do not have root access (and is missing many of the libraries I want), and hence have had to create local builds of the boost and opencv libraries (i.e. in /home/username/usr/local). In particular, my cmake depends on:
Code:
find_package(boost)
which my normal development machine finds in:
Code:
/usr/share/cmake-2.6/Modules/FindBoost.cmake
On the cluster I have a version of FindBoost.cmake at:
Code:
/home/username/cmake_modules
How can I tell CMake to look for FindBoost.cmake in that directory, since neither the cmake file, nor the boost install is in the standard location? I've modified the FindBoost.cmake file to make it search in the locally installed boost libraries.
[code]....
View 3 Replies
View Related
Jun 21, 2011
Overnight, I upgraded from KDE 4.5.1 to 4.6.3 and had a rude awakening this morning when I found that KDE had managed to, once again, break the Task Manager "force rows" behavior which had been fixed a few major releases ago. I found this lovely patch that had been applied:
[URL]
And thus broken the functionality, and I want to recompile that particular plasmoid with the patch removed. However, I am completely unfamiliar with CMake or building anything at all, for that matter. All my programming is done in PHP which means I'm pretty much completely lost. I'm in the midst of pulling down the kde-workspace tree with git, and already downloaded and modified a separate copy of the file in question to look the way it is supposed to. I don't want to rebuild all of KDE, just the one module.
View 2 Replies
View Related
Nov 3, 2010
I'm creating a static lib via cmake,and when I view the .a binary file with less/more/cat I see functions from my time_tools.c, but not my other_api.c The directories structure is:
Code:
CMakeLists.txt
time/CMakeLists.txt
time/time_tools.c
time/time_tools.h
[code]....
View 2 Replies
View Related
Feb 18, 2010
Is there any tool to translate rules from configure.ac into Cmake rules?
View 3 Replies
View Related
Nov 1, 2010
Say I have a directory structure:
And other.c has:
How do I setup the CMakeFiles.txt files in each directory, so the executable "program" (from program.c) is created.
Currently I get the error:
View 1 Replies
View Related
Jun 29, 2010
[URL]...Now it works in Windows platform. Some functions rely on win-specific code and need to cross-platform alternatives. Can some one help to build chain(make or cmake) for this awesome project? any one can compile the Linux generator and transfer the project under *nix platform.
View 1 Replies
View Related
Feb 22, 2010
I'm having issues with the Linux rpath functionality. It seems the rpath provides the ability for a library to embed the location of other dependent libries within the shared object file.
I'm trying to disable this functionality. At my company we install libraries on NFS mounts, so they can be available on any machine. The problem I have is that my application runs on a few hundred machines. When my application is running, the NFS server can be overloaded with thousands of processes picking up library files. To get around this, I have installed the libraries locally, but I'm still picking up the shared object from NFS.
From my research, it seem the protocol for Linux is to first check the LD_LIBRARY_PATH, then check the rpath if it cannot find the library. However, on my system, it seems to do the opposite, and is only going to LD_LIBRARY_PATH if rpath fails.
Is there anyway to disable the rpath completely, and only use LD_LIBRARY_PATH? Keep in mind, I'm looking for a runtime solution. It's not feasible for me to re-link all the libraries with disable rpath flag.
View 1 Replies
View Related
Apr 8, 2010
While trying to compile one of the software application I am giving "cmake ." command but getting the below error :
I have downloaded "libpqxx-3.0.2" and have installed it.
libpqxx.a and libpqxx.la have got installed under /usr/local/lib.
Why am I still getting this error?
View 2 Replies
View Related
Oct 4, 2010
I'm trying to install Kicad from source but cmake gives me an error:"- Check for installed OpenGL -- not foundCMake Error at CMakeModules/CheckFindPackageResult.cmake:6 (message): OpenGL was not found - it is required to build Kicad "I have an Nvidia video card with the proprietary drivers installed.I also have glut, (glutg3) installed.I don't understand why cmake can't find OpenGL.
View 9 Replies
View Related
Apr 4, 2011
I've tried installing all packages that look like they have anything to do with GTK, but CMake still says "Some or all of the gtk libraries were not found. (missing: GTK2_GLIBCONFIG_INCLUDE_DIR)" and the build fails. What do I need to do to fix this?
P.S.: I'm running Natty. I couldn't find a board for problems with Natty, which is why I posted this here. If such a board exists, and you're a moderator/admin
View 1 Replies
View Related
Jan 20, 2010
My problem is: CMake can't find OpenSceneGraph package,in spite the fact that it is installed. I tried re-installing it with yum,Furthermore, I do not even know where it is installed, but if I did, I might set up some environment variables to help CMake find it.I for it, and what I found are some libraries in /usr/lib64/, but only regarding osgdb (a part of osg), and directory /usr/lib64/osgPlugins-2.8.2, again filled with files prefixed with osgdb_ and osgWrapper_.Background:I have set up Fedora 11 system in a virtual machine(vbox), in order to be able to use valgrind for memory leak hunting on my project. This project is configured with CMake from the start - so it should be portable. osg is one of the used libraries - and now it makes problems. When I tried uninstalling osg with yum, osgdb_ libs remained behind. If I can completely remove osg, I can download source and compile it and install it by myself - I will try this if no one knows where osg gets installed.
View 2 Replies
View Related
Aug 16, 2011
I'm trying to get Rigs of Rods working on Fedora, but I've run into problems. RoR uses wxGTK development version 2.9, but Fedora only uses the stable 2.8. When I compiled and installed wxGTK and other RoR depencies not available with yum, some installed to /usr/local/lib and not the CMake expected location /usr/lib64 (LD_DEBUG=libs /home/user/ror-trunk/bin/rorconfig) I had to add "CMAKE_CXX_FLAGS:STRING=-ldl" to CMakeCache.txt to get RoR to compile, and tried adding "CMAKE_LIBRARY_PATH:PATH=/usr/local/lib" and "wxWidgets_LIBRARIES:PATH=/usr/local/lib" to try and fix
ldd rorconfig | grep -i libwx
libwx_baseu-2.9.so.1 => not found
libwx_gtk2u_core-2.9.so.1 => not found
libwx_gtk2u_html-2.9.so.1 => not found
libwx_baseu_net-2.9.so.1 => not found
libwx_gtk2u_adv-2.9.so.1 => not found
but it didn't work. ldconfig hasn't helped either.
View 2 Replies
View Related
Aug 28, 2010
I'm trying to install .tar.bz2 app. When I run cmake I get this error message:
Code:
-- Found KDE 4.4 include dir: /usr/include
-- Found KDE 4.4 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find ZLIB (missing: ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindZLIB.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:15 (find_package)
Configuring incomplete, errors occurred!
View 2 Replies
View Related
Feb 20, 2011
I'm trying to compile an application and I'm getting "WARNING: This project requires version 2.6 of CMake. You are running version 2.4.7." How can I update the cmake version (I'm a total newbie @ linux)
View 9 Replies
View Related
Apr 10, 2011
I am trying to install cmake but got problem.Have in my tmp directory this file;cmake-2.6.4-7.el5.i386.rpm (and when use putty it is shown in red color)When using command;Quote:[root@system tmp]# su -c "yum install cmake*"I got following:Quote:
Loading "protect-packages" plugin
base-kernels | 951 B 00:00
[code]....
View 14 Replies
View Related
Jun 4, 2011
cmake appears to be finding libraries that no longer exist.I am trying to build OpenCV, and cmake is finding libraries for FFMPEG i.e. libavcodec,libavfilter and libswscale etc. These files used to exist, but were uninstalled from my system. OpenCV still appears to think these files exist, so where is it looking ?
View 4 Replies
View Related
Jan 25, 2010
I'm new to CMake, and I got a few warnings after running a 'configure' file, which I don't really understand.I was hoping someone could tell me if they are real problems of if I can just ignore them. Here is the output I got:
Code:
[root@linux khtml2png-2.7.6]# ./configure
rm: cannot remove `cmake_install.cmake': No such file or directory
[code]....
View 2 Replies
View Related
Oct 15, 2010
I am trying to compile Avidemux 2.4.4 from the folder where it is installed.When I type cmake. for compiling it is showing this errorQuote:
CMake Error at cmake/Po.cmake:11 (MESSAGE):
msgfmt not found - po files can't be processed
Call Stack (most recent call first):
[code]....
View 2 Replies
View Related
Jun 26, 2010
I'm trying to install Semantik 0.7.3 on OpenSUSE 11.2 and having difficulties with the dependencies. Here's the last message my terminal spit out on my attempt to start building:
--A whole bunch of stuff the forum apparently won't let me post because it thinks it's URLs and I'm too new--
error: could not open /usr/share/kde4/apps/cmake/modules/KDELibsDependencies.cmake
--End
I'd had some problems with dependencies on the way to this message and installed gcc and g++ successfully to solve them. But now it's telling me can't find KDELibsDependencies.cmake. I've checked it out - it's not in the directory. After installing cmake, I'm kind of at the end of my wits - I just don't know where to look further.
Another hint that seems to be connected with it: As I was trying to install rkward 0.5.3 (also today) it had problems with cmake too:
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/erget/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
Call Stack (most recent call first):
[Code]....
View 7 Replies
View Related
Feb 2, 2011
When trying to compile Armadillo on a computer cluster I get the following error after running "cmake ." (works OK) and "make":
/usr/bin/ld: /share/apps/opt_intel/lib/libblas.a(dgemm.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/share/apps/opt_intel/lib/libblas.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libarmadillo.so.1.0.2] Error 1
make[1]: *** [CMakeFiles/armadillo.dir/all] Error 2
make: *** [all] Error 2
Cmake says it has successfully found BLAS, but there is still a linking problem.
View 3 Replies
View Related
Mar 18, 2010
I am trying to install opencv on ubuntu. I have been following the directions exactly as given in the readme, and all goes well until I enter sudo make install, and get this error:
CMake Error at cmake_install.cmake:61 (FILE):
file Internal CMake error when trying to open file:
/home/iochinome/workspace/trunk/opencv/release/install_manifest.txt for writing.
View 3 Replies
View Related
Feb 20, 2011
I'm trying to install libboost-all and libboost-all-dev, but it says the package couldn't be found! Any idea how to install this via putty now? Also, how can I update my cmake to 2.6.x ? it's at 2.4.7
View 11 Replies
View Related
Jan 13, 2010
There is this slackbuild in which I have changed the part in bold.
Code:
#!/bin/sh
# Packager GioPower, luca.gio.85~at~gmail~dot~com
# VTK (Visualization Toolkit)
#
# The Visualization Toolkit (VTK) is an open-source, freely available
[Code]...
This will still drop stuff into /usr/lib, which is clearly anti Slackware64... I do not know enough of cmake builds, which flag do I have to pass in the slackbuild for cmake to drop stuff in /usr/lib64...?
View 2 Replies
View Related
Nov 3, 2010
I'm trying to install cmake. After bootstraping/configuring I try to make and I get the following output:
Code:
% make
Scanning dependencies of target cmsys
[code]....
View 5 Replies
View Related
Jan 4, 2010
relative n00b to C++ but I have heard that KDevelop rocks so I am using it as my IDE. what does it mean when it wants me to find a cmake file? idk what that is lol, just got through the section on if statements on my book. where do i find this file? are there any good tutorials on the KDevelop4 Enviroment?
Charlie
View 2 Replies
View Related
Jun 20, 2010
I am trying to build the XSBS source code with cmake [URL] but it fails to find PythonLibs with this error:
Code:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
[Code].....
View 4 Replies
View Related
Aug 27, 2010
I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.
So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?
Why and what is the main difference between them?
View 4 Replies
View Related
Mar 7, 2010
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies
View Related
May 30, 2010
I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
View 1 Replies
View Related