root
2024-05-07 02:58:24 UTC
Before searching for some Raspberry PI 5 group, I'll post
my problem here, some smart person here might also
work with the PI.
I am trying to build a package of C routines that I
have built and maintained for many years. The problem
is that the libs required by the programs have, apparently,
been re-written for the Debian version that runs on the
PI 5. The compile/link command that has worked for
gcc and libs up to Slack 15 is:
magic:magic.o eigen.o fft.o order.o xplot.o best.o minv.o utils.o xtfuncs.o mygetline.o mymouse.o
gcc -o/root/bin/magic -Xlinker -Map=/ram/MAP.map -lm -L/usr/lib64/gsl -lgsl -lgslcblas -rdynamic -ldl -lgpm \
magic.o eigen.o fft.o order.o xplot.o minv.o best.o utils.o xtfuncs.o mygetline.o mymouse.o
And similar lines for the rest of the Makefile.
As you can see, the package is a lot of mathematical routines. The
problem is that the math libraries have all be renamed, or something
else and none of the math functions compile. I get unresolved
errors for all the math functions log,exp,sin,cos..... as well
as anything using the Gnu math libraries.
I have used "dpkg -l" on the PI and I see that the libraries are
there, but the names are different and from the dpkg output
I can't find a makefile command that works.
The really surprising thing is that I got the PI5 about a month
ago, and I built the system from an image of March 15 2024.
I got everything in that system to work, including the math
package of interest. Then something choked and the system
would no longer boot. I tracked down the problem to something
that clobbered bash. Honestly it wasn't anything I did because
I left the system running for a couple of weeks, and when
I came back to it it was trashed. My guess is that some
"update" was the problem.
Starting with the same image, I rebuilt the system.
After starting, it does some updates and everything
but the math package works.
Perhaps someone in the Slack group also plays with the
PI and can give me some help. BTW, the main reason
for using the PI is that you get a free version of
Mathematica running on the PI.
Thanks for any help.
my problem here, some smart person here might also
work with the PI.
I am trying to build a package of C routines that I
have built and maintained for many years. The problem
is that the libs required by the programs have, apparently,
been re-written for the Debian version that runs on the
PI 5. The compile/link command that has worked for
gcc and libs up to Slack 15 is:
magic:magic.o eigen.o fft.o order.o xplot.o best.o minv.o utils.o xtfuncs.o mygetline.o mymouse.o
gcc -o/root/bin/magic -Xlinker -Map=/ram/MAP.map -lm -L/usr/lib64/gsl -lgsl -lgslcblas -rdynamic -ldl -lgpm \
magic.o eigen.o fft.o order.o xplot.o minv.o best.o utils.o xtfuncs.o mygetline.o mymouse.o
And similar lines for the rest of the Makefile.
As you can see, the package is a lot of mathematical routines. The
problem is that the math libraries have all be renamed, or something
else and none of the math functions compile. I get unresolved
errors for all the math functions log,exp,sin,cos..... as well
as anything using the Gnu math libraries.
I have used "dpkg -l" on the PI and I see that the libraries are
there, but the names are different and from the dpkg output
I can't find a makefile command that works.
The really surprising thing is that I got the PI5 about a month
ago, and I built the system from an image of March 15 2024.
I got everything in that system to work, including the math
package of interest. Then something choked and the system
would no longer boot. I tracked down the problem to something
that clobbered bash. Honestly it wasn't anything I did because
I left the system running for a couple of weeks, and when
I came back to it it was trashed. My guess is that some
"update" was the problem.
Starting with the same image, I rebuilt the system.
After starting, it does some updates and everything
but the math package works.
Perhaps someone in the Slack group also plays with the
PI and can give me some help. BTW, the main reason
for using the PI is that you get a free version of
Mathematica running on the PI.
Thanks for any help.