Hong Kong RC Sailplane Forum 香港滑翔機發燒友論壇

This forum is dedicated to r/c sailplane enthusiasts 此論壇專為遙控滑翔機發燒友而設
It is currently 22 Oct 2017 11:40 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 22 Jun 2014 04:34 pm 

Joined: 21 May 2014 12:45 pm
Posts: 6
The latest version of CRRCSIM is 0.9.12 now and it doesn't provide a compiled file for Mac OS, so we have to compile by ourselves:

http://sourceforge.net/projects/crrcsim/

So I've downloaded the source code, and followed instructions here:

http://sourceforge.net/p/crrcsim/support-requests/5/

with some hacks, and finally it worked for me. The steps I did are:

1. Install macport
2. Install required libs:

Code:
sudo port install plib
sudo port install jpeg
sudo port install portaudio
sudo port install libsdl


3. Go to crrcsim's source code folder, configure and make:
Code:
./configure CPPFLAGS="-I/opt/local/include -DAPIENTRY=" LDFLAGS="-L/opt/local/lib -lintl -lgmp -framework OpenGL -headerpad_max_install_names"
make


4. If compilation fails, saying something wrong about like this:
Code:
[color=#BF0000]src/mod_chardevice/chardevicebase.h[/color]:136:46: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>,
      std::__1::allocator<char> >'
        ConfigureDeviceException(std::string what)
                                             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:188:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_string;
                                ^
In file included from src/mod_chardevice/bufferedchardevice.cpp:43:
In file included from src/mod_chardevice/bufferedchardevice.h:46:
src/mod_chardevice/chardevicebase.h:137:33: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>,
      std::__1::allocator<char> >'
          : std::runtime_error( std::string("Error configuring device: ") + what) { }

then open the file with error (src/mod_chardevice/chardevicebase.h), find the line about
Code:
#include <string.h>


, add a line below it
Code:
"#include<string>"

. Then make again and it should compile.

5. run it
Code:
./crrcsim

and it should work.

6. It's good to copy the files to a separate folder, the files and folders we need are as follows
Code:
crrcsim
icons
models
objects
scenery
sounds
textures


If you have trouble with compiling, maybe I can share my compiled CRRCSIM with you.

About connecting your TX to CRRCSIM, I bought a cheap RC simulator and it comes with an USB adaptor, if I set it to aerofly, FMS or real flight, then I can see my TX in CRRCSIM's joysticks menu. Note that you have to connect your TX before starting the sim though. Oddly phoenix mode doesn't work. The adaptor is something called 20 in 1 from Taobao, you can easily find it in Hong Kong.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

RCSAIL Home

WindGURU at Ma On Shan, Clearwater Bay and Fei Ngo Shan

Powered by phpBB® Forum Software © phpBB Group