|
|
Home » U++ TheIDE » U++ TheIDE: Packages » Third-party lib packing HOWTO anybody?
Third-party lib packing HOWTO anybody? [message #32413] |
Tue, 17 May 2011 05:38 |
|
Hi, %all%!
My situation is that I have to use some libs in my project (it's SDK for industrial cameras - in attachment). Now I would like to make a package containing headers and libs, making project easily distributable.
Click-it-all strategy doesn't help much (that's not a good thing BTW, but nevermind). Tried reading help and some topics around here but still can't get hang of mechanics.
Could you please explain me how do I make package I need?
-
Attachment: CPP.rar
(Size: 82.32KB, Downloaded 384 times)
|
|
|
|
|
|
|
|
|
Re: Third-party lib packing HOWTO anybody? [message #32468 is a reply to message #32466] |
Thu, 19 May 2011 10:04 |
|
GaroRobe wrote on Thu, 19 May 2011 08:39 | Aha - makes sence!
And is there any way to hard-code such requirements into packages? Like distribute libs in packages leaving only path requirements for the runtime?
|
Yes, it can be done... altough it is not widely used You would have to specify the path in Project->Package organizer, adding a new link option (using context menu on right click in the right pane) and fill in something like -L../relative/path/to/lib/. The problem is that the syntax for GCC/MINGW is different than MSVC (don't know precise syntax), so you would have to add two separate entries, with when flags MSVC and !MSVC.
You could also use the very same way to directly add the lib into the linking command line. It might be simpler, but I am not sure if there aren't any hidden problems...
Best regards,
Honza
|
|
|
|
Re: Third-party lib packing HOWTO anybody? [message #32472 is a reply to message #32471] |
Thu, 19 May 2011 16:31 |
|
GaroRobe wrote on Thu, 19 May 2011 14:35 | "Not widely used"? And what's the downside of this approach?
|
The only downside is that you have to write it separately for each compiler, but that is not the reason why it is not used. The real reason is that it is rarely needed U++ is build around opensource libraries so they can be used in the form of source code, hence there is no need to distribute the libraries. Of course, I understand that sometime one has to use a proprietary library, but it is not very often. So that is why I said it is not widely used I believe that most of the programmers are lazy poeple, so when they find out they are using library that is not in path, they just add it in their global settings (in build methods, as Koldo showed you) and forget about it Both solutions are valid, one is simple for you while the other one makes it simple for people to whom you distribute your packages.
Honza
|
|
|
Re: Third-party lib packing HOWTO anybody? [message #32479 is a reply to message #32472] |
Fri, 20 May 2011 01:22 |
|
Okay now, guess I'm goin' a bit off the topic, but...
Could you please help me make this example run? It built without a prob now (a good thing), but crashes immidiately (a bad thing). Moreover, it crashes before a single step in debugger is performed and, half the times, drags TheIDE along to the nothingness (which is annoying).
Where should I start looking?
UPD: In x64 it actually complained not finding some dlls. Adding few from GenICam package made application launch, but I cannot debug it (because it is x64?).
The same trick with dlls didn't help with x86 version - still doesn't run.
[Updated on: Fri, 20 May 2011 03:20] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue Sep 10 13:50:54 CEST 2024
Total time taken to generate the page: 0.02244 seconds
|
|
|