-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile on Arch Linux #112
Comments
I am not sure what this is. It seems like there is a type mismatch between "NULL" and "internal_grow_by(". Some kind of library versions that differs maybe. |
Seems to be related to this issue.
https://software.intel.com/en-us/forums/intel-threading-building-blocks/topic/749387
It is a type mismatch between the return value of internal_grow_by and the
variable my_early_size.
It looks like it is an incompatibility between an old version of the Intel
TBB library and GCC 7.
Den lör 8 sep. 2018 20:46Roland Karlsson <[email protected]> skrev:
… I am not sure what this is. It seems like there is a type mismatch between
"NULL" and "internal_grow_by(". Some kind of library versions that differs
maybe.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#112 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKHTEim9tCArb2jXbc3eq_YrngRnbMSsks5uZBBwgaJpZM4Wfq50>
.
|
My gcc version is 8.2.1 |
I think the easiest thing to test would be to use a more recent version
of OpenCV from the official repo. Our addition of 16-bit support to NLM
denoising has been merged so it is not necessary to use our own fork.
You have to edit install_opencv.sh (OCV_URL and OCV_HASH), remove the
deps/ subdirectory, and then run make again. The OpenCV build process
downloads and builds its own version of TBB so what you have on your
system is not relevant.
…On 2018-09-09 04:44, DrTebi wrote:
My gcc version is 8.2.1
My TBB version says it's up to date as well (intel-tbb-2018_20180618-1).
Is there any way I can fix this? I am not afraid to dig into some code,
if someone tells me where to look :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#112 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AKHTEqAiduPghgoW-fo_Dx1RmlGjsQR2ks5uZICEgaJpZM4Wfq50>.
|
Thank you, just what I hoped for. Arch Linux has an "official" package for OpenCV. I will try that later today and report back. |
Well, it did not work out yet... I started with a freshly extracted x3f archive.
The OpenCV install succeeded. After that I had to create symlinks to the lib64 directories (lib -> lib64). Got a bit further but then I got this:
No idea what is going on there... |
Just tried it on a fresh install of Ubuntu 18.04 LTS, gcc and cmake installed. Even more errors, not finding g++ etc. On what Linux Distro was this code tested? Can I get a list of requirements? I would love to use this program, but apparently there are issues compiling the code on recently updated distros. |
Well, honestly, I was excited about this project. But if it's difficult or impossible to install, even on a "vanilla" Ubuntu installation, it's disappointing. I would love to try Kalpanika, but you guys should really make it easier to install Kalpanika on an "average" or "typical" Linux system, how else can we take advantage of it? |
OK - we see two errors here.
The second one is due to your new installation not being complete. It lacks g++. This is how you do it. Note though that you will probably hit problem 1 after doing this anyhow. The first one is a bit more complicated. 1a. This "git" thing we have not a clue and we do not know if 1b might be a consequence. Probably not. 1b. The "undefined reference" thing is probably because of missing libraries in the linking command. It is probably because the new OpenCV has more dependencies. A bit of explanation is here in place we think. We have chosen to link statically because it was originally closed source and we wanted to be able to distribute self contained binaries. Then you need to be careful when linking, because all dependencies, even secondary ones, needs to be given in the link command. And this is the problem here. But, for an open source project where the users compile the binaries themselves it would be much easier if the linking would be dynamic as then the secondary dependencies are automatically just working. But, then the machine you plan to run it on needs to have the libraries installed. |
Hello, I am not exactly sure where it failed this time, but I have the complete log starting from "make" uploaded here as a text file: Any suggestions are greatly appreciated. |
Hi - it is Erik that is the expert on this. I assume he will need the two cmake log files mentioned at the end of the text file. |
The CMake log files are now uploaded here: I hope that helps. |
As you can see, you have no c++ compiler in your Linux installation. When you have installed it, there are two possibilities
/Roland |
Well, I am not sure which kind of C++ compiler is required. I thought gcc is sufficient, which I installed according to your instructions. Thus I have:
|
Yes, gcc can compile c++ programs. But ... Please google for "Can you compile C++ with GCC?" |
I assumed that this was the place to ask for help, not google. Maybe you could just tell me on what machine the code actually compiles, as in which Linux distribution, with what packages installed. If it was my own code I had published here, I would just go through the trouble and attempt to install it on a "vanilla" Ubuntu installation, and, if necessary, provide a list of required packages for installing Kalpanika. I feel we are just going back and forth here, with some mystery packages that are missing that I need to guess and keep asking about. |
I have given you help. I repeat, You should run ... $ sudo apt-get update ... to install g++ The googling was only to show you that you DO need to install g++, even if you have gcc. The main web page you will find doing the googling is something that google puts up as an info page and nothing I could find a link for. Thats why googling was recommended. After that, cmake will find a c++ compiler. I have also said that, unfortunately, it will probably not help the whole way. You will probably get the original problem back, where you will get complaints on incompatible types. That is a guess, I might be wrong. Regarding, you being not satisfied with our help. Please understand that we made this software open source as a courtesy to e.g. you and that the main reason is that we no longer have all that much time to develop and maintain it. We are doing other stuff. We have also explained that the build environment is originally designed for our internal builds. It is not optimal for you building it, if you do not have the skills. All that said, sure you can get help, but you have to understand the background. |
I have tried the master branch as well as the dev branch, make stops with errors.
Am I missing some dependencies, or is there something else I am not getting? I just downloaded the .zip archive from github, extracted the files, changed into that directory and ran "make". Tried "make dist-64" as well with no luck.
My system was updated just three days ago. gcc, cmake and (g)make are installed.
Here the last few lines of the error messages, I can provide more if that helps:
The text was updated successfully, but these errors were encountered: