[odb-users] Error - Using ODB with Eclipse CDT

Nathan White newhite at rslfibersystems.com
Wed Mar 13 12:07:47 EDT 2013


Hello,

I successfully compiled and ran examples Hello and Query with terminal.  The next step is to compile Hello with eclipse because ultimately I'll be using eclipse for my IDE.  I used the resource: http://wiki.codesynthesis.com/Using_ODB_with_Eclipse_CDT to build the hello example in eclipse.


I configured the C++ Build ->settings for person.hxx, see Step-3 PersonhxxConfigure.png; and created the bootstrap, see Step-5 Bootstrap.png.  When I click build for the Bootstrap, I believe the IDE would create the three -odb files.  This is the same step as entering:



odb -d sqlite --generate-query --generate-schema person.hxx into terminal.

I receive the following error in the console when I click the bootstrap build.

-------------------------------------------------
10:20:58 **** Build of configuration Debug for project odb_hello ****
make ../person-odb.hxx
make: *** No rule to make target `../person-odb.hxx'.  Stop.

10:20:58 Build Finished (took 77ms)
---------------------------------------------------


After configuring the paths for the project, See step 4, I clicked Build All (Projects -> Build All) and received this error:
---------------------------------------------------
Errors occurred during the build.
      Errors running builder 'CDT Builder' on project 'odb_hello'.
      java.lang.NullPointerException
---------------------------------------------------

Is the person.hxx file incorrectly configured for the build?

Regards,
Nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Step-3 PersonhxxConfigure.png
Type: image/png
Size: 106446 bytes
Desc: Step-3 PersonhxxConfigure.png
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20130313/51365340/Step-3PersonhxxConfigure-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Step-4a IncludePaths.png
Type: image/png
Size: 145701 bytes
Desc: Step-4a IncludePaths.png
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20130313/51365340/Step-4aIncludePaths-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Step-4b LibraryPaths.png
Type: image/png
Size: 133388 bytes
Desc: Step-4b LibraryPaths.png
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20130313/51365340/Step-4bLibraryPaths-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Step-4c Libraries.png
Type: image/png
Size: 135773 bytes
Desc: Step-4c Libraries.png
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20130313/51365340/Step-4cLibraries-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Step-5 BootStrap.png
Type: image/png
Size: 37558 bytes
Desc: Step-5 BootStrap.png
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20130313/51365340/Step-5BootStrap-0001.png


More information about the odb-users mailing list