Skip to content
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

a conda build and cmake problem #9

Open
lorinma opened this issue Dec 26, 2015 · 6 comments
Open

a conda build and cmake problem #9

lorinma opened this issue Dec 26, 2015 · 6 comments

Comments

@lorinma
Copy link

lorinma commented Dec 26, 2015

Hi,
I've created a conda build for ApproxMVBB, see
https://anaconda.org/lorinma/mvbb

After install the libs through conda, I was trying to test the example code from https://github.com/gabyx/ApproxMVBB/blob/master/example/approxMVBB/src/main.cpp

with a simple CMakeLists.txt
It passed the cmake process, but then I get a series errors for 'xxx was not declared in this scope' when I build it

But, if I run cmake twice:
$cmake ..
$cmake ..
Then I can build it smoothly and get the right result when run the binary

I'm working on Cloud9 (Ubuntu linux-64)

Any idea?

Thanks!

@lorinma
Copy link
Author

lorinma commented Dec 26, 2015

btw:
I don't see any difference when I check the ccmake . after I run cmake first time and after run cmake second time.

@gabyx
Copy link
Owner

gabyx commented Dec 26, 2015

Hi, :-) what is a anaconda build :-)?

I looked at it and it seems that all stuff at least for cmake is at the right place

├── cmake
│   └── ApproxMVBB-1.0.11
│       ├── FindEigen3.cmake
│       ├── FindMeta.cmake
│       ├── FindPugiXML.cmake
│       ├── approxmvbb-config-version.cmake
│       └── approxmvbb-config.cmake
├── libApproxMVBB.so -> libApproxMVBB.so.1.0.11
└── libApproxMVBB.so.1.0.11

Anyway I need some more precise information to help if it is even possible. So you managed to build the example successfully thats already good :-). but strange that it only works the second time? hm...

@gabyx
Copy link
Owner

gabyx commented Dec 26, 2015

the naming is somewhat stupid. > libApproxMVBB.so.1.0.11

I think I gonna change that naming to libApproxMVBB.1.0.11.so some when

@lorinma
Copy link
Author

lorinma commented Dec 26, 2015

Hi,

conda is a great cross platform package manager. you can have a look at this video:

https://www.youtube.com/watch?v=UaIvrDWrIWM#action=share

I think you should also get the header files from conda build as well.

here is part of the error messages.txt

what else do you need?

Regarding the naming, that's simply used for distinguish with the latest release 1.0.10.

@gabyx
Copy link
Owner

gabyx commented Dec 27, 2015

Are you compiling with -std=c++11
?

@lorinma
Copy link
Author

lorinma commented Dec 27, 2015

yes, I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants