Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
There is no link or explicit instruction on how to download NACL c++ source code for Windows even on its official website. Can anyone here point me in the right direction?

What I have tried:

I have spent hours searching the web.
Posted
Updated 24-Mar-24 6:04am
v2

See: NaCl Installation[^]

That's fairly clear on how to download and compile the source. NaCl seems to be a mixture of C, C++ and assembler. It does not appear to be a pure C++ project. If you're looking for pure C++ code for NaCl, I think you're out of luck.
 
Share this answer
 
Comments
Gbenbam 25-Mar-24 6:59am    
Is there an already compiled library that I can use?
k5054 25-Mar-24 10:17am    
I missed the part where you were looking for a Windows version. There's no mention of windows AFAICS on the web site, and the Wikipedia page https://en.wikipedia.org/wiki/NaCl_(software) only shows that the supported OS is "Unix Like". So it seems that it's unlikely you're going to find Windows specific source. However, the source is available. You should be able to download the tar file from the web site. I'm not up on how well Windows does with bzipped tar files, but there must be loads of solutions out there. Or you could install WSL and play with Linux inside your windows environment.
Gbenbam 25-Mar-24 7:02am    
What does their site mean by install. I wanted was codes to download.
The source code to be found under the link is actually not directly prepared for Windows. In addition to incompatible shell scripts, Linux system calls and some assembler instructions, the "do" scripts create a lib for the current architecture.
It is possible to use Linux functions with WSL2 under Windows. In Powershell you can start wsl and then call ./do without any problems. Surprisingly, there is not a single message, but everything is assembled in the build folder in the background. Under ./lib/amd64/ is the libnacl.a and there is an include directory so that it could be used with gcc in this context.
 
Share this answer
 
v2
Comments
Gbenbam 25-Mar-24 6:57am    
So, in short, I can't build it with visual studio. I would need both gcc and WSL2.

Is there an already compiled library that I can use?
merano99 25-Mar-24 13:07pm    
I did not see a download option for the compiled file, but I was able to create it without any significant effort. As I had already set up the WSL2, only three simple steps were necessary. Download with wget, unpack and call "do". If it helps I could provide the result.
Although I have not tested it with these files, Visual Studio can also be used to conveniently edit Linux-based programs remotely. But in the end, programs are created that are based on the Linux API.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900