i downloaded boost and saved it on virtual box
i ran the command tar -xvf boost_1_53_0.tar it extracted the files.
i typed ./bootstrap.sh and afterwards ./b2
i copied all the built files over to windows directory.
C:/boost/boost_1_53_0
on momentics ide i added
in the compiler
C:/boost/boost_1_53_0
in the linker → extra library paths
C:/boost/boost_1_53_0/stage/lib
linker → extra libraries
boost_filesystem
boost_system
linker → extra object files
C:/boost/boost_1_53_0/stage/lib/libboost_filesystem.so
C:/boost/boost_1_53_0/stage/lib/libboost_system.so
the project builds fine but when i run it i get the message
ldd:FATAL: Could not load library C:/boost/boost_1_53_0/stage/lib/libboost_filesystem.so
i don’t know how to build in windows.
i tried to build in windows with visual studio command prompt but it doesn’t support toolset=qcc.
i tried to build it on the QNX target running in virtual box and it worked.
i am trying to run it on the QNX target.
i have a copy of the built files in /lib folder.
i also checked LB_LIBRARY_PATH it has the path to the /lib folder
I bet you configured the boost project under Windows and could not get it to compile (as you said happened) and then you copied it directly to QNX and built there. But you probably didn’t reconfigure for QNX so the paths remain set for Windows compilation/running.
Just fix the LB_LIBRARY_PATH so it points where libboost_filesystem.so is located on your target machine (pwd will give you the full path when you are in the folder where libboost_filesystem.so is located).