Use OpenGL/GLUT in Ubuntu
The Ubuntu version is 12.04 LTS.
Article 1 Basic compilation environment Configuration
1. Create a basic compilation environment
Sudo apt-getinstall build-essential
2. Install OpenGL Library
Sudo apt-getinstall libgl1-mesa-dev
3. Install OpenGL Utilities
Sudo apt-getinstall libglu1-mesa-dev
4. Install OpenGL Utility ToolKit
Sudo apt-get install libglut-dev
Problem 1:
! An error occurred while running this command. The system prompts that the software package canno
I. Preface:
The graduation project should be programmed in Linux in C or C ++ language. In the early stage, considering that the interface may be required, I was planning to use C ++, however, later I found that C is not as simple and convenient as C, so I prefer C.
Ii. compiler Selection
Originally, I wanted to use eclipse + CDT, but it was a pity that it was too busy. eclipse was too big, and the company's network was down. APT-Get installation was also very difficult, you also need to inst
From: http://kingj.iteye.com/blog/1558869
Objective-C is the programming language of Apple software. It is much easier to have an integrated development environment (IDE) for machine learning and debugging. There are three ways to build an integrated development environment for objective-C:
1)
2)
3)
1. Install the object-C Compiler
There are many objective-C compilers. This article describes how to use gnustep at http://www.gnustep.org/experience/windows.html. Here we can download the gccco
I started to study c ++ well. I saw the second chapter about wchar_t wide byte and wcout. I made a try,
# Include Int main (){STD: wcout. imbue (STD: locale ("CHS "));STD: wcout Return 0;}
Declaration, the editor used at this time is C-free and the compiler is mingw, but there are two errors. What errors have you forgotten, it is probably because "wcout is not a member of STD" "illegal byte sequence" is hard to remember. The encoding and wcout errors are caused. I checked from the Internet f
C ++ connects to the MySQL database
C ++ is not as intelligent as PHP and does not have an integrated Wamp environment. Therefore, C ++ is less convenient to connect to the database. After checking some information online, the connection was successful and the process was recorded.
1.Install MySQL on your computer
Some people on the Internet say that the custmo mode must be selected, but I did not select it during installation and the connection was successful. It seems unnecessary.
2.Download t
// Always add a breakpoint under a single source file, and then DEBUG. No result is returned each time. codeblocks debug is available only today.
// You must create a project before debugging and debugging.
Next steps
1. After GDB is installed, codeblocks will automatically detect the location of GDB.
You can view the compiler and debuger setting options under the setting option.
Of course, the easiest
on the Internet, now you can compile the program normally. I found a relatively good code: blocks tool tutorial, which is very detailed. Click to download:Codeblockstutorial. In codeblocks, you can set the C ++ help document and click to download:Cppreference. CHMAndCppreference Chinese version. CHM.
Windows Version code: blocks official download page: http://www.codeblocks.org/downloads/26#windowsTwo official downloads are available:1.
::blockside.Code::Blocks and wxwidgets are very well integrated, with almost no additional configuration.Instructions for use:1. You can write your own makefile:Specify the use of custom makefile in the properties of project. As with VisualStudio, you can define many parameters in the compilation and link process, including defining compilation parameters, which can be found in project's Buildoption or Compiler/debugger settings. For some projects that use Autoconf/automake, I want to create a
From the beginning of the Mac to now use Xcode, a period of time to an open source TestDisk from the text interface to a graphical interface. I think of a decision with Codeblocks + QT To do, mainly do not want to use QT own IDE, perhaps is accustomed to vc,codeblocks style, parameters on the setting is very convenient.But in the code writing, found a problem, the Mac GDB can not be debugged, and later chec
1. Download the latest nightly build version here is generally the third http://forums.codeblocks.org/index.php?board=20.0
Note that there are three files to download (the second one that mingw can not download) and then unzip to the same folder (which is the folder you want to install)
2. The default is to download the TDM-MINGW without the compiler. The integration of GDB is convenient to download the address http://tdm-gcc.tdragon.net
After installation
Tags: io on file BS linux TT sql BR MySQL1, after the installation of MySQL, you should install the necessary library files$sudo Apt-get Install Libmysqlclient-dev2. Connect codeblocks with MySQL library fileAdd the following in the Setting->complier->complier settint->otheroption in Codeblocks:' Mysql_config--cflags ' (note the wavy lines on both sides)-STD=C11 (C99 Standard)Add the following to link setti
I am more lazy to stick to other people's configuration planFrom this start to the code excerpt from http://blog.csdn.net/yueguanghaidao/article/details/11538433has been interested in Python extensions, just saw the extending and embedding the Python interpreter document, looking at the minimum version (due to the work of the 2.x, ̄- ̄), the official documentLinks: http://docs.python.org/2.6/extending/index.htmlThe IDE I'm using is code::blocks 12.11, and I need to configure the environment first
Cannot find the header file during codeblocks compilation? -- Linux general technology-Linux technology and application information. For details, refer to the following section. Install a ubuntu system on the virtual machine, and then install codeblocks.
Create a project in the console. Isn't it a self-built Hello program? The header file cannot be found during running.
Create a project under wxWidgets an
Hey ...... In the past few days, the card time for the weekly competition is too tight, and the optimization constant of other teammates is too embarrassing. So I can only learn the method for testing the code. I found two methods online, then, the methods of teammates were added.
First:
# Include
Second:
# Include
Third:
This powerful file testing method is suitable for testing file data.
In the installed codeblocks folder, there is an applicat
immediately caused vs 2008 to crash (here I have to scold Microsoft for saying: Smart perception is far inferior to visual assist ). After several crashes, I was furious. I uninstalled the vs2008 team's development version and downloaded the Express version from the Microsoft official website. As a result, the Express version cannot be installed, and the installation times are all destroyed in Visual C ++ runtimepre-requisites. For example:
After searching for the Internet for a while, I coul
Something to downloadDevkitpsp: http://sourceforge.net/project/showfiles.php? Group_id = 114505 package_id = 157350Codeblocks: http://www.codeblocks.org/
1. Install devkitpsp and codeblocks. Assume that devkitpsp is installed in c: \ devkitpsp.2. Open codeblocks.
3. Choose Settings> compiler and debugger.
4. Select Global compiler settings in the left-side pane, and set selected compiler to GNU gcc compile
Http://wiki.codeblocks.org/index.php? Title = installing_code: blocks_nightly_build_on_ubuntu1. Download The tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.Tar xvf cb_date-of-build_revision-number_ubuntu6.1020.7.04_wx2.8.4.tar.gz2. Install all the packages at the same time.Sudo dpkg-I *. DebThe packages can be installed individually, if you prefer not to install everything. the first package to install is libcodeblocks0 followed by t
Beginners, the installation process is very confusing and difficult, now the installation process notes to do the following records.1. DownloadOfficial Download: http://www.codeblocks.org/downloadsNote, be sure to download and conform to your own useful operating system.2. InstallationTry not to install in the system disk, otherwise it will affect the entire operation process, mainly affect the speed of operation (of course, the general installation of software, all try to avoid and system disk
Yesterday did not know how to make the Codeblocks interface clean I do not know how to get, and then find the way to restore the default settings, can not find. Then I used a violent recovery method, unloading load, but one thing to note, after uninstalling the Codeblocks configuration file is still, need to manually delete, the exact location is as follows: C:\Users\ "Your user name" \appdata\roaming\codeb
Tags: codeblocks Add dynamic link library Manual creation:
(1) file-> New-> Project-> dynamic link library;
Name: dynamiclib
Delete the main. cpp file automatically generated by the project, and automatically add a. c file (trydll. c) to delete the main. h file to create a trydll. h file:
Trydll. C:
#include
Trydll. h:
#ifndef __TRYDLL_H__INCLUDED#define __TRYDLL_H__INCLUDED#include
Compile the project and generate:
\ Dynamiclib
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.