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

[Bug] Help with building #152

Closed
Ujhhgtg opened this issue Jul 30, 2023 · 12 comments
Closed

[Bug] Help with building #152

Ujhhgtg opened this issue Jul 30, 2023 · 12 comments
Labels
good first issue Good for newcomers not-bug This is caused by your invalid operation

Comments

@Ujhhgtg
Copy link

Ujhhgtg commented Jul 30, 2023

When I tried to build this with command cargo build --release --all-features, an error appears (I have installed ffmpeg which provides the libavformat.so library):

error: could not find native static library `avformat`, perhaps an -L flag is missing?

error: could not compile `prpr-avc` (lib) due to previous error

System Info:

system: Arch Linux - up to date
cargo: 1.71.0
rustc: rustc 1.71.0 (8ede3aae2 2023-07-12) (Arch Linux rust 1:1.71.0-1.1)
@Mivik
Copy link
Contributor

Mivik commented Aug 1, 2023

prpr-avc requires some prebuilt avcodec binaries to run. You can download them here. Unzip the static-lib folder and put it into prpr-avc

@Mivik Mivik closed this as completed Aug 1, 2023
@Mivik
Copy link
Contributor

Mivik commented Aug 1, 2023

If lucky enough you can just use the one built on mine. Otherwise just reopen this issue and I'll complete the build from source docs.

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 3, 2023

Thanks a lot for your help! However I see that building requires some closed source code (inner.rs).

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 3, 2023

What does it contain? Can you release the file without sensitive information?

@Mivik
Copy link
Contributor

Mivik commented Aug 3, 2023

What does it contain? Can you release the file without sensitive information?

That part of code contains record uploading and thus cannot be leaked. You can just build without them, resulting in a version without record uploading ability.
A full build requires the "closed" feature and inner.rs.

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 9, 2023

However I CANNOT build without the inner.rs file......

@Mivik
Copy link
Contributor

Mivik commented Aug 9, 2023

However I CANNOT build without the inner.rs file......

inner.rs is required only if the closed feature is on. Please post your errors.

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 11, 2023

Sorry, my bad. (I add the --all-features options to cargo by default...)

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 11, 2023

Thanks a lot for your help!

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 11, 2023

If lucky enough you can just use the one built on mine. Otherwise just reopen this issue and I'll complete the build from source docs.

Just the last question - how do I build the static-libs? (since I'm writing a PKGBUILD)

@astro-angelfish
Copy link

If lucky enough you can just use the one built on mine. Otherwise just reopen this issue and I'll complete the build from source docs.

Just the last question - how do I build the static-libs? (since I'm writing a PKGBUILD)

how about just directly pull the binary from the Release page instead of building from source when something should not be leaked?

@Ujhhgtg
Copy link
Author

Ujhhgtg commented Aug 15, 2023

I'm writing a -git PKGBUILD...

@sjfhsjfh sjfhsjfh added good first issue Good for newcomers not-bug This is caused by your invalid operation labels Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers not-bug This is caused by your invalid operation
Projects
None yet
Development

No branches or pull requests

4 participants