Artelnics / opennn

OpenNN - Open Neural Networks Library
http://www.opennn.net
GNU Lesser General Public License v3.0
1.12k stars 353 forks source link

Unable to build on Manjaro #100

Closed tbhaxor closed 4 years ago

tbhaxor commented 4 years ago

I tried to make the OpenNN GitHub on Manjaro, I am getting the following error

make[2]: Leaving directory '/home/terabyte/OpenNN/build'
[ 60%] Built target opennn
make[2]: Entering directory '/home/terabyte/OpenNN/build'
Scanning dependencies of target airfoil_self_noise
make[2]: Leaving directory '/home/terabyte/OpenNN/build'
make[2]: Entering directory '/home/terabyte/OpenNN/build'
[ 61%] Building CXX object examples/airfoil_self_noise/CMakeFiles/airfoil_self_noise.dir/main.cpp.o
[ 62%] Linking CXX executable airfoil_self_noise
/usr/bin/ld: cannot find -l../opennn/Release/opennn
collect2: error: ld returned 1 exit status
make[2]: *** [examples/airfoil_self_noise/CMakeFiles/airfoil_self_noise.dir/build.make:84: examples/airfoil_self_noise/airfoil_self_noise] Error 1
make[2]: Leaving directory '/home/terabyte/OpenNN/build'
make[1]: *** [CMakeFiles/Makefile2:475: examples/airfoil_self_noise/CMakeFiles/airfoil_self_noise.dir/all] Error 2
make[1]: Leaving directory '/home/terabyte/OpenNN/build'
make: *** [Makefile:106: all] Error 2

The commands i ran

git clone https://github.com/Artelnics/OpenNN.git && cd OpenNN
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && make
shleym2000 commented 4 years ago

In the example project your path to OpenNN library is relative (l../opennn/Release/opennn).

2 questions to ask yourself

  1. Was library already built before example compiling/build had started?
  2. Are you building Examples from the directory where relative path points to the right location?
tbhaxor commented 4 years ago

In the example project your path to OpenNN library is relative (l../opennn/Release/opennn).

2 questions to ask yourself

1. Was library already built before example compiling/build had started?

2. Are you building Examples from the directory where relative path points to the right location?

NO

tbhaxor commented 4 years ago

Any update

shleym2000 commented 4 years ago

2 more questions

  1. read and execution access (r and x) to all directories in ../opennn/Release/opennn path
  2. does libopennn library built with the same compiler and, most interestingly, with the same debug/release, 32bit/64bit mode as the sample application?
tbhaxor commented 4 years ago

First of all, there is no directory ../opennn/Release/opennn and i am using GCC x64 v9.2.

Also i am able to only build target opennn

tbhaxor commented 4 years ago

I am closing this issue due to inactivity