GithubHelp home page GithubHelp logo

Comments (11)

levlam avatar levlam commented on May 1, 2024 2

Have you installed gperf and added path to it to the %PATH% environment variable?

from td.

savely-krasovsky avatar savely-krasovsky commented on May 1, 2024 2

After installing Windows 10 SDK with VS Build Tools installer it compiled. Don't know what it was.

from td.

savely-krasovsky avatar savely-krasovsky commented on May 1, 2024

@levlam I also have such problem. Did all as said in instruction. gperf is working fine from cmd (of course everywhere, not only in his directory).

from td.

aliakbarhamzeh1378 avatar aliakbarhamzeh1378 commented on May 1, 2024

@levlam yeah. i install gperf completly

from td.

levlam avatar levlam commented on May 1, 2024

Could you try to manually run from the <path to TDLib sources>/tdutils/generate/ directory command
powershell -ExecutionPolicy ByPass " & gperf -m100 --output-file=auto/mime_type_to_extension.cpp auto/mime_type_to_extension.gperf"?

from td.

savely-krasovsky avatar savely-krasovsky commented on May 1, 2024

I can't use it with Golang, so just publish here precompiled binaries, maybe will be usefull for someone:
https://drive.google.com/open?id=17xL9TVWlsuPyok7j6FgZ-BJhsV1ZocjE
MSVC, x64.

from td.

Hamper avatar Hamper commented on May 1, 2024

L11R: you build is x32, not x64
From dumpbin /headers tdjson.dll:

FILE HEADER VALUES
             14C machine (x86)

from td.

Hamper avatar Hamper commented on May 1, 2024

This is win64 build: https://drive.google.com/open?id=1j2AADHKj2NJi1LrXoC63oPAqlYf09fP5

For build you need gperf in PATH, vcpkg and cmake
If you want build x64 version you need use x64 vcpkg triplet and x64 cmake generator:

.\vcpkg --triplet x64-windows install openssl zlib
[go to td dir]
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=C:\src\vcpkg\scripts\buildsystems\vcpkg.cmake -DVC
PKG_TARGET_TRIPLET=x64-windows -DCMAKE_GENERATOR_PLATFORM=x64 ..
cmake --build . --config Release

from td.

ras0219-msft avatar ras0219-msft commented on May 1, 2024

We (vcpkg) should detect VCPKG_TARGET_TRIPLET correctly, so it should work with just:

cmake .. -DCMAKE_TOOLCHAIN_FILE=…/vcpkg.cmake -A x64

from td.

isopen avatar isopen commented on May 1, 2024

@ras0219-msft Please tell your colleagues that it's impossible to use windows 10 in the modern world.
For coding in general, a terrible operating system. The speed of my hands is higher than the speed of the operating system.
Please.

from td.

levlam avatar levlam commented on May 1, 2024

Error message, shown when gperf is not found, should be much better in TDLib 1.2.0.

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.