mohdshamilshafi / cudpp

Automatically exported from code.google.com/p/cudpp
Other
0 stars 0 forks source link

make install omits cudpp_config.h #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mkdir -p build; cd build;
2. cmake ..
3. make
4. sudo make install

What is the expected output? What do you see instead?

    Expect /usr/local/include to contain cudpp_config.h, but it isn't there.

    This results in the following error when building a 3rd-party project that depends on cudpp:

    /usr/local/include/cudpp.h:501:26: fatal error: cudpp_config.h: No such file or directory

What version of the product are you using? On what operating system?

    cudpp 2.0
    ubuntu 12.04
    cmake 2.8.7

Please provide any additional information below.

Original issue reported on code.google.com by ksi...@email.arizona.edu on 5 Jun 2012 at 11:12

GoogleCodeExporter commented 8 years ago
I'm not sure we've tried to install this in /usr/local/ before. Just to be sure 
it's not another problem, have you tried to install it in a local directory 
directly? That would eliminate a bunch of problems if that was successful.

Original comment by jow...@gmail.com on 5 Jun 2012 at 11:24

GoogleCodeExporter commented 8 years ago
The issue is we never tested make install.  I never use it myself, just make.  
Make install is auto-generated by CMake. Not high priority.

Original comment by harr...@gmail.com on 6 Jun 2012 at 12:33

GoogleCodeExporter commented 8 years ago
Issue 116 has been merged into this issue.

Original comment by harr...@gmail.com on 6 Jun 2012 at 8:35

GoogleCodeExporter commented 8 years ago
Can be reproduced on windows as well.

Original comment by andre.r....@gmail.com on 6 Jun 2012 at 8:57

GoogleCodeExporter commented 8 years ago
Setting CMAKE_INSTALL_PREFIX to a local path gives the same result (no 
cudpp_config.h in $PREFIX/include).  Is that what you meant by installing in a 
local directory directly?  

Original comment by ksi...@email.arizona.edu on 8 Jun 2012 at 12:16

GoogleCodeExporter commented 8 years ago
make install is untested.  THe usage mode I've used is to just run make and 
then set paths in the app that uses the library to point to the include and lib 
directories.  I haven't tried to "install" the resulting libraries anywhere 
other than where the build puts them.

Original comment by harr...@gmail.com on 8 Jun 2012 at 12:44

GoogleCodeExporter commented 8 years ago
I just wanted to mention it in case it was an oversight, but it sounds like 
make install isn't a priority at the moment.  It's easy enough to install it 
manually if need be.  Unfortunately I'm a novice at cmake, otherwise I'd try to 
help with a patch.

Original comment by ksi...@email.arizona.edu on 8 Jun 2012 at 6:14

GoogleCodeExporter commented 8 years ago
On Kubuntu 11.04 and cuda 4.2, cudpp_config.h was not installed in 
/usr/local/include wiht make install. I realized when building Jcuda (I did not 
test it using the commands given by ksi...@email.arizona.edu). A minor problem, 
installed cudpp_config.h manually.

Original comment by regularc...@gmail.com on 6 Sep 2012 at 11:21

GoogleCodeExporter commented 8 years ago
Hi,

This can be fixed easily at the bottom of the CMakeLists.txt you will need to 
add the following line:

install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/cudpp_config.h
  DESTINATION include)  

Then CMake will install the cudpp_config.h in /usr/local/include  or whatever 
you have set using the CMAKE_INSTALL_PREFIX.  (but /usr/local/ is the default.

Thanks to the CUDPP team. You are doing a great job!  

Original comment by omar.val...@gmail.com on 15 Nov 2012 at 3:05