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

Update build.rs #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update build.rs #10

wants to merge 2 commits into from

Conversation

voidbar
Copy link

@voidbar voidbar commented Jul 7, 2024

Please don't merge until this is tested

@voidbar voidbar mentioned this pull request Jul 7, 2024
@pbl007
Copy link
Contributor

pbl007 commented Jul 7, 2024

Hi. Compiled successfully(!) with a few warnings:

⚠️ Warning: You specified maturin >=1.6, <1.7 in pyproject.toml under build-system.requires, but the current maturin version is 1.7.0

warning: the following packages contain code that will be rejected by a future version of Rust: nalgebra v0.26.2

⚠️ Warning: Couldn't find the symbol PyInit_librpysight in the native library. Python will fail to import this module. If you're using pyo3, check that #[pymodule] uses librpysight as module name

Should I merge?

Thanks again!

@voidbar
Copy link
Author

voidbar commented Jul 8, 2024

I've fixed the first warning.
If you manage to build and run the project correctly, you can go ahead and merge this

@pbl007
Copy link
Contributor

pbl007 commented Jul 8, 2024

cargo run cli --release returns
Finished dev profile [unoptimized + debuginfo] target(s) in 52.36s
warning: the following packages contain code that will be rejected by a future version of Rust: nalgebra v0.26.2
note: to see what the problems were, use the option --future-incompat-report, or run cargo report future-incompatibilities --id 1
Running target\debug\cli.exe cli --release
error: process didn't exit successfully: target\debug\cli.exe cli --release (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

When calling the executable (.\target\release\cli.exe) does nothing instead of creating the log file and popping up 4 windows.

I tried adding a simple println!("starting rpysight"); and rebuilding but got the same behavior.

@voidbar
Copy link
Author

voidbar commented Jul 9, 2024

This issue is that I don't have a windows machine to test this on. Do you know if this expected to work on Mac?
Anyway, i'll try to get to it tonight

@pbl007
Copy link
Contributor

pbl007 commented Jul 9, 2024 via email

@voidbar
Copy link
Author

voidbar commented Jul 9, 2024

What happens when you run target\debug\cli.exe through the terminal?
Also, there should be a log file in target/rpysight.log, could you see if there anything there?

@pbl007
Copy link
Contributor

pbl007 commented Jul 10, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants