hjm168168 / libmv

Automatically exported from code.google.com/p/libmv
MIT License
0 stars 0 forks source link

Build fails on Ubuntu - Fedora #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make (main directory, method #1)
2. mkdir alternate_build (use cmake, method #2)

What is the expected output? What do you see instead?
Build is accomplished without a hitch ...

What version of the product are you using? On what operating system?
SVN revision #817. Ubuntu 9.10 64-bit

Please provide any additional information below.

The libmv build fails on Ubuntu. Here's the error I receive:
...
[  3%] Building CXX object 
third_party/glog/src/CMakeFiles/glog.dir/signalhandler.o
/media/dataDrive/workspace/repos/repos_libmv/src/third_party/glog/src/signa
lhandler.cc: In function ‘void* google::<unnamed>::GetPC(void*)’:
/media/dataDrive/workspace/repos/repos_libmv/src/third_party/glog/src/signa
lhandler.cc:72: error: ‘REG_EIP’ was not declared in this scope
...

I had a gflags error but fixed it by installing google gflags from their 
official svn. I am not exactly sure what is going wrong here. I have 
attached a log file. I get the same output for make as opposed to cmake.

Thanks,
bidwej

P.S. I really appreciate libmv. It's fantastic to see opensource work in 
this direction. I suspect I will have some code to contribute in the 
future. 

Original issue reported on code.google.com by bid...@gmail.com on 6 Feb 2010 at 12:41

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I will try to have a look in the next week.
Thanks for the report ;)

Original comment by pmou...@gmail.com on 6 Feb 2010 at 3:49

GoogleCodeExporter commented 9 years ago
Hello,
For the issue with REG_EIP you can look for the fix here :

Add this before the line #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_EIP] or 
use 
the attachment.

/* How to access the PC from a struct ucontext */
#ifndef REG_EIP
#define REG_EIP 0x00a01004L
#endif
#define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_EIP]

For the gflag issue. What is the problem you get ?

Original comment by pmou...@gmail.com on 8 Feb 2010 at 12:33

Attachments:

GoogleCodeExporter commented 9 years ago
Pmoulon,

Many thanks! I replaced "config_linux.h" in 
"repos_libmv/src/third_party/glog/src" 
with the version from your attachment and the build went off without a hitch; 
running 
make from "repos_libmv" my root directory from the checkout.

Sorry. I do not recall the gflags error. I installed gflags from "svn checkout 
http://google-gflags.googlecode.com/svn/trunk/ google-gflags-read-only" and 
followed 
the build instructions in the included README file.

Thanks again,
-bidwej

Original comment by bid...@gmail.com on 8 Feb 2010 at 2:06

GoogleCodeExporter commented 9 years ago

Original comment by pmou...@gmail.com on 16 Feb 2010 at 2:45