Can you successfully build and run a simple test program that loads ldqnx.so 
but does not link with nlopt? If not, then it's not an nlopt problem. Does the 
board have a test suite you can run to verify programs built in Cygwin work 
properly?

Have you tried building nlopt as a static lib and linking with that?

Dale Smith, Ph.D.
Senior Financial Quantitative Analyst
Financial & Risk Management Solutions
Fiserv
Office: 678-375-5315
www.fiserv.com


-----Original Message-----
From: NLopt-discuss [mailto:[email protected]] On Behalf 
Of Tobias Schmidt
Sent: Thursday, January 09, 2014 5:06 AM
To: [email protected]
Subject: [NLopt-discuss] Using NLopt on BeagleBone Black with QNX

Hi nlopt-community,

I'm trying to use NLopt to solve optimization problems on my BeagleBone Black 
running QNX 6.5.0. The board has an ARM Cortex-A8 processor.

Did anybody cross-compile the NLopt library for QNX on BBB or a similar board 
with ARM processor?

Up to now I did following steps to configure and build the library:

1. Created a new QNX C Project in Momentics 2. Configured the Makefile by 
running <code>./configure --without-octave --without-python --without-guile 
--enable-shared
--host=arm-unknown-nto-qnx6.5.0 --build=i486-pc-nto-qnx6.5.0 CC="qcc 
-V4.4.2,gcc_ntoarmv7le" CPP="qcc -V4.4.2,gcc_ntoarmv7le -E" CXX="QCC 
-V4.4.2,gcc_ntoarmv7le" CXXCPP="QCC -V4.4.2,gcc_ntoarmv7le -E" 
LD="arm-unknown-nto-qnx6.5.0-ld" NM="arm-unknown-nto-qnx6.5.0-nm -B"</code> 
within Cygwin environment.
3. Run "Build Project" in Momentics

The build process succeed, but if I want to use the library within another 
Project the execution fails with the message:

Process 36886 (nlopt_test_ctschmidt138926111541656) terminated SIGBUS
code=1 fltno=5 ip=01024c34(/usr/lib/ldqnx.so.2@_band_get_aligned+0x168)
mapaddr=00024c34. ref=bee2e36a

Does anybody know what I'm doing wrong? Does anybody has an idea where the 
fault could be located?

Regards,
Tobias Schmidt

_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to