-
Notifications
You must be signed in to change notification settings - Fork 16
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
path to lib #2
Comments
Hi, I didn't test it on Windows, but have you tried to define e.g.: const client = new Client({
...options,
binaryPath: './libtdjson',
}) |
Yes. But I get |
What architecture is your Windows and Node.js? 32bit or 64bit? |
64bit (windows and node). |
Are you using 32bit installation of Visual Studio? |
I tried to build tdlib on Windows but no luck. To make your life easier I suggest you build and run tdlib on Linux / macOS. |
64bit studio, I have both build for 64bit and 32bit, but same. |
It's not detect required dll (zlib) if it not in same folder as script dirty hack: const binPath = path.normalize(`${__dirname}/tdlib64/`);
process.env.Path += `;${binPath}`;
const client = new Client({
...options,
binaryPath: `${binPath}/tdjson.dll`
}); |
So is your problem solved now? |
Yes. Thanks! |
Hi. How to define path to tdlib in windows?
The text was updated successfully, but these errors were encountered: