Post Reply 
newRPL - build 1255 released! [updated to 1299]
12-23-2017, 11:26 PM (This post was last modified: 12-23-2017 11:29 PM by Claudio L..)
Post: #30
RE: newRPL - build 1001 released!
(12-23-2017 07:11 AM)BarryMead Wrote:  
(12-21-2017 02:51 PM)Claudio L. Wrote:  Mac and Linux users have to build from sources but it's perfectly compatible.

I had no luck with the Win-32 pre-built version of newRPL-Desktop 1001, so I thought I might try to compile a version to run under Linux, since I use Linux as my default OS anyway.
So I grabbed the source with this command:
git clone newrpl-sources

I tried to follow the instructions for compiling the emulator shown here:

The first part of the compile went just fine using the project file, but the second part using the produced some errors as some files related to the usbdriver were missing from the repository.
The error message that I got was:
/home/barry/newRPL/newrpl-sources/mainwindow.cpp:53: error: 'uint32_t' was not declared in this scope
This error was caused when trying to compile the following line in the mainwindow.cpp file:
extern "C" int usbreceivearchive(uint32_t *buffer,int bufsize);

My guess is that something related to the usbreceiverarchive is missing from the repository, or the instructions for compiling the usb portion of the emulator are missing from the instructions.
Since the usb stuff was just recently added it would make sense.

One could confirm/replicate the errors I got, by using git to grab a fresh copy of the repository on a Linux system, using qtcreator to compile the and projects for one's self.

Ahhh, another thing to write on the Wiki: good build instructions!

uint32_t is defined in the standard types for each platform (stddef.h), it seems something on your platform is not ready to build, there's missing headers. Try installing the build-essentials package, on the command line:

sudo apt-get install build-essentials

If that doesn't fix it, try also installing the package libc6-dev:

sudo apt-get install libc6-dev

Also, to build elf2rom you need the package libelf-dev, and now also needs libudev-dev for USB support. Both packages must be installed to build on Linux.

The package names might differ slightly between distros (some use -devel instead of -dev), as well as the installation command, I used Ubuntu syntax on the examples just to put something.

When you get it to compile, you need to give the current user access to rawhid devices.
Take a look here. The answer marked with the green checkmark is the one I used: create a special group for rawhid devices, then just add my user to that group.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - Claudio L. - 12-23-2017 11:26 PM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
How to participate? - erazor - 12-13-2019, 07:12 AM

User(s) browsing this thread: 1 Guest(s)