theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
489 stars 54 forks source link

Error "/usr/bin/ld: cannot open output file openfortigui: Is a directory" while compiling in Ubuntu 20.04 #117

Closed faustocarva closed 4 years ago

faustocarva commented 4 years ago

Hi, i was trying to compile the project in Ubuntu 20.04 got this error:

[ 96%] Building CXX object CMakeFiles/openfortigui.dir/openfortigui_autogen/Y2DAEQPLOR/qrc_res.cpp.o
[100%] Linking CXX executable openfortigui
/usr/bin/ld: cannot open output file openfortigui: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/openfortigui.dir/build.make:539: openfortigui] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/openfortigui.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

The output file (the executable one) can not be created because in the same directory is a directory with the same name (openfortigui). To correct this i changed the name of the output file to one different from the openfortigui and it worked. Another solution would be to change the source folder name to "src" or any other. Thanks in advance.

theinvisible commented 4 years ago

Hi, fixed this now by building into separate bin dir.