Title: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 04, 2012, 06:59:15 PM I recently installed Ubuntu linux and I need help compiling reaper. I am following the readme directions exactly and I am stuck here:
Code: c4n10@ubuntu:~/Miners/reaperv13beta4_src/build$ cmake -D CMAKE_BUILD_TYPE=Release .. I have installed CCC and SDK 2.7 as best I can tell via their readme instructions and I have no idea what to do from here. Any help is greatly appreciated! Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 04, 2012, 07:43:12 PM Have you installed build-essential and so on?
Something like this: Code: sudo apt-get install make automake build-essential libcurl4-openssl-dev Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 04, 2012, 08:20:43 PM Have you installed build-essential and so on? Something like this: Code: sudo apt-get install make automake build-essential libcurl4-openssl-dev Thank you for that! Ok, I have gotten it compiled and built but now when I run the reaper binary I get "reaper: command not found" even though the "reaper" and "reaper.conf" files are in the same directory as all the .cl files. Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 04, 2012, 09:01:10 PM If you just type reaper it will search for that in the directories contained in the $PATH variable,
the current directory is probably not, so you need to call it like this Code: ./reaper also the file has to be executable, if it is not you need to run chmod +x on it. Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 04, 2012, 09:06:37 PM If you just type reaper it will search for that in the directories contained in the $PATH variable, the current directory is probably not, so you need to call it like this Code: ./reaper also the file has to be executable, if it is not you need to run chmod +x on it. Alright, one step closer! Thank you! Now it starts, but I receive: "Error getting OpenCL platforms" Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 05, 2012, 06:55:53 PM Now it starts, but I receive: "Error getting OpenCL platforms" Hmm, I've never used reaper to mine litecoins, have you told it which device id to use (it seems there must be a config file) So we are at step one now again, is opencl working ;D Try to run clinfo and see if it lists your gpus: Code: clinfo | grep "Device Type" should show something like this ( I only have one gpu, so it lists my GPU and CPU ): Quote Device Type: CL_DEVICE_TYPE_GPU Device Type: CL_DEVICE_TYPE_CPU If this does not work, then something is wrong again with opencl... Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 05, 2012, 07:05:34 PM Now it starts, but I receive: "Error getting OpenCL platforms" Hmm, I've never used reaper to mine litecoins, have you told it which device id to use (it seems there must be a config file) So we are at step one now again, is opencl working ;D Try to run clinfo and see if it lists your gpus: Code: clinfo | grep "Device Type" should show something like this ( I only have one gpu, so it lists my GPU and CPU ): Quote Device Type: CL_DEVICE_TYPE_GPU Device Type: CL_DEVICE_TYPE_CPU If this does not work, then something is wrong again with opencl... My reaper config is set to use device 0. The clinfo command didn't work, "command not found". I apparently installed the sdk incorrectly even though I followed the instructions provided in the AMD-APP readme... *sigh* I love linux, but sometimes it can be such a pain in the ass, lol... Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 05, 2012, 08:43:37 PM Hm, on my system catalyst installs a clinfo into /usr/bin so it works just like that here.
Ok then we have to try harder lol :D, the amd app sdk should also contain a clinfo binary. In my case it is: /opt/amd-app-sdk/bin/x86_64/clinfo Then try to run this one, the location depends where you installed the sdk. Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 06, 2012, 05:13:33 AM Hm, on my system catalyst installs a clinfo into /usr/bin so it works just like that here. Ok then we have to try harder lol :D, the amd app sdk should also contain a clinfo binary. In my case it is: /opt/amd-app-sdk/bin/x86_64/clinfo Then try to run this one, the location depends where you installed the sdk. Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 06, 2012, 08:13:21 PM Hello,
Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" see if libstdc++ is installed: Code: sudo apt-get install libstdc++6 If it says already newest version, then it could be that you have downloaded the wrong sdk (32bit vs 64bit) You can check what your system is with: Code: uname -m If it says x86_64 then you need to download the 64bit sdk. ;) Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 08, 2012, 10:16:30 AM Hello, Ok, my file is in /opt/amd-app-sdk-v2.7-RC-lnx32/bin/x86/clinfo and when I run clinfo from inside the directory I get "./clinfo: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" see if libstdc++ is installed: Code: sudo apt-get install libstdc++6 If it says already newest version, then it could be that you have downloaded the wrong sdk (32bit vs 64bit) You can check what your system is with: Code: uname -m If it says x86_64 then you need to download the 64bit sdk. ;) Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol... I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response: Code: c4n10@ubuntu:~/Miners/reaperv13beta4_src/build$ cmake -D CMAKE_BUILD_TYPE=Release .. Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 09, 2012, 02:01:42 AM Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol... I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response: That is weird, didn't it compile ok earlier? Looks almost like the error you got at the beginning. Does clinfo work now? Maybe try this again: Code: sudo apt-get install make automake build-essential libcurl4-openssl-dev maybe also Code: sudo apt-get install g++ Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 09, 2012, 05:26:58 PM Ok, so it turns out I was using the 32-bit sdk with 64-bit ubuntu, lol... I've startd back from the beginning with all 64-bit stuff now while trying to compile reaper when I do the CMAKE portion I get this for a response: That is weird, didn't it compile ok earlier? Looks almost like the error you got at the beginning. Does clinfo work now? Maybe try this again: Code: sudo apt-get install make automake build-essential libcurl4-openssl-dev maybe also Code: sudo apt-get install g++ Alright, my clinfo works now and outputs: Code: Number of platforms: 1 I'm going to try those two install lines now... Ok, the second install package was part of the first install package, both are now installed and reaper is working!!! Awesome! Thank you VERY much, I will send you some LTC once I mine some up!!! Title: Re: Need Help Compiling Reaper in Ubuntu Post by: nomnomnom on October 10, 2012, 02:52:05 AM Ok, the second install package was part of the first install package, both are now installed and reaper is working!!! Awesome! Thank you VERY much, I will send you some LTC once I mine some up!!! Good to see that it works now! Have fun mining ;D Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 14, 2012, 02:56:44 AM Ok, I had a problem with my Ubuntu installation and had to re-install and now I am having issues again. I tried repeating what i did before but somehow I am stuck with this CMAKE error when trying to re-compile reaper:
Code: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. I have no idea what I'm doing wrong, any suggestions? Title: Re: Need Help Compiling Reaper in Ubuntu Post by: BitcoinOxygen on October 20, 2012, 04:52:47 PM why don't you just use windows?
Title: Re: Need Help Compiling Reaper in Ubuntu Post by: c4n10 on October 20, 2012, 06:09:42 PM why don't you just use windows? That's what I ended up doing, I upgraded to Win 7 |