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

macOS Mojave update #5

Open
mePy2 opened this issue Oct 31, 2018 · 34 comments
Open

macOS Mojave update #5

mePy2 opened this issue Oct 31, 2018 · 34 comments

Comments

@mePy2
Copy link

mePy2 commented Oct 31, 2018

No description provided.

@mePy2 mePy2 changed the title macOS Mojave support macOS Mojave update Oct 31, 2018
@tambovchanin
Copy link
Owner

You can't launch it on Mojave?

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

Hi, thank you for your reply! I didn’t expect it xD

Unfortunately no...
twain-sane-interface-macos

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

I would compile your project from the source with the Mojave SDK. But I need some help, I tried to build it from the original source code on Mattias Ellert site but nothing. (I didn’t want to install the gettext library) also, I installed libusb from homebrew too, instead the M. E. source code search the libusb lyb into another directory.

PS:
Could you please put your source code on GitHub too? Also for the openness of the project itself.

@tambovchanin
Copy link
Owner

Will check all again

@tambovchanin
Copy link
Owner

I would compile your project from the source with the Mojave SDK. But I need some help, I tried to build it from the original source code on Mattias Ellert site but nothing. (I didn’t want to install the gettext library) also, I installed libusb from homebrew too, instead the M. E. source code search the libusb lyb into another directory.

PS:
Could you please put your source code on GitHub too? Also for the openness of the project itself.

I am get sources from official site http://www.ellert.se/twain-sane/

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

Ah oh, ok, thank you. I thought you modified them. So you just run the build.sh in the source folder?

@tambovchanin
Copy link
Owner

tambovchanin commented Mar 13, 2019 via email

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

Could you please link where you picked the sdks from? I would like to make my installation as similar to yours as possible. Did you install libsub from Homebrew or from source?

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

If you agree, we could start a kind of documentation for the Mattias Ellert source. I’m curious how does his code work.

@tambovchanin
Copy link
Owner

tambovchanin commented Mar 13, 2019 via email

@mePy2
Copy link
Author

mePy2 commented Mar 13, 2019

Sources on GitHub ср, 13 мар. 2019 г., 16:47 Umberto [email protected]:

What do you mean?

@mePy2
Copy link
Author

mePy2 commented Mar 18, 2019

Hi @tambovchanin. Could you please post all the links where I have to download the sources? I can do it, but I want to be sure I’m taking your same packages. Thank you

@genose
Copy link

genose commented Mar 27, 2019

Hi everyone,
I got the same issue as @mePy2 with MacOS Sierra 10.12.6, installer says "it was compiled on MacOS 10.11" ... and more

But by using the ancestral PackageMaker.app (fun app and usefull for creating and validate PKG for 10.4 to 10.6), i was able to re-PKG the bundle Project and install it ...

BUT, NOTHING appear in ImageCapture.app ...

BUT, on command line ;; scanimage --format jpg > test.jpg ;; my old Canon N670U (Lide20 compliant) revive and i got a nice scan sample.
BUT a second use of this command and came the drama of "scanimage: no SANE devices found"
BUT if i un-plug and re-plug my scanner, ;; scanimage --format jpg > test.jpg ;; work again.

Also got an error with my UMAX 1200SE : ;; scanimage: open of device artec_eplus48u:libusb:002:001-05d8-4010-00-00 failed: Invalid argument ;;

SO, therefore maybe, i propose to Team up i'm in !!

Configuration : MacOS 10.12.6 with XCode 7.2.1 (Customised, SDK 10.4 to 10.11) + XCode 9.2 (standard SDK, )
Scanner : Canon N670U + Umax 1200SE + Canon Lide20
Test Suite : MacOS 10.12.6 + MacOS 10.10.5 + MacOS 10.11.xxx

Regards.

@mePy2
Copy link
Author

mePy2 commented Mar 28, 2019

Nice idea. I’m in too!

I think it’s not so difficult since Mattias Ellert made all the work. I just have to figure out how to install the sources...

About your problem (unplug and plug the scanner) I think I have already read something. Search in the forums/Google.
Anyway I would like everything to work as expected.

Again, I’m in. I need some help though.

Best

@mePy2
Copy link
Author

mePy2 commented Mar 29, 2019

Please guys, let’s activate ourselves! We should be able to solve it quickly.

@genose
Copy link

genose commented Apr 1, 2019

Yeah Absolutly, let's organise ...
What we got here, projects plannings funs Yeah !!

To improve our scalability and project success, may we first resume which are ours dev configurations, futheremore to help understanding issues and share efficiently ours Skils and knowledges, doesn't we ?

Last Time, i've a bit introduce myself and resume some resolution on how i unbrick the actual PKG, and obtain some encouraging or disgracefull results
#5 (comment)

// 1 // / ***************************************
Well i identify some ancestral recursive "not so issues" in your released package @tambovchanin, not blaming you see scripts are more than 2 years for now.

in M.E Sources you got 2 lines comparing System version
(system.compareVersions(system.version.ProductVersion, '@MACOSX_DEPLOYMENT_TARGET@') < 0) ||
(system.compareVersions(system.version.ProductVersion, '@MACOSX_DEPLOYMENT_TARGETX1@') >= 1 ))

Where MACOSX_DEPLOYMENT_TARGETX1 == Upper Version of Targetted Version
MACOSX_DEPLOYMENT_TARGET == Lower Version you Targetted or here the SDK Version

// 2 // / ***************************************
I made some "correction" (adaptative path select ) on build.sh, to find the Rigth XCode installation, Yes i Got Two(2) of them on my mac at least !!

Because XCode 7.2 is the only version reliable for compiling this project without errors ...
and on XCode 9.2 / LLVM 9.0 / GCC 5.1, i got some strange wrong configuration flags for Cxx like "Back In Time machine" mode causing vanishing data type (u_long, uint) nor SDK was ignored.

// 3 // / ***************************************
Does it install Package ? YES, for 12.12.6
Just for based on 10.11 SDK
We on the way @mePy2

par défaut 2019-04-01 à 20 16 14

// 4 // / ***************************************
Does it Work, Almost because BUGS ...

i've just understand how SANE find Scanner ... Mostly by Vendor ID for USB Descriptors

searching for USB scanners:
found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001:002-04a9-220d-ff-00

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:002:001-04a9-220d-ff-00

found USB scanner (vendor=0x05ac [Apple Inc.], product=0x8215 [Bluetooth USB Host Controller]) at libusb:003:002-05ac-8215-ff-01

user@localhost$ scanimage -x 100 -y 100 --format=tiff >image.tiff
scanimage: sane_start: Error during device I/O
user@localhost$ scanimage -x 100 -y 100 --format=tiff >image.tiff
scanimage: no SANE devices found

BUT, my Bluetooth antenna really not a scanner
So this is, ** almost ** why the backend fail

// 5 // / ***************************************
Some mind appointments ...

  • HomeBrew Packager is certainly nice to obtain the best version of librairies, adapted and compatible with your Running MacOS, but our can bundle some magical wizard spell in the compilation process and running an installation pre-fligth script

  • TWAIN Interface, is why i'm here, so i personally want to maintain it, beside Adobe Photoshop (up to version 2015), want to Drop the support of TWAIN Integration

  • Other pre-requirement are not install in the same time, it's quite annoying

  • Take the fly on Official Release ( https://gitlab.com/sane-project ) and report / patch to our platform and make PKG for it

  • it took me the afternoon to obtain thoses result and it's not some fun, cause after i had to commit my modification to the public

So, an XCode Project with GitHub / GitLab Repo integration is necessary to make all our effort possible and mergeable in one nice maintened project.

Regards.

@mePy2
Copy link
Author

mePy2 commented Apr 3, 2019

Hi, I read your email immediately, two days ago but I didn’t reply since I wasn’t at home. I am seriously in in this project since I would like to continue maintaining it too. I will try my best since I am not really a programmer and things.

I know their official GitLab repo too (where I submitted this problem) and seems they have no macOS developer to help them. So making a network between us (macOS users/developer) is really important IMO.

I think we should open a new repo too. GitHub or GitLab is fine for me. @genose I would give Mattias Ellert source a try instead of looking into the prebuilt pkg.
If you want, create this repo and add me. I would like to start asap.

Best

@genose
Copy link

genose commented Apr 3, 2019

Hi everyone !
@mePy2, in fact i used the sources of Mattias Ellert in first place to build thoses PKG you've seen in my last pictures.
With just a little code-Reviews / code-updates in place to make it all work Nice, and it finish in a PKG formula

I hate complicated compile / built thing procedure with less chance of success than an fully tested and approuved PKG, a user still a non technician nor he shall buy a new Scanner for less time and more confort

I say NO to Planned Obsolence and further Capitalism non-sense.

So, for now, I Create a New Branch with my corrections : https://github.com/genose/macos-sierra-sane-binaries

Next, may i'll accept to join GitLab and make a Maintener Request if Mattias Ellert doesn't work on it anymore

@tambovchanin , has a Fork of your repository i still concern about your further work and participation

Regards.

@mePy2
Copy link
Author

mePy2 commented Apr 3, 2019

I’m sorry I didn’t know about it.

I say NO to Planned Obsolence and further Capitalism non-sense.

I agree 100%.

I am planning to create a macOS standalone app too in the future, so people can install the app directly and use their scanner. Simplest solution IMO.

@genose
Copy link

genose commented Apr 3, 2019

Hi Everyone,
@mePy2, not quite sure to understand, did you mean an
Standalone apps (Like ImageCapture.app) using TWAIN Support via SANE TWAIN Project ?
or
Standalone apps like the most popular All-in-One is [VueScan]
or
Standalone Installation PKG Apps against 5 PKG ?

in all Case, once all was Released, for better compatibility a custom or commercial App must use TWAIN interface SDK
i've see some docs and sources on developper.apple.com but many are old fashion SDK or about IOS SDK

Also, on [TWAIN.org]
or some SDK belong the language you will using

Hope to find the way
Regards.

@mePy2
Copy link
Author

mePy2 commented Apr 3, 2019 via email

@genose
Copy link

genose commented Apr 9, 2019

Hi everyone,
i've had confirmation to began as the Holy-maintainer for MacOS on TWAIN SANE Project.
(sorry I shine in my head, so happy, not so humble about me actually, such a fool ... )
It seems, [FR] Hélas chers amis [/FR] , Mathias Ellert had no more interest in project.

Comment the code ... this was based on official 1.025 Release, all other things is just XCode-kind and an Knowledge in XCode's background , Well ... i 've understand, you are some sort of begeneer in C/C++ , but here, all is about MacOS Programming things and backgrounds ...

A Video will be just a tutorial on MacOS Programming Class Session 101 ... YES I can give a try ...
Also i've already explained why and HOW doing it in preview messages

But in all case i'll will provide a more effecient way to build and generate further version (Developer only), PKG Release for all users.
and Stopping write on this topic to done a more adapted one otherwhere else

For Now, i'll trainning on how TWAIN SANE work and How adapt it on 10.13 and 10.14, but cause of some identified issues on 10.12, i've decide to NOT release and let PKG work on this system version

Safety is number one Priority

Let me know you opinions.
Regards

@mePy2
Copy link
Author

mePy2 commented Apr 9, 2019

Hi @genose I don’t know why but I find somehow “difficult” sometimes understand what you want to say xD. Anyway I’m really happy you became the maintainer of it. Still I do not understand very well... what "TWAIN SANE Project” are you talking about?

About commenting, I just gave a quick look at the code and I thought I needed just few explanation of it to better understand how to collaborate to the project. What do you mean with Xcode-kind? What are you referring to?

Anyway, yes, a new Project is required in my opinion. I would suggest opening a new GitLab/GitHub repository.

I think we should start to work all together right now.

Recently I was looking for a macOS native alternative to libusb work. What do you think about?

@genose
Copy link

genose commented Apr 9, 2019

hi everyone,
hummm, how could i say ... in the past i worked with usb 1.1 device with native MacOS (10.4) and it was a bit hard ... so many stuff to handle ... libusb was a great superset to work with, but not always efficient than Native MacOS API was (yeah cause libusb it's a superset / wrapper on it )

TWAIN SANE [Project] Yeap, it's the Sane Project, i'm just obcessed by the revive of TWAIN Support

I don't know so much on how Sane source's are, but i'm work on it

about "XCode-Kind" i mean : all the heck in command line to build a project and assemble all binary to form a valid PKG, cause the build.sh in Mattias Ellert sources use that

Yep, i'm [translate.google.fr] sometime / somehow to write messages, but i'm also a bit sarcastic

GitHub / GitLab, i agree ... once i'm update my Repo ...

Regards.

@mePy2
Copy link
Author

mePy2 commented Apr 9, 2019

@genose Ok. Thank you. Keep us updated! :)

@mePy2
Copy link
Author

mePy2 commented Apr 16, 2019

How is going? @genose

@genose
Copy link

genose commented Apr 16, 2019

I Everyone,
i'm a bit busy until May 2019; cause of Personal Project, just some J2EE Learning Course ...

Yeah nothing about Twain-Sane,
Hope to Release a test drive for 10.13 this week (Just Stupidly unleash restriction of actual package version) and after that, make some correction and after that, unleash the power of current 1.27 Official version ...

And after that TWAIN, TWAIN, TWAIN ... Photoshop must give it to me !!

Hope we'll enjoy it.
Regards.

PS : i'd like now to engage new post in this repo : https://github.com/genose/macos-sierra-sane-binaries

@mePy2
Copy link
Author

mePy2 commented Apr 17, 2019 via email

@genose
Copy link

genose commented Apr 24, 2019

Hi everyone,
check newly posted updates for MacOS 10.13 ...

This release is just an unlocked revision of current Mattias Ellert sources

Got some issues to compile sane-backend with 10.13 SDK (some libcrypto version issues), this shall resolved soonly

Take a look on https://github.com/genose/macos-sierra-sane-binaries

Let me know your feedback
Regards.

@mePy2
Copy link
Author

mePy2 commented Apr 30, 2019

Hi @genose,

Give a look at this thread. Could be this the problem why sane-backends doesn’t work on macOS?
https://alioth-lists.debian.net/pipermail/sane-devel/2019-April/036715.html

Best

@cfont
Copy link

cfont commented May 1, 2019

Hi everyone,
check newly posted updates for MacOS 10.13 ...

This release is just an unlocked revision of current Mattias Ellert sources

Got some issues to compile sane-backend with 10.13 SDK (some libcrypto version issues), this shall resolved soonly

Take a look on https://github.com/genose/macos-sierra-sane-binaries

Let me know your feedback
Regards.

for some reason, @genose , I cannot create a new issue to start a conversation on your repo. Actively, watching/waiting/following...

@mePy2
Copy link
Author

mePy2 commented May 1, 2019 via email

@genose
Copy link

genose commented May 2, 2019

Hi everyone,
I Just have enabled Wiki, Issues, Feature Report
feel free to leave some requests ...

Time to move on.
https://github.com/genose/macos-scanner-interface-twain-sane-binaries/issues

Thanks for your support.
Regards.

PS:
@tambovchanin, are you still there, someone to merge request ?

https://github.com/genose/macos-sierra-sane-binaries

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

4 participants