Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - IDE won`t build simplest project: (15 Items)
   
IDE won`t build simplest project  
Hello everyone! 
 I`ve downloaded Trial QnX momentics 6.5.0. IDE and QNX Neutino OS latest. 
I`m using QNX running on a VirtualBox and Windows 7 Ultimate as guest with IDE, linked via IP.
When i build a simple "Hello world project" for x86 CPU, it  gets me the following mistakes:

make.exe [1]: [all] Error 2 (ignored)
make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents_g/]Error 1
make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents] Error 1

All three happen in some "line 0" while there is only code:

#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    printf (Welcome to QNX Momentics IDE\n");
   return EXIT_SUCCESS;
}     

 It`s default "Hello World" program and nothing happens but errors for almost 4 days.
QNX runs succesfully from root superuser account with "qconn" active. 
IDE sees qnx, cpu, threads, ram  succesfully.

Please help to solve a problem, i`ve tried almost everything.

Thank you.
Re: IDE won`t build simplest project  
http://community.qnx.com/sf/discussion/do/listPosts/projects.community/discussion.qnx_momentics_community_support.
topc19505;jsessionid=44854B0ED4AFD85480FADFDBDA7EE78F



> Hello everyone! 
>  I`ve downloaded Trial QnX momentics 6.5.0. IDE and QNX Neutino OS latest. 
> I`m using QNX running on a VirtualBox and Windows 7 Ultimate as guest with IDE
> , linked via IP.
> When i build a simple "Hello world project" for x86 CPU, it  gets me the 
> following mistakes:
> 
> make.exe [1]: [all] Error 2 (ignored)
> make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents_g/]Error 1
> make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents] Error 1
> 
> All three happen in some "line 0" while there is only code:
> 
> #include <stdlib.h>
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
>     printf (Welcome to QNX Momentics IDE\n");
>    return EXIT_SUCCESS;
> }     
> 
>  It`s default "Hello World" program and nothing happens but errors for almost 
> 4 days.
> QNX runs succesfully from root superuser account with "qconn" active. 
> IDE sees qnx, cpu, threads, ram  succesfully.
> 
> Please help to solve a problem, i`ve tried almost everything.
> 
> Thank you.


Re: IDE won`t build simplest project  
Hi, J S,

It looks like your home directory is 

    C:\Users\J S\

which has a space.  This will cause the project's makefiles to be confused because they have macros that construct space
-separated lists of paths and then parse these lists.  Any spaces in a path will cause make to fail.

You will have to put your project in some directory that has no whitespace in the path.

HTH,

Christian


On 2011-10-21, at 12:51 PM, J S wrote:

> Hello everyone! 
> I`ve downloaded Trial QnX momentics 6.5.0. IDE and QNX Neutino OS latest. 
> I`m using QNX running on a VirtualBox and Windows 7 Ultimate as guest with IDE, linked via IP.
> When i build a simple "Hello world project" for x86 CPU, it  gets me the following mistakes:
> 
> make.exe [1]: [all] Error 2 (ignored)
> make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents_g/]Error 1
> make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents] Error 1
> 
> All three happen in some "line 0" while there is only code:
> 
> #include <stdlib.h>
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
>    printf (Welcome to QNX Momentics IDE\n");
>   return EXIT_SUCCESS;
> }     
> 
> It`s default "Hello World" program and nothing happens but errors for almost 4 days.
> QNX runs succesfully from root superuser account with "qconn" active. 
> IDE sees qnx, cpu, threads, ram  succesfully.
> 
> Please help to solve a problem, i`ve tried almost everything.
> 
> Thank you.
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post89536
> 
Re: IDE won`t build simplest project  
Hi, J S,

It looks like your home directory is 

    C:\Users\J S\

which has a space.  This will cause the project's makefiles to be confused because they have macros that construct space

-separated lists of paths and then parse these lists.  Any spaces in a path will cause make to fail.

You will have to put your project in some directory that has no whitespace in the path.

HTH,

Christian


Hello Christian and thank you for such a fast answer! 

Thank you for your answer, but there is one issue - IDE does not allowing me to save a new project if i choose directory
 with white spaces. 

By the way... there is no spaces there... there is no "/J S/"  there is simply "/J/"
Re: IDE won`t build simplest project  
Hi, J S,

Is there anything more in the build console than what you showed in your original post?  There should be some recursive 
make invocations and other stuff.

How did you create this project?  What kind of a project is it? (which wizard did you use to create it?)  Can you 
describe the structure of this project?  If you can share the code or create a small sample that illustrates the problem
, that would be helpful (just export to a ZIP archive and attach it).

From the following:

    make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents_g/]Error 1
    make.exe [2]: *** [C:/Users/J/Documents/x86/0-g/Documents] Error 1

It looks like you have a project named "Documents" in the folder "C:\Users\J\Documents".  Is that correct?

But, the variant directory looks like "0-g" with a zero ('0') instead of a lower-case oh ('o').  Is that correct?  I 
should be "o-g", but I don't think it would cause the error you're seeing.

It also looks strange that the makefiles are trying to build a "Documents" binary as well as "Documents_g" for the same 
variant.  We'll need more information to find out why.

Cheers,

Christian


On 2011-10-21, at 1:49 PM, J S wrote:

Hello Christian and thank you for such a fast answer!

Thank you for your answer, but there is one issue - IDE does not allowing me to save a new project if i choose directory
 with white spaces.

By the way... there is no spaces there... there is no "/J S/"  there is simply "/J/"



_______________________________________________

General
http://community.qnx.com/sf/go/post89541


Re: IDE won`t build simplest project  
Hi Christian, i`ve assembled the Word 97-2003 document, it contains 10 pictures with brief explanation of each one.

Pictures showing windows -> strictly step by step as i`m proceeding to the error list. 
Attachment: Word Trouble.doc 1,004 KB
Re: IDE won`t build simplest project  
Hi J S,
show ur doc. try this one..
1]right clik on project folder... select close project.
2]againg right clik ...Select Open Project.
3]now buid ur program again...


Regards,
Atul Kumbhar
Re: IDE won`t build simplest project  
Hello Atul Kumbhar!

I`ve tried right now and nothing happened. 
It just removed a couple of errors, attempt to build project still shows 3 of 5 errors (5 were shown on pic in my file).
  
Attempt to run project showing "Launch failed. Binary not found".

2 errors that left are those which contain folders and 1 is:
make.exe[1]: [all] Error 2 (ignored)

Perhaps it is all because i`m running Windows 7 x64 Ultimate? not the x86?

Thank you
Re: IDE won`t build simplest project  
Hi J S,

build the project ... and check that does binaries folder is created and check the files in that ....then debug n run..:
)

Regards,
Atul Kumbhar
Re: IDE won`t build simplest project  
After build there is only "x86" folder, that carrying "o" and "o-g" folders. Each contains Makefile with one string 
(similar)
Rocklaw.o with different coding. (i think is some kind of Assebler or so, according to commands push, mov, and, sub, 
movl, call, leave...) 

There are no folder named "Binaries" in any of those.
Re: IDE won`t build simplest project  
i am saying abt this ... check the snap...get sanp and let me know what u r saying abt  clearly....
Attachment: Image Binaries.jpg 88.13 KB
Re: IDE won`t build simplest project  
Sorry for my grammar, i`m working my 16th hour and this is not good for my fingers and eyes :)

I`ve attached an image of my IDE screen with new project. At first there was no errors (right after creation of the 
project but before the build). I have clicked "Build All" command and got 3 errors, you can see them on the image (No "
Binaries" folder was created after the "Build" and yes, i`ve looked on your image).

Thank you.
Attachment: Image Capture2.PNG 81.77 KB
Re: IDE won`t build simplest project  
Hello J S,

trying by cleaning the build steps shown in attachment...:)



Regards,
Atul Kumbhar
Attachment: Compressed file cleaning build.zip 181.75 KB
Re: IDE won`t build simplest project  
Ok, i think i gonna laugh soon :) 
  Cleaning with errors was unsuccesful...
   Attaching image to clarify the situation... 
Attachment: Image Capture3.PNG 128.06 KB
Re: IDE won`t build simplest project  
Hi, J S,

Can you post the contents of the Build Console?  It's the view two places to the right of the Problems view (the bold-
text title "Console") in your last screenshot.  This view shows the entire sequence of steps in the make build, whereas 
the Problems view only shows error and warning messages scraped from the console.

Cheers,

Christian


On 2011-10-22, at 1:29 PM, J S wrote:

> Hi Christian, i`ve assembled the Word 97-2003 document, it contains 10 pictures with brief explanation of each one.
> 
> Pictures showing windows -> strictly step by step as i`m proceeding to the error list. 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post89556
> <Trouble.doc>