LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 12-28-2017, 02:08 PM   #1
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Rep: Reputation: Disabled
Netbeans will not recognize build as executable


I spent the last few days setting up my first Arch Linux build using xfce4. Except for a few things, everything is working well.

I use Netbeans as my IDE to develop C++ apps. Compiling my cmake projects works as expected. I can run the executable from command line but not from Netbeans. Looking at the file via the xfce4 file manager, it displays as a "shared library" and doesn't use the executable icon.

As a test, I generated a simple "hello world" project and compiled it. This doesn't use cmake. The executable still displays as a "shared library" but netbeans will run it and I can place break points.

At first, it wasn't generating the executable until I added my user to a few more groups. Compiling the code in root produces the same result.

I'm not sure what to make of this.
 
Old 12-29-2017, 04:28 PM   #2
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Original Poster
Rep: Reputation: Disabled
With Arch Linux, you pretty much get the latest software. The GCC version is 7.2.1 and the new thing is compiling "executable shared libraries". The GNU/Linux people decided that this should be the default option. This is why Netbeans doesn't know it's an executable and wont display as the executable to use after a CMake build.

At this point I don't know what to do. I'm looking into forcing the build to be an ELF Executable and not a ELF Shared Library.
 
Old 12-29-2017, 06:37 PM   #3
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Original Poster
Rep: Reputation: Disabled
Just needed to add "-no-pie" to the CMAKE_CXX_FLAGS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build executable from python script with different gdk, gtk and glibc version? ouyexie Programming 1 08-18-2012 07:48 PM
slackware doesn't recognize an executable Cultist Slackware 14 07-28-2010 06:32 PM
LXer: Sun Announces the Latest in Open Source Tools with the Availability of NetBeans Visual Web Pack and NetBeans C/C++ Development Pack LXer Syndicated Linux News 1 12-31-2006 07:37 AM
Build scripts say my C compiler cannot make executable output noware Linux - Software 2 06-07-2006 02:15 PM
gdb won't recognize 64 bit executable on my RedHat 64 bits box cerniagigante Programming 1 02-23-2006 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration