Giter Club home page Giter Club logo

ceres-windows's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ceres-windows's Issues

I can't build ceres

I put eigen, glog, directories in the build directory. Upon building in 2015 Visual Studio, I get ~27 errors.

Also: I made sure I'm using ceres-solver 1.12 and not 1.13 (most updated version). I was not able to build 1.13 via CMake, so trying this route...

Thanks,
Brent

Unresolved external symbol

6 unresolved external symbols in the following files:
ceres-windows-master\win\gradient_checking_cost_function.obj
ceres-windows-master\win\solver.obj
ceres-windows-master\win\trust_region_minimizer.obj

I don't know why and how to solve to this problem, can sombody give me a hint? Thanks.

Compilation issues with VS2015

Hi,
I'm trying to compile with VS2015 but having some trouble. I managed to compile libglog_static and ceres_static without any issues but having some trouble compiling ceres due to linkage issues. In addition it seems that the examples are based on the ceres compilation and therefor cannot be compiled. I'm getting the following error:

libglog_static.lib(utilities.obj) : error LNK2019: unresolved external symbol "bool cdecl google::glog_internal_namespace::IsFailureSignalHandlerInstalled(void)" (?IsFailureSignalHandlerInstalled@glog_internal_namespace@google@@YA_NXZ) referenced in function "void __cdecl google::DumpStackTraceAndExit(void)" (?DumpStackTraceAndExit@google@@yaxxz)

1>libglog_static.lib(utilities.obj) : error LNK2019: unresolved external symbol "bool __cdecl google::Symbolize(void *,char ,int)" (?Symbolize@google@@YA_NPEAXPEADH@Z) referenced in function "void __cdecl google::DumpPCAndSymbol(void (__cdecl)(char const *,void *),void *,void *,char const * const)" (?DumpPCAndSymbol@google@@YAXP6AXPEBDPEAX@Z11QEBD@Z)

1>C:\ceres-solver\x64\Debug\ceres.dll : fatal error LNK1120: 2 unresolved externals

Any advice?

Consider working with upstream

It would be great to have Windows better supported upstream; have you thought about getting this in the main Ceres repository?

incomplete_lq_factorization.cc not found

When trying to build this project in Visual Studio 2012, I got a build error. The files "incomplete_lq_factorization.cc" and "incomplete_lq_factorization.h" could not be found. I found that after removing references to these files from the project, I was able to build the library successfully.

It works well, thanks

I just want to say that your work really helps me a lot, and I really appreciate it. Your contribution makes the world a better place.

Issue running helloworld

Hi,

First time user, cannot get helloworld program to run. On compile I get the error "Unable to start program 'C:.......\ceres-windows-master\Win32\Debug\libglob_static.lib'.

I've extracted eigen, ceres-solver and glog into folders within 'ceres-windows-master', and am trying to run in VS2013 Express. I assume this is a quick enough fix, likely something silly on my end?

Any assistance would be much appreciated!

Error C4996 'j0': The POSIX name for this item is deprecated

Trying to get a x64 build working in vs2015 and after downloading ceres-windows and the latest stable ceres I get this error in the 21 places that reference jet.h.

Error C4996 'j0': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _j0. See online help for details. helloworld_numeric_diff c:\ceres_windows\ceres-windows-master\ceres-solver\include\ceres\jet.h 523

_MSC_VER is defined as 1900 according to intellisense.

Are mods to ceres needed to get around this?

Thanks in advance for any suggestions.

Problems with GradientChecker Functionality

I am getting unresolved external errors in relation to the gradient checker functionality. Using a simple example basically copying the example within gradient_checker_test.cc, where in this case TestTerm is just a copy of the "GoodTestTerm" function in the gradient_checker_test.cc

#define GLOG_NO_ABBREVIATED_SEVERITIES
#include "glog/logging.h"
 
#include "TestTerm.h"
 
nclude <iostream>
#include <fstream>
#include <memory>
#include <cmath>
#include <cstdlib>
#include <vector>
 
#include "ceres/cost_function.h"
#include "ceres/problem.h"
#include "ceres/numeric_diff_options.h"
#include "ceres/solver.h"
#include "glog/logging.h"
#include "ceres/gradient_checker.h"
 
using namespace std;
using ceres::AutoDiffCostFunction;
using ceres::CostFunction;
using ceres::Problem;
using ceres::Solver;
using ceres::Solve;
using ceres::GradientChecker;
using ceres::NumericDiffOptions;
 
int main(int argc, char** argv) {
// Test with 3 blocks of size 2, 3 and 4.
int const num_parameters = 3;
std::vector<int> parameter_sizes(3);
parameter_sizes[0] = 2;
parameter_sizes[1] = 3;
parameter_sizes[2] = 4;
// Make a random set of blocks.
std::vector<double*> parameters(num_parameters);
for (int j = 0; j < num_parameters; ++j) {
parameters[j] = new double[parameter_sizes[j]];
for (int u = 0; u < parameter_sizes[j]; ++u) {
parameters[j][u] = 2.0 * rand() - 1.0;
}
}
NumericDiffOptions test_diff_options;
GradientChecker::ProbeResults results;
TestTerm test_term(num_parameters, parameter_sizes.data());
GradientChecker good_gradient_checker(&test_term, NULL, test_diff_options);
 
good_gradient_checker.Probe(parameters.data(), 1e-9, &results);
std::cout << results.error_log;
 
 
}

provides the resultant warnings / build error even though the ceres.lib is definitely included (and I can run define a Problem etc etc etc fine within the same project and it builds), as obviously the following kind of error normally means you just haven't included the relevant library in your project.

WARNINGS

1>D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(108): warning C4251: 'ceres::GradientProblem::function_': class 'ceres::internal::scoped_ptr<ceres::FirstOrderFunction>' needs to have dll-interface to be used by clients of class 'ceres::GradientProblem'
1>  D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(108): note: see declaration of 'ceres::internal::scoped_ptr<ceres::FirstOrderFunction>'
1>D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(109): warning C4251: 'ceres::GradientProblem::parameterization_': class 'ceres::internal::scoped_ptr<ceres::LocalParameterization>' needs to have dll-interface to be used by clients of class 'ceres::GradientProblem'
1>  D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(109): note: see declaration of 'ceres::internal::scoped_ptr<ceres::LocalParameterization>'
1>D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(110): warning C4251: 'ceres::GradientProblem::scratch_': class 'ceres::internal::scoped_array<double>' needs to have dll-interface to be used by clients of class 'ceres::GradientProblem'
1>  D:\Data\Documents\Visual Studio 2015\Projects\ceres-windows\ceres-solver\include\ceres/gradient_problem.h(110): note: see declaration of 'ceres::internal::scoped_array<double>'

BUILD ERRORS

1>main.obj : error LNK2019: unresolved external symbol "public: __cdecl ceres::GradientChecker::GradientChecker(class ceres::CostFunction const *,class std::vector<class ceres::LocalParameterization const *,class std::allocator<class ceres::LocalParameterization const *> > const *,struct ceres::NumericDiffOptions const &)" (??0GradientChecker@ceres@@QEAA@PEBVCostFunction@1@PEBV?$vector@PEBVLocalParameterization@ceres@@V?$allocator@PEBVLocalParameterization@ceres@@@std@@@std@@AEBUNumericDiffOptions@1@@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "public: bool __cdecl ceres::GradientChecker::Probe(double const * const *,double,struct ceres::GradientChecker::ProbeResults *)const " (?Probe@GradientChecker@ceres@@QEBA_NPEBQEBNNPEAUProbeResults@12@@Z) referenced in function main
1>D:\Data\Documents\Visual Studio 2015\Projects\OpenSubDiv_TestCurvatureMin\x64\Debug\TestJacobian.exe : fatal error LNK1120: 2 unresolved externals

ceres tests

Not sure if this is a real issue or not, but I didn't see another way of contacting you. Thanks for providing these solution files.

I was able to build ceres using the visual studio 2012 solution file. I did not see any of the tests that come with ceres in the solution file. Were these intentionally left out?

When I use AutoDiffCostFunction, there are glog linking error

I compile in VS10 windows 10, and all things is well when I use sizedcostfunction, but there are following linking error when I use AutoDiffCostFunction.

unresolved external symbol "__declspec(dllimport) public: __cdecl google::base::CheckOpMessageBuilder::~CheckOpMessageBuilder(void)"

unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits,class std::allocator > * __cdecl google::base::CheckOpMessageBuilder::NewString(void)"

unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits > * __cdecl google::base::CheckOpMessageBuilder::ForVar2(void)"

unresolved external symbol "__declspec(dllimport) public: __cdecl google::base::CheckOpMessageBuilder::CheckOpMessageBuilder(char const *)

unresolved external symbol "__declspec(dllimport) public: __cdecl google::LogMessageFatal::~LogMessageFatal(void)

unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits > & __cdecl google::LogMessage::stream(void)

unresolved external symbol "__declspec(dllimport) public: __cdecl google::LogMessageFatal::LogMessageFatal(char const *,int)"

unresolved external symbol "__declspec(dllimport) public: __cdecl google::LogMessageFatal::LogMessageFatal(char const *,int,struct google::CheckOpString const &)

how to use OpenMP in Ceres Solver?

I use AnalyticCostfunction. In the "virtual bool Evaluate()" function I have some code used to calculate residuals and jacobians. In these code I try to use "#pragma omp parallel for" to improve the performance, but it dons't make any sense. If I run the same code in other place (mine rather than ceres‘s functions),the OpenMP make sense very well. I concer about whether there are some tricks when use OpenMP in Ceres functions.

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.