MarmaladeSDK: How to create a project in XCode? - c++

I've created FirstProgram.mkb with the following content:
files
{
(source)
HelloWorld.cpp
}
subprojects
{
iwgx
}
I started it with XCode 4.6 and it opens it as a text file. What do I do wrong? How to create a marmalade sdk project in XCode?
I don't need MarmaladeQuick cause I need to use C++ (not Lua as for Quick).

If you have more than one Marmalade version installed, you need to be careful of associating .mkb files with the mkb.app. My experience on Macs is that this overrides the s3e_config settings. I'm planning to write a script that picks up the s3e_config setting but for the moment I would advise using the command line shell: cd to the appropriate directory and then do "mkb foobar.mkb" or whatever.
[FTR Contrast with the PC situation where s3eConfig.exe sets up the GUI but not the command line!]

Just double click on the mkb file and if it asks, use mkb.app found in /Developer/Marmalade/6.3/Applications to open the file. The mkb script will automatically create an XCode project for you and will open it in XCode too.
Just remember, never open the XCode project directly. You should always double click on mkb to open XCode, since it updates the XCode project files when needed.

Related

How can I get "go to definition" working in a JUCE project?

I'm trying to get "go to definition" working for a JUCE project created with Projucer. I've tried both CLion and Visual Studio Code, but they can't seem to find definitions that live in the JUCE libraries.
I'm on Ubuntu. Is there a blessed path for this? I'm normally a vim user, but I'm willing to try any IDE.
I've just figured this out!
In VS Code go View and Command Palette and type C/C++: Edit Configurations (UI) which will take to the IntelliSense Configurations page. Under Include path, on a new line, specify the path to JUCE e.g. ~/JUCE/**.
Note: The two stars are needed to tell VS Code to look through subdirectories.
This will create a hidden folder .vscode in your project folder with this configuration.
You will need to repeat these steps for each project you make.
Definitions and code completion should now work.
To compile your code, in your project folder go Builds then LinuxMakefile and in a terminal run the command make. Finally, go to the builds folder and run your project ./exampleProject.
You need to add the JUCE/modules folder to your search path, not the top-level JUCE/ folder!
If you're using the Projucer, you'll also need to add the JuceLibrarySource/ folder to your search path.
What I ended up doing was using FRUT to convert my project from a Projucer project to a CMake project. CLion was able to understand the CMake project, and thus, the "go to definition" and autocomplete features started working.

Change a default path in the Atom editor

I am using the Atom text editor to write c/c++ codes. By default I need to save all my programs in the C:>.atom> packages> MinGW> bin folder.
Now, I want to change the location where my programs are stored to a new folder which is comfortably placed in say, C:> My Programs. This works fine in CodeBlocks and before creating any console application there, I can choose the location manually and therefore all my programs are neatly arranged in the folder C:> My Programs that I have created. But, when I try to place a program anywhere other than the C:>.atom> packages> MinGW> bin folder or simply try to open a previously created program (with CodeBlocks) from the C:> My Programs folder, this error pops up in Atom -
'g++' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning process.
I don't know what to do.. How can I 'tell' the gcc compiler that look into this file rather than the default?
Can anyone please guide me through the steps?
Thank you so much.

NetBeans - how to open Chromium open source project with netbeans?

For community, i have this project compiled/build/released manually using NotePad++ but its very difficult to work for such large project with just one text editor.
I want to use the large project with my favourite NetBeans IDE, to get fast coding done and use some tools of NetBeans while coding that i love.
(but build / compile/ release i can do manually as usual)
How can i open the whole project in NetBeans IDE?
i have this source code located in my path C:\folder\chromium\src
https://chromium.googlesource.com/chromium/src.git/+/45.0.2438.2
Please help.
It should be enough if you just create an new Project within Netbeans and choose creating Project with Existing Sources as type of your project. Netbeans will ask you where did you store the existing sources which you just need to tell it and tada you can start coding
Here is an link where it is described via picture. It's not exactly what you asked for but you see the process of how to open a project you just need to change the type they choose in that tutorial.
How to open an new Project

create bochs project in eclipse

I'm trying to use the cpu of bochs in my graduate course project. I want to create a project of it in eclipse so I can modify it and compile it and also see the errors ...
I have the source code and I use visual studio's nmake to build, compile it. but the problem is that it doesn't report me the errors and the only way to know the error happens or not is to wait until nmake ends and see if the .exe file is created or not. after that the process of finding errors is a bad headache.
so I'm trying to use ubuntu OS and use eclipse. anyone knows how to create a project for bochs in this?
Also the more important thing is a tutorial that I can learn bochs cpu codes. because the official site's tutorial has no use.
haha,
I found it myself.
just go to bochs official site and download the source code for linux.
extract the zip file somewhere.
open a terminal and go to the extracted folder.
type:
./configure
this will check your system and set the values for the #define arguments in a file called makefile.
now open eclipse.(I assume that you have the c/c++ CDT). FILE>NEW PROJECT
In the opened dialogue open c/c++ tree, and select "Makefile project with existing code" and click next. next put a name for your project and in the "existing code location" browse the extracted folder. next select CROSS GCC as toolchain. then click finish.
there you go. now build the project and it should work.
remember that for running project you must give bochs command line arguments which is available in eclipse and you can find out how with a search in forums.

How to open existing C++ project with Eclipse?

I have two projects in C++ that I need to run and build both in Windows and Linux.
We are using Microsoft TFS for source control.
For windows we are using Visual Studio.
For Linux we are using Eclipse. (I don't have much experience with Eclipse)
I had managed to configure and build properly the projects in both platforms.
I checked in TFS the .cproject and .project from eclipse, so I can use it in another computer.
Now I am trying to get the projects in another Linux computer and I don't know how to do it.
I tried following this instructions, but I don't have my source code zipped.
Other places like here suggest creating a new project.
Isn't there a way to open an existing project in Eclipse similar to Visual Studio?
Do I have to create a new project? If so, how can I keep the configurations I did to be able to build the project so other developer can use them?
File > Import... > General > Existing projects into workspace
Don't select an archive file. Set the root directory to where your .project and .cproject files are located. Your project should show up in the list. Make sure you don't forget to check the checkbox in front of your project.
Committing eclipse project files to a version control system is perfectly fine as long as you don't use absolute paths in your project settings. Use environment variables to specify paths which differ between developer machines.