Skip to content
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

build package for windows error #45

Open
zzerding opened this issue Sep 22, 2020 · 0 comments
Open

build package for windows error #45

zzerding opened this issue Sep 22, 2020 · 0 comments

Comments

@zzerding
Copy link

hi
i want build package for windows.I build tdlib based on this URLto get directory /src/

├── bin
│   └── tdjson.dll
├── include
│   └── td
│       ├── telegram
│       │   ├── Client.h
│       │   ├── Log.h
│       │   ├── td_api.h
│       │   ├── td_api.hpp
│       │   ├── td_json_client.h
│       │   ├── td_log.h
│       │   └── tdjson_export.h
│       └── tl
│           └── TlObject.h
└── lib
    ├── cmake
    │   └── Td
    │       ├── TdConfig.cmake
    │       ├── TdConfigVersion.cmake
    │       ├── TdTargets-release.cmake
    │       └── TdTargets.cmake
    ├── tdactor.lib
    ├── tdapi.lib
    ├── tdclient.lib
    ├── tdcore.lib
    ├── tddb.lib
    ├── tdjson.lib
    ├── tdjson_private.lib
    ├── tdjson_static.lib
    ├── tdnet.lib
    ├── tdsqlite.lib
    └── tdutils.lib

how setting cgo LDFLAGS?

original:

//#cgo windows CFLAGS: -IC:/src/td -IC:/src/td/build
//#cgo windows LDFLAGS: -LC:/src/td/build/Debug -ltdjson

i set:
//#cgo windows CFLAGS: -IC:/src/include 
//#cgo windows LDFLAGS: -LC:/src/lib  -tdactor  -tdapi  -tdclient   -tdcore  -tddb  - tdjson  -tdjson_private -tdjson_static  -tdnet -tdsqlite  -tdutils

Unfortunately it cannot be used!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant