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

Errors when trying to compile from source #314

Open
hanssssssssssssss opened this issue Aug 14, 2024 · 3 comments
Open

Errors when trying to compile from source #314

hanssssssssssssss opened this issue Aug 14, 2024 · 3 comments

Comments

@hanssssssssssssss
Copy link

hanssssssssssssss commented Aug 14, 2024

I'm wanted to try out OpenNN but the current version does not compile. Here are the steps I took (I'm on a Debain Linux machine):

git clone https://github.com/Artelnics/OpenNN
cd OpenNN/
mkdir build && cd build
cmake ..
make opennn

The first error is a simple include error (caused by the git folder "OpenNN" including capital letters):

/my/source/directory/OpenNN/opennn/kmeans.cpp:26:10: fatal error: ../../opennn/opennn/opennn.h: No such file or directory
   26 | #include "../../opennn/opennn/opennn.h"

I fixed that one, but then I encountered a second error where no immediate fix was obvious to me:

/my/source/directory/OpenNN/opennn/region_proposal_layer.h:104:9: error: 'outputs_data' was not declared in this scope
  104 |         outputs_data.resize(2);
      |         ^~~~~~~~~~~~
/my/source/directory/OpenNN/opennn/region_proposal_layer.h:105:9: error: 'outputs_dimensions' was not declared in this scope; did you mean 'get_dimensions'?
  105 |         outputs_dimensions.resize(2);

Please advise on how to succesfully compile the software.

@Doktor-No
Copy link

Doktor-No commented Nov 11, 2024

@hanssssssssssssss : Same error here (archlinux, gcc 14.2.1). Did you find a solution in the meantime?

I also tried to compile with qtcreator and ran into more (totally different) errors with no obvious solution...

Did someone manage to compile (bare cmake) without errors?

@hanssssssssssssss
Copy link
Author

@Doktor-No: No, I just ended up using TensorFlow 🙃

@Sninctbur
Copy link

I managed to compile OpenNN 6.0.3 on Ubuntu through WSL. It looks like the main branch currently does not compile. Download the 6.0.3 release tar instead and try compiling that.

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

No branches or pull requests

3 participants