Arangodb use file from another C++ project in linux

30 views
Skip to first unread message

lxrc...@gmail.com

unread,
Aug 7, 2016, 10:45:25 PM8/7/16
to ArangoDB
Hi all, I am working with arangodb in linux, and I want to use some file(*.h   *.cpp) from another project. But g++ always says can not find the ".h" file. I try to modified arangodb's "Makefile.files" and generated Makefile again via "configure",but does't work. How can i do? thank you very much.

Wilfried Gösgens

unread,
Aug 8, 2016, 6:54:54 AM8/8/16
to ArangoDB
Hi,
please note that we switched to cmake with ArangoDB 3.0 so these files aren't used anymore.
In general I'd advise not to start with ArangoDB 2.8 anymore.

In the old Autofoo build process, you have to re-run

make setup

to get changes to the Makefile.files imported into the currently used build system.

Cheers,

Willi

lxrc...@gmail.com

unread,
Aug 9, 2016, 9:46:24 PM8/9/16
to ArangoDB


在 2016年8月8日星期一 UTC+8上午10:45:25,lxrc...@gmail.com写道:
Hi all, I am working with arangodb in linux, and I want to use some file(*.h   *.cpp) from another project. But g++ always says can not find the ".h" file. I try to modified arangodb's "Makefile.files" and generated Makefile again via "configure",but does't work. How can i do? thank you very much.

   Hi, If i want use some C++ file form another project in arangodb 3.0 in linux what shoud i do and how to do? thanks!

cai li

unread,
Aug 10, 2016, 6:00:17 AM8/10/16
to aran...@googlegroups.com
Hi, I'm inherited Arangodb class in my shared library, when I compile g++ always says "recompile with -fPIC". you know I don’t know how to modify the makefile. my question is if i use arangodb3.0 can solve the problem?  

--
You received this message because you are subscribed to a topic in the Google Groups "ArangoDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/arangodb/jvpp77lSA_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to arangodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jan

unread,
Aug 15, 2016, 3:56:52 AM8/15/16
to ArangoDB
Are you actually compiling ArangoDB or a project of your own?
In the latter case, you may need to add the .h file from ArangoDB to your own project, or at least add the file's location to the list of include directories. Otherwise the compiler won't find it and complain. The easiest will be to copy the file from ArangoDB into your own project, but that will likely cause further issues, because the .h files in ArangoDB include other files from the ArangoDB source. So providing the file include file locations via the -I compile option may help. It may also be necessary to manually set a few defines that are automatically set via ArangoDB's automake/cmake (2.8/3.0) process when compiling ArangoDB. If you are compiling your own project, these defines may not be set. It may all work without the defines, but the result may not be optimal.

Best regards
Jan
To unsubscribe from this group and all its topics, send an email to arangodb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages