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

Compile IPbus as static library #159

Closed
dinardo opened this issue Oct 24, 2019 · 4 comments
Closed

Compile IPbus as static library #159

dinardo opened this issue Oct 24, 2019 · 4 comments

Comments

@dinardo
Copy link

dinardo commented Oct 24, 2019

Dear experts,
would it be possible to compile IPbus as a static library?
I'm not an expert of make files, how shall I do that?

Many thanks,

  • Mauro.
@tswilliams
Copy link
Collaborator

Hi,

The makefiles did not include the commands required for static libraries, but I've now added those commands to the task/static-linkage branch.

If you're in urgent need to produce statically-linked applications that are based on uHAL then checking out that branch (commit 60c2c44), and running make with BUILD_STATIC=1 should produce statically-linked libraries successfully. I.e:

git clone --depth=1 -b task/static-linkage  https://github.com/ipbus/ipbus-software.git
cd ipbus-software/uhal
make BUILD_STATIC=1

I still want to make one or two changes to this branch (related to unit tests) before merging it, so it won't be merged until the end of the week, but based on my tests so far, the the main library should already work correctly.

Cheers,
Tom

@dinardo
Copy link
Author

dinardo commented Nov 6, 2019

Hi Tom,
ok git it.
Many thanks,

  • Mauro.

@tswilliams
Copy link
Collaborator

Brief update: There was actually a makefile bug in the previous commit (that only affected the uhal/tests package. I've just pushed a new commit to the task/static-linkage branch (commit 9c31975) that resolves that problem.

@tswilliams
Copy link
Collaborator

tswilliams commented Jan 17, 2020

Brief update: The changes from the branch mentioned above have now been merged into the master branch, and will be included in a new release - version 2.7.0 - that will be created in the next week.

jhegeman pushed a commit to jhegeman/ipbus-software that referenced this issue Dec 6, 2021
jhegeman pushed a commit to jhegeman/ipbus-software that referenced this issue Dec 6, 2021
Merge utils directories and rename freq_ctr_div file
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

2 participants