galloty / proth20

An OpenCL implementation of Proth's Theorem
MIT License
3 stars 0 forks source link

Can't compile Proth20 #2

Closed johnZhang17 closed 3 years ago

johnZhang17 commented 3 years ago

Hey, I can't seem to be able to compile the project, for both Linux and Windows. The problem seems to be always the same though, proth20.exe and proth20d.exe are not found. Could you share your system configurations and/or system requisites that worked?

Linux Description: Debian GNU/Linux 10 (buster) Kernel: 4.4.0-19041-Microsoft (WSL2) Output error:

~/proth20-master$ sudo make -f Makefile_linux64
[sudo] password for alpha-dev:
rm -rf bin/proth20
g++ -m64 -std=c++17 -Wall -Wextra -fexceptions -O2 -I Khronos -c src/main.cpp -o src/main.o
g++ -m64 -std=c++17 src/main.o -O2 -lOpenCL -static-libstdc++ -static-libgcc -o bin/proth20
/usr/bin/ld: cannot open output file bin/proth20: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile_linux64:22: bin/proth20] Error 1

Windows Description: Windows 10 Pro Version: 10.0.19042 Build 19042 Output error:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.3
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>nmake C:\Users\sicil\Downloads\Opera\proth20-master\Makefile_win64_dev

Microsoft (R) Program Maintenance Utility Version 14.28.29335.0
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\Users\sicil\Downloads\Opera\proth20-master\Makefile_win64_dev(36) : fatal error U1000: syntax error : ')' missing in macro invocation
Stop.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>
galloty commented 3 years ago

The directory bin doesn't exist and must be created. On Linux, the link failed because bin/ was not found. On Windows, proth20 is compiled with gcc (mingw64 / MSYS2 distribution). VS2019 was not tested.

galloty commented 3 years ago

Added bin folder