Sysprogs forums › Forums › VisualGDB › VS2010 poco Beaglebone Cross Compile. Build fail Header file not found
- This topic has 5 replies, 2 voices, and was last updated 9 years, 9 months ago by
support.
-
AuthorPosts
-
January 11, 2016 at 16:13 #7456
dhruv_acharya
ParticipantI am very much new to visual studio, c++, poco and visualGDB.
I have extracted poco libraries to C:\poco-1.6.1. I am trying very basic poco “hello, world” as you can see in image I have included
#include <Poco/String.h>But when I build, it says that no such header file. As you can see I have also provided path for Include directories and Library Directories. Please Guide me for successfully compile this locally and remote debug it on Beaglebone.PS: Please use this link if you can not see the image. Sorry.
-
This topic was modified 9 years, 9 months ago by
dhruv_acharya.
January 12, 2016 at 02:54 #7461support
KeymasterHi,
Please right-click on your project in Solution Explorer, select “VisualGDB Project Properties”, go to the Makefile Settings page and add the include directories there.
Let us know if you run into further problems.
January 12, 2016 at 08:34 #7462dhruv_acharya
ParticipantHi Bazis,
Thanks for the help. But, after I add this directory path to makefile setting page, error for no such header file is gone, but now it gives following errors:
Error 1 error VGDB1000: undefined reference to `Poco::Ascii::CHARACTER_PROPERTIES’ C:\poco-1.6.1\Foundation\include\Poco\Ascii.h 129 1 Test_Poco
Error 2 error VGDB1000: undefined reference to `Poco::Ascii::CHARACTER_PROPERTIES’ C:\poco-1.6.1\Foundation\include\Poco\Ascii.h 129 1 Test_PocoYou can see the this image for more reference.
January 14, 2016 at 00:01 #7472support
KeymasterHi,
This means that you are missing the reference to the static library (should be called libPoco.a or something similar). Note that if you have just downloaded the sources from Internet, you need to configure and build the library according to the instructions provided by its vendor. This will produce the .a file that you can reference from VisualGDB Project Properties (normally add the directory with the .a files to the Library Directories and add the library name without the ‘lib’ prefix to the Additional Libraries).
January 26, 2016 at 14:10 #7546dhruv_acharya
ParticipantHi,
Yes I think you are right. I have solved problem via this:
1. I have installed the official poco per-built libraries from debian source on my beaglebone using sudo apt-get install libpoco-dev.
2. Created a new project and sync all the system root headers and library.
3. Success.
January 27, 2016 at 22:21 #7560support
KeymasterGood to know it works. If you run into further problems, let us know.
-
This topic was modified 9 years, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.