You are not logged in.

#1 2008-07-07 15:39:18

kfrance
Member
From: Provo Utah
Registered: 2008-06-28
Posts: 14

Problems compiling opencv

I'm trying to update the opencv package that is in AUR. I'm having to check opencv out from cvs because of some compiling problems using gcc 4.3. I've had a few problems that I'vo been able to overcome but I'm stuck right now. I'm getting the following error

g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crti.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtendS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crtn.o: No such file or directory

The problem is I'm using gcc 4.3.1. So the files exist just under a different directory from where it is looking. How do I get it to look in the right place. I'm familiar with C and C++ but not very familiar with the automake tools.

Offline

#2 2008-07-07 16:29:00

ProgDan
Member
From: Prague, Czech Republic
Registered: 2007-10-04
Posts: 441
Website

Re: Problems compiling opencv

Well the simpliest way how to make it work is to just make symlinks from place where it really is to place, where GCC is looking for it...

By the way this looks like if the directories were not updated when going to 4.3.1 from 4.3.0, just try to reinstall GCC (try -f switch)...

Offline

#3 2008-07-07 16:55:06

kfrance
Member
From: Provo Utah
Registered: 2008-06-28
Posts: 14

Re: Problems compiling opencv

Making the symbolic links worked for me. Thank you.

I'm wondering how to get it to look in the right place without the symbolic link. I reinstalled gcc like you suggested but I still get the same problem. The output from make right before the error is

libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtbeginS.o  .libs/dummy.o  -Wl,--whole-archive ./.libs/lib_cxcore.a -Wl,--no-whole-archive  -lavformat -lavcodec -lpthread -ldl -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.0 -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crtn.o  -march=i686 -march=i686 -mtune=pentium4 -mcpu=pentium4   -Wl,-soname -Wl,libcxcore.so.2 -o .libs/libcxcore.so.2.0.0

Could it be a problem with libtool. I've tried to reinstall it as well. It seems to me that it isn't a gcc problem but an automake problem, but like I said I'm not really familiar with the automake tools.

Offline

#4 2008-07-07 18:30:51

ProgDan
Member
From: Prague, Czech Republic
Registered: 2007-10-04
Posts: 441
Website

Re: Problems compiling opencv

It's strange that system is searching in 4.3.0 gcc folder when you have gcc 4.3.1 installed. Do you have your system up-to-date?

By the way, I'm not able to compile it too, some problems with libtool too - some missing files or what smile

Offline

#5 2008-07-07 18:40:09

kfrance
Member
From: Provo Utah
Registered: 2008-06-28
Posts: 14

Re: Problems compiling opencv

Yeah, my system is up-to-date. Thanks for taking the time to look at this. I will just stick with using the symbolic links for now. I think that there is some issues to work out with opencv and so it is more of an upstream issue than an arch issue. I'll see if I can sort it out there.

Offline

Board footer

Powered by FluxBB