openbarcode icon indicating copy to clipboard operation
openbarcode copied to clipboard

How to compile this.

Open mdavis777 opened this issue 7 years ago • 3 comments

It seems to have a dependency on getgit.cmake. I found a few getgit.cmakes on the web and in each case it just leads to another build error farther down the line.

mdavis777 avatar Jun 23 '17 16:06 mdavis777

I had a similar problem, I found https://raw.githubusercontent.com/tora-tool/tora/master/cmake/modules/getgit.cmake and threw it in the libopenbarcode directory, then I had to fix the toolkit link, then I had to make the file openbarcode_version.h and put the following defines in it:

#define OPENBARCODE_VERSION "1"
#define OPENBARCODE_BUILDDATE "today"

And then it compiles and generates a commandline app that can run. I had to fix the hardcoded path directory "/Users/tzaman/Dropbox/code/openbarcode/sample_images/C39/" but looking closer at the code it appears this is really not ready at all...

satur9nine avatar Sep 28 '17 19:09 satur9nine

I accept PRs!! :-)

On Thu, 28 Sep 2017 at 12:50, Jacob Abrams [email protected] wrote:

I had a similar problem, I found https://raw.githubusercontent.com/tora-tool/tora/master/cmake/modules/getgit.cmake and threw it in the libopenbarcode directory, then I had to fix the toolkit link, then I had to make the file openbarcode_version.h and put the following defines in it:

#define OPENBARCODE_VERSION "1" #define OPENBARCODE_BUILDDATE "today"

And then it compiles and generates a commandline app that can run. I had to fix the hardcoded path directory "/Users/tzaman/Dropbox/code/openbarcode/sample_images/C39/" but looking closer at the code it appears this is really not ready at all...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TimZaman/openbarcode/issues/1#issuecomment-332945210, or mute the thread https://github.com/notifications/unsubscribe-auth/AHXSRKHMBLxkD0zIqUcSoqTgNs6m-KMJks5sm_iagaJpZM4ODxyf .

TimZaman avatar Sep 28 '17 21:09 TimZaman

I had a similar problem, I found https://raw.githubusercontent.com/tora-tool/tora/master/cmake/modules/getgit.cmake and threw it in the libopenbarcode directory, then I had to fix the toolkit link, then I had to make the file openbarcode_version.h and put the following defines in it:

#define OPENBARCODE_VERSION "1"
#define OPENBARCODE_BUILDDATE "today"

And then it compiles and generates a commandline app that can run. I had to fix the hardcoded path directory "/Users/tzaman/Dropbox/code/openbarcode/sample_images/C39/" but looking closer at the code it appears this is really not ready at all...

I have a similar problem,Could you please email me the project you solved? [email protected] Thank you very much

jeacwen avatar Jul 27 '22 08:07 jeacwen