-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compilation on Windows fails #13
Comments
Hi, |
I could narrow down the error a bit:
So I think it boils down to a file path issue. Openssl builds but is copied to the wrong location. My guess would be that the 32bit branch in
|
Yes, I also think that the problem is probably located in the 32-bit branch in Does using the 64-bit version work for you, or do you need the 32-bit version? We are considering removing the 32-bit version. If the 64-bit version works for you, then I will close this issue. |
Hi,
I wasn't able to compile semla on a windows machine. I tried to fix some issues I encountered with the provided building instructions, however I didn't manage to get it compiled in the end. My setup is the following:
Version strings of Perl, cmake and nasm:
Don't know if it matters, but I adapted the PATH variable for the location of NASM only for the Powershell I used for the build process.
Furthermore:
3cc48d3e0a9b16010d570c518c98998873a8d6aa
openssl_keys
openssl_keys
I created the keys as described in theCMakeLists.txt
in thesrc
directory:I manually created the file
public_key_tools.txt
which contains only a single line of text:public_key_tool.pem
The directory
build\openssl_keys
contains:So far, so good. I cd to the build directory and tried to follow the build instructions provided in
src\README
, which appear to be incomplete. I had to add the key file path definitions to the cmake command to get it running without error:You can infer my directory structure from the paths provided above. I cloned the repo to the folder
C:\myprogs\repos2\semla
s.t.C:\myprogs\repos2\semla\src
is the semla source directory. You can ignore the backtics`
, these are just needed for linebreaks in powershell.Here's the output of the cmake command:
cmake_log.txt
It seems to work fine. There's some file path weirdness as slashes
/
and backslashes\
occur both. However, this doesn't seem to faze cmake as no error is thrown. I'm a bit puzzled why cmake assumes a 32bit target.In the next step I tried to build the code via
cmake --build . --config Release --target install
and everything works fine until the compilation fails with
So, openssl is successfully built. The file paths openssl is copied to (e.g.
C:/myprogs/repos2/semla/build/openssl/myprogs/repos2/semla/build/openssl/bin/openssl.exe
) are a bit weird to me, but I don't know whether that matters. Sth's wrong withopenssl\Program Files\OpenSSL\lib\libssl.lib
which is indeed not the file path the compiled openssl is copied to?I can also post the whole stdout/stderr streams during compilation if that helps?
At the obfuscator module, the build fails. I tried to only build the obfuscator module but I got the same error:
So, to sum up:
/src/README
appear to be incomplete for the windows build. Would be great if you could take a look at that.The text was updated successfully, but these errors were encountered: