remusmp

5 Reputation

2 Badges

13 years, 252 days

MaplePrimes Activity


These are replies submitted by remusmp

@Pseudomodo 

I solved it by copying the .so files from $MAPLE/bin.IBM_INTEL_LINUX to where my project is. I also had to include the license file as well. It was looking for the license file at a relative path from where I was launching my project. (../license).

 

It was crashing at run-time before (not build time) because libgmp.so was not found.

 

Now I ran into a different problem. I'm trying to capture the output of EvalMapleStatement that includes the latex function, e.g.:

r = EvalMapleStatement(kv, "a:=3:latex(%);"); // Should it just print a 3 in textCallBack ? Instead it prints: latex(3) and nothing else.

It's like the latex function is not evaluated. How could I evaluate the latex function?

 

Thanks :)

Remus.

@Pseudomodo 

I solved it by copying the .so files from $MAPLE/bin.IBM_INTEL_LINUX to where my project is. I also had to include the license file as well. It was looking for the license file at a relative path from where I was launching my project. (../license).

 

It was crashing at run-time before (not build time) because libgmp.so was not found.

 

Now I ran into a different problem. I'm trying to capture the output of EvalMapleStatement that includes the latex function, e.g.:

r = EvalMapleStatement(kv, "a:=3:latex(%);"); // Should it just print a 3 in textCallBack ? Instead it prints: latex(3) and nothing else.

It's like the latex function is not evaluated. How could I evaluate the latex function?

 

Thanks :)

Remus.

Hi again,

 

I've managed to build the file successfully but when I try to run it, I get this error (from StartMaple):

fatal error(-1) loading GMP library: ./libgmp.so
Aborted

 

The program works only if I copy the binary file (simple) to $MAPLE/bin.IBM_INTEL_LINUX and run it from that folder.

 

Is there a way to make it run from my project's folder?

 

Thanks.

Remus.

Hi again,

 

I've managed to build the file successfully but when I try to run it, I get this error (from StartMaple):

fatal error(-1) loading GMP library: ./libgmp.so
Aborted

 

The program works only if I copy the binary file (simple) to $MAPLE/bin.IBM_INTEL_LINUX and run it from that folder.

 

Is there a way to make it run from my project's folder?

 

Thanks.

Remus.

Hi,

 

It works! The Kubuntu people suggested the same thing:

http://ubuntuforums.org/showthread.php?t=1870586

 

Thanks a lot!

 

Regards,

Remus.

Hi,

 

It works! The Kubuntu people suggested the same thing:

http://ubuntuforums.org/showthread.php?t=1870586

 

Thanks a lot!

 

Regards,

Remus.

Hi Erik,

I ran the following commands:

MAPLE=/usr/local/bin/maple15
export LD_LIBRARY_PATH=$MAPLE/bin.IBM_INTEL_LINUX

gcc simple.c -I$MAPLE/extern/include -L$MAPLE/bin.IBM_INTEL_LINUX -o simple -lmaplec -lrt

 

And now I get this error:

gcc simple.c -o simple -I$MAPLE/extern/include -L$MAPLE/bin.IBM_INTEL_LINUX -lmaplec -lrt
/usr/local/bin/maple15/bin.IBM_INTEL_LINUX/libmaple.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

 

clock_gettime should be found by adding -lrt to gcc but something goes wrong... it might be related to my linux distribution (as you did not get this error). I am running kubuntu 11.10 (oneiric, 32 bits).

I will keep digging. But thanks anyway.

Regards,

Remus.

Hi Erik,

I ran the following commands:

MAPLE=/usr/local/bin/maple15
export LD_LIBRARY_PATH=$MAPLE/bin.IBM_INTEL_LINUX

gcc simple.c -I$MAPLE/extern/include -L$MAPLE/bin.IBM_INTEL_LINUX -o simple -lmaplec -lrt

 

And now I get this error:

gcc simple.c -o simple -I$MAPLE/extern/include -L$MAPLE/bin.IBM_INTEL_LINUX -lmaplec -lrt
/usr/local/bin/maple15/bin.IBM_INTEL_LINUX/libmaple.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

 

clock_gettime should be found by adding -lrt to gcc but something goes wrong... it might be related to my linux distribution (as you did not get this error). I am running kubuntu 11.10 (oneiric, 32 bits).

I will keep digging. But thanks anyway.

Regards,

Remus.

Page 1 of 1