Hello all,
Sorry for the long and messy post but I am juggling with concepts I dont fully understand.
My goal (self-imposed as a way to learn Objective-C/Cocoa) is to create a Mac app for creating QR Codes (the 2D barcodes). I dont want that my app relies on another website (zxing or kaiwa for example) for doing all the work and I found a C library (libqrencode) that seems to fit the bill. Now come the questions
According to the documentation of this library I must build it using ./configure, make, make install. I understand this for a program but not so well for a library. What will be the result of the build? A .dylib file?
When I try to build the library the official way, the compiler tell me that I need to have the library libpng installed. I understand that this library is replaced in Cocoa by another so it gives me 2 choices :
- I install libpng and go on. Easier (or rather less difficult) but not very satisfying and I think my app using libpng would never makes it to the App Store (one can dream )
- I rewrite the part of the library using libpng (I found only 1 function using it). Much more difficult and much more satisfying.
My first try (quick and dirty) was to include all the .c and .h files of the sources directly in my project. Is it feasible? Acceptable?
And last but not least, is this legit? The library is licensed under the GNU Lesser General Public License. I understand that I can use it in a commercial software?
I have tried first to google my way out of these questions but I have been overwhelmed by all the information I found
Thank you,
Paul
Sorry for the long and messy post but I am juggling with concepts I dont fully understand.
My goal (self-imposed as a way to learn Objective-C/Cocoa) is to create a Mac app for creating QR Codes (the 2D barcodes). I dont want that my app relies on another website (zxing or kaiwa for example) for doing all the work and I found a C library (libqrencode) that seems to fit the bill. Now come the questions
According to the documentation of this library I must build it using ./configure, make, make install. I understand this for a program but not so well for a library. What will be the result of the build? A .dylib file?
When I try to build the library the official way, the compiler tell me that I need to have the library libpng installed. I understand that this library is replaced in Cocoa by another so it gives me 2 choices :
- I install libpng and go on. Easier (or rather less difficult) but not very satisfying and I think my app using libpng would never makes it to the App Store (one can dream )
- I rewrite the part of the library using libpng (I found only 1 function using it). Much more difficult and much more satisfying.
My first try (quick and dirty) was to include all the .c and .h files of the sources directly in my project. Is it feasible? Acceptable?
And last but not least, is this legit? The library is licensed under the GNU Lesser General Public License. I understand that I can use it in a commercial software?
I have tried first to google my way out of these questions but I have been overwhelmed by all the information I found
Thank you,
Paul
Last edited: