Giter Club home page Giter Club logo

Comments (4)

snavely avatar snavely commented on August 18, 2024

Hi Daniel,

I've just pushed a change to the Makefile that might fix your issue -- can
you try it out and let me know if it works now?

Noah

On Thu, May 15, 2014 at 3:11 PM, Daniel Lee [email protected]:

Working from the latest commit c34aaa0c34aaa0,
I'm able to compile. While running make, compilation works fine until
compiling the source. Here's the truncated output containing the error:

g++ -o bundler -O3 -Wall -Wno-unused-result -std=gnu++0x -I../lib/imagelib -I../lib/sfm-driver -I../lib/matrix -I../lib/5point -I../lib/sba-1.5 -I../lib/ann_1.1_char/include -I../include -I/usr/include/eigen3 -L../lib -L../lib/ann_1.1_char/lib
-D__NO_UI__ -D__BUNDLER__ -D__BUNDLER_DISTR__ -D__USE_CERES__ BaseApp.o BundlerApp.o keys.o Register.o Epipolar.o Bundle.o BundleFast.o MatchTracks.o Camera.o Geometry.o ImageData.o SifterUtil.o BaseGeometry.o BundlerGeometry.o BoundingBox.o BundleAdd.o ComputeTracks.o BruteForceSearch.o BundleIO.o ProcessBundle.o BundleTwo.o Decompose.o RelativePose.o Distortion.o TwoFrameModel.o LoadJPEG.o BundleCeres.o -limage -lsfmdrv -lsba.v1.5 -lmatrix -lz -lblas -llapack -lcblas -lminpack -lm -l5point -ljpeg -lANN_char -lgfortran -lceres -lcholmod -lcolamd -lamd -lcamd -lcxsparse -lsuitesparseconfig -lgomp -lglog -lpthread
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference to ccolamd_l_recommended' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference toccolamd_set_defaults'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference to ccolamd_recommended' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference toccolamd'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference to csymamd_l' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference tocsymamd'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference to ccolamd_l' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcholmod.so: undefined reference toccolamd_l_set_defaults'
collect2: error: ld returned 1 exit status
make[1]: *** [bundler] Error 1
make[1]: Leaving directory `/home/me/bundler_sfm/src'
make: *** [default] Error 2

I have libcholmod 2.1.2-39.1 installed. Is this perhaps a SuiteSparse
issue? I have the development headers for SuiteSparse from my package
manager, version 4.2.1-39.1.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16
.

from bundler_sfm.

erget avatar erget commented on August 18, 2024

Hi Noah,

Just deleted a few spurious posts about misconfigured paths, you can ignore them if you got them by mail because the problem was on my side :P

After pulling the newest code, there's unfortunately no difference - the executable still fails when trying to link because of the undefined references in libcholmod.so. In order to get back to the point where the compilation got so far, though, I had to comment a line back in that added the path to eigen to INCLUDE_PATH:

diff --git a/src/Makefile b/src/Makefile
index 845894a..09c6a3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -55,7 +55,7 @@ BUNDLER_LIBS=$(CERES_LIBS) $(BUNDLER_BASE_LIBS)
 BUNDLER_OBJS+=BundleCeres.o
 INCLUDE_PATH+=$(CERES_INCLUDE_PATH)
 LIB_PATH+=$(CERES_LIB_PATH)
-# INCLUDE_PATH+=-I/usr/include/eigen3
+INCLUDE_PATH+=-I/usr/include/eigen3
 else
 BUNDLER_LIBS=$(BUNDLER_BASE_LIBS)
 endif

When compiling after doing make clean, compilation now stops at g++ -c -o BundleCeres.o ... rather than when trying to compile bundler.

from bundler_sfm.

snavely avatar snavely commented on August 18, 2024

Thanks -- just readded that include path, and tried to add -lccolamd to the
list of libraries (before it had -lcolamd, but not -lccolamd). Please give
it another try.

Noah

On Sat, May 17, 2014 at 10:04 AM, Daniel Lee [email protected]:

Hi Noah,

Just deleted a few spurious posts about misconfigured paths, you can
ignore them if you got them by mail because the problem was on my side :P

After pulling the newest code, there's unfortunately no difference - the
executable still fails when trying to link because of the undefined
references in libcholmod.so. In order to get back to the point where the
compilation got so far, though, I had to comment a line back in that added
the path to eigen to INCLUDE_PATH:

diff --git a/src/Makefile b/src/Makefile
index 845894a..09c6a3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -55,7 +55,7 @@ BUNDLER_LIBS=$(CERES_LIBS) $(BUNDLER_BASE_LIBS)
BUNDLER_OBJS+=BundleCeres.o
INCLUDE_PATH+=$(CERES_INCLUDE_PATH)
LIB_PATH+=$(CERES_LIB_PATH)
-# INCLUDE_PATH+=-I/usr/include/eigen3
+INCLUDE_PATH+=-I/usr/include/eigen3
else
BUNDLER_LIBS=$(BUNDLER_BASE_LIBS)
endif

When compiling after doing make clean, compilation now stops at g++ -c -o
BundleCeres.o ... rather than when trying to compile bundler.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-43407694
.

from bundler_sfm.

erget avatar erget commented on August 18, 2024

Hi Noah,

Thanks, that did the trick! :)

Daniel

2014-05-18 5:38 GMT+02:00 Noah Snavely [email protected]:

Thanks -- just readded that include path, and tried to add -lccolamd to
the
list of libraries (before it had -lcolamd, but not -lccolamd). Please give
it another try.

Noah

On Sat, May 17, 2014 at 10:04 AM, Daniel Lee [email protected]:

Hi Noah,

Just deleted a few spurious posts about misconfigured paths, you can
ignore them if you got them by mail because the problem was on my side
:P

After pulling the newest code, there's unfortunately no difference - the
executable still fails when trying to link because of the undefined
references in libcholmod.so. In order to get back to the point where the
compilation got so far, though, I had to comment a line back in that
added
the path to eigen to INCLUDE_PATH:

diff --git a/src/Makefile b/src/Makefile
index 845894a..09c6a3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -55,7 +55,7 @@ BUNDLER_LIBS=$(CERES_LIBS) $(BUNDLER_BASE_LIBS)
BUNDLER_OBJS+=BundleCeres.o
INCLUDE_PATH+=$(CERES_INCLUDE_PATH)
LIB_PATH+=$(CERES_LIB_PATH)
-# INCLUDE_PATH+=-I/usr/include/eigen3
+INCLUDE_PATH+=-I/usr/include/eigen3
else
BUNDLER_LIBS=$(BUNDLER_BASE_LIBS)
endif

When compiling after doing make clean, compilation now stops at g++ -c
-o
BundleCeres.o ... rather than when trying to compile bundler.


Reply to this email directly or view it on GitHub<
https://github.com/snavely/bundler_sfm/issues/16#issuecomment-43407694>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-43430591
.

from bundler_sfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.