RC Slope Soaring in Hong Kong

A forum for rc sailplane pilots
It is currently Sat Nov 09, 2024 8:06 am

All times are UTC + 8 hours




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

Joined: Wed May 21, 2014 12:45 pm
Posts: 7
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:  
cron

RASAIL Home

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

Powered by phpBB® Forum Software © phpBB Group