NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Creating project from binary

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
kannaiah



Joined: 07 Mar 2017
Posts: 4

PostPosted: Wed Mar 22, 2017 11:13 am    Post subject: Creating project from binary Reply with quote

I'm creating project from binary (binary was built with scons)

I see that the project is populated with source files but build options used were not imported such as include paths, defines.

Is this expected?

Or do I have to do something so that project imports all the build options used to build the binary.
Back to top
Alexander Simon
Posted via mailing list.





PostPosted: Wed Mar 22, 2017 11:56 am    Post subject: Creating project from binary Reply with quote

Hi kannaiah,

It depend on debug info.
if compiler provides compile line in dwarf info, IDE creates best
quality code model (for example "cc -g").
If compiler provides only source file name in dwarf info, IDE creates
low quality code model (for example "gcc -g").
GNU compiler "gcc -g3" in dwarf info provides included files and macros.
IDE creates medium quality code model .
I'd suggest to build project in IDE and allow IDE to catch compiler
invocations if your compiler does not provide compile line in dwarf info
or reconfigure project by building log.

Alexander

On 03/22/17 02:13 PM, kannaiah wrote:
Quote:
I'm creating project from binary (binary was built with scons)

I see that the project is populated with source files but build options used were not imported such as include paths, defines.

Is this expected?

Or do I have to do something so that project imports all the build options used to build the binary.



Back to top
kannaiah



Joined: 07 Mar 2017
Posts: 4

PostPosted: Mon Mar 27, 2017 10:59 am    Post subject: Reply with quote

With -g3 preprocessor defines were imported but not include directories.
Better than before though.
For now it is sufficient for me.

Thank you.
Back to top
Vladimir Voskresensky
Posted via mailing list.





PostPosted: Tue Apr 04, 2017 12:02 pm    Post subject: Creating project from binary Reply with quote

On 03/27/17 01:59 PM, kannaiah wrote:
Quote:
With -g3 preprocessor defines were imported but not include directories.
Better than before though.
I would also suggest to follow Alexander's advise:
- specify your clean and build scons commands in project properties,
then do clean & build in the IDE
=> IDE will automatically interpose real compiler invocations initiated
by scons and you'll get much more than -D/-I, you will also have Compile
File functionality with all real flags

Thanks,
Vladimir.

Quote:
For now it is sufficient for me.

Thank you.



Back to top
kannaiah



Joined: 07 Mar 2017
Posts: 4

PostPosted: Fri Apr 07, 2017 1:29 pm    Post subject: Reply with quote

I'm very new to netbeans.
I couldn't find how I can use scons for building, I have been searching and going through all the menus but couldn't find options to use scons.

I tried existing project as well as new project.

How do I use scons with Netbeans?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo