Netbeans C++ IDE on Windows does not recognize shared object as executable on remote Ubuntu machine for C++...
My build server is an Ubuntu 18.04 distro, and the GCC is whatever comes stock with Ubuntu. I can build and run my C++ application via the command line no problem, including with dbg. Here is the file info:
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$ file septemserver
septemserver: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9df5db0ee3dfc296ef8e6e83c51b8ca195566ff2, with debug_info, not stripped
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$
However, the latest release of netbeans running on my windows PC does not recognize my septemserver as an executable for remote debugging. This makes no sense to me. I found an older post that suggested the --no-pie option on compile.. which I have. Still no luck and cannot find anyone else with this issue. Any help is appreciated.
c++ debugging netbeans
add a comment |
My build server is an Ubuntu 18.04 distro, and the GCC is whatever comes stock with Ubuntu. I can build and run my C++ application via the command line no problem, including with dbg. Here is the file info:
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$ file septemserver
septemserver: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9df5db0ee3dfc296ef8e6e83c51b8ca195566ff2, with debug_info, not stripped
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$
However, the latest release of netbeans running on my windows PC does not recognize my septemserver as an executable for remote debugging. This makes no sense to me. I found an older post that suggested the --no-pie option on compile.. which I have. Still no luck and cannot find anyone else with this issue. Any help is appreciated.
c++ debugging netbeans
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
1
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35
add a comment |
My build server is an Ubuntu 18.04 distro, and the GCC is whatever comes stock with Ubuntu. I can build and run my C++ application via the command line no problem, including with dbg. Here is the file info:
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$ file septemserver
septemserver: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9df5db0ee3dfc296ef8e6e83c51b8ca195566ff2, with debug_info, not stripped
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$
However, the latest release of netbeans running on my windows PC does not recognize my septemserver as an executable for remote debugging. This makes no sense to me. I found an older post that suggested the --no-pie option on compile.. which I have. Still no luck and cannot find anyone else with this issue. Any help is appreciated.
c++ debugging netbeans
My build server is an Ubuntu 18.04 distro, and the GCC is whatever comes stock with Ubuntu. I can build and run my C++ application via the command line no problem, including with dbg. Here is the file info:
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$ file septemserver
septemserver: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9df5db0ee3dfc296ef8e6e83c51b8ca195566ff2, with debug_info, not stripped
ken@ken-PowerEdge-R420:/git-repos/septemmud/septemserver/Debug$
However, the latest release of netbeans running on my windows PC does not recognize my septemserver as an executable for remote debugging. This makes no sense to me. I found an older post that suggested the --no-pie option on compile.. which I have. Still no luck and cannot find anyone else with this issue. Any help is appreciated.
c++ debugging netbeans
c++ debugging netbeans
asked Nov 19 '18 at 20:28
Ken ThompsonKen Thompson
111
111
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
1
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35
add a comment |
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
1
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
1
1
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382171%2fnetbeans-c-ide-on-windows-does-not-recognize-shared-object-as-executable-on-re%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382171%2fnetbeans-c-ide-on-windows-does-not-recognize-shared-object-as-executable-on-re%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
if the toolchain on your windows machine is set to understand PE formats only , such is the case with some builds of mingw, you wont be able to debug non PE formats. What you really should be doing is set your netbeans on windows to log into your ubuntu and start a remote debugging session with it's gdb, and then have your gdb connect to it, then you can debug your code remotely. That's what I did when cross compiling with QtCreator and the linaro toolchain (arm embedded). good luck!
– johnathan
Nov 19 '18 at 22:28
1
The fix turned out to be having the -no-pie option in the linker arguments, not the preprocessor. I'm a nub.
– Ken Thompson
Nov 20 '18 at 21:33
I'm glad you got your problem figured out.
– johnathan
Nov 20 '18 at 21:35